/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 基础配色 */
:root {
    --deep-green: #07624e;
    --light-green: #2e7d32;
    --white: #ffffff;
    --gray: #f5f5f5;
}

body {
    background-color: var(--white);
    color: #333;
}

/* 顶部导航栏 */
.top-nav {
    background-color: var(--deep-green);
    color: var(--white);
    padding: 6px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-container {
    width: 120px;
    height: 60px;
    margin-right: 40px;
    margin-left: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}
.logo-container > span {
    position: relative;
    white-space: nowrap;
    font-size:large;
    margin-left: 10px;
    color: #ffffff;
}

.logo-container img {
    filter: grayscale(100%) contrast(1000%) brightness(0) invert(1);
    width: 40px;
    height:40px;
}
.nav-links {
    display: flex;
    gap: 32px;
    margin-left: 250px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a5d6a7;
}
.navbar-right {
    display: flex;
    gap: 12px;
    margin-left: auto;
}
.btn {
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}
.btn-apply {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}
.btn-apply:hover {
    background-color: rgba(255,255,255,0.1);
}
.btn-login {
    background-color: transparent; /* 醒目黄色，匹配原图登录按钮 */
    color: #ffffff;
    border: 1px solid white;
}
.btn-login:hover {
    background-color:rgba(255,255,255,0.1);
}

/* 登录弹窗 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 24px;
    color: #333;
}

.login-tabs {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.login-tabs .tab {
    font-size: 16px;
    cursor: pointer;
    color: #999;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.login-tabs .tab.active {
    color: var(--light-green);
    border-bottom-color: var(--light-green);
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.input-group .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-group .clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.input-group .eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.login-links {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-links a {
    color: var(--light-green);
    text-decoration: none;
}

.agreement {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-bottom: 24px;
}

.agreement a {
    color: var(--light-green);
    text-decoration: none;
}

.login-btn {
    width: 100%;
    height: 48px;
    background: var(--light-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: var(--deep-green);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 16px;
    color: #666;
}

/* Banner 容器 */
.banner {
    position: relative;
    width: 100%;
    height:calc(100vh - 60px); /* 高度可根据你的需求调整 */
    background: url("1.png") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* 半透明蒙版，提升文字可读性 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

/* 文字内容容器 */
.banner-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

/* 主标题 */
.banner-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 副标题 */
.banner-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

/* 行动按钮 */
.banner-btn {
    background: #07624e; /* 农大绿，和导航栏颜色统一 */
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-btn:hover {
    background: #034605; /* 鼠标悬停时加深颜色 */
}

/* 首页下方三栏 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

/* 底部区域整体容器 */
.home-bottom {
    position: relative;
    width: 100%;
    padding: 60px 0; /* 上下留白，提升整体呼吸感 */
    overflow: hidden; /* 隐藏半圆装饰超出部分 */
    background-color: #f9fbfb; /* 浅背景色，区分页面其他区域 */
}

/* 左侧半圆背景装饰 */
/* 左侧完整半圆背景装饰 */
.bg-decoration {
    position: absolute;
    top: 120px;
    left: 20px;
    width: 200px; /* 半圆的直径（宽=直径） */
    height: 400px; /* 半圆的高度（高=直径×2，或根据需要调整） */
    background-color: #0a3f0e;
    /* 核心：左侧完整半圆的圆角设置 */
    border-radius: 50%;
    z-index: 1;
}

/* 核心布局容器：控制左右列排版 */
.main-layout {
    position: relative;
    z-index: 2; /* 覆盖半圆装饰 */
    max-width: 1280px; /* 宽屏适配 */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr; /* 左右列等宽 */
    gap: 0px; /* 左右列间距 */
    /*padding: 0 30px;*/
    padding-left: 80px;
    padding-right: 80px;
    align-items: stretch; /* 左右列高度一致 */

}

/* 左侧列：图片+数据卡片 */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 0; /* 图片和卡片无缝衔接 */
    border-radius: 0px; /* 大圆角更现代 */
    overflow: hidden; /* 裁剪圆角 */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* 柔和阴影 */
    background-color: #fff;

}

/* 左侧图片区域 */
.left-img {
    width: 100%;
    height: 320px; /* 固定图片高度，保证比例 */
}

.left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片填充容器，不变形 */
    display: block; /* 去除图片底部空白 */
}

/* 数据卡片区域 */
.data-card {
    padding: 123px 20px;
    background-color: #fff;
}


/* 数据卡片行容器 */
.card-row {
    display: flex;
    justify-content: space-between; /* 均匀分布 */
    align-items: center;
    text-align: center;
    height: auto;
}

/* 单个数据项 */
.card-item {
    flex: 1;
    padding: 0 10px;
}

/* 数字样式 */
.card-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0A7361; /* 主色调：深绿 */
    margin-bottom: 8px;
    line-height: 1; /* 消除行高影响 */
}

/* 标签样式 */
.card-label {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* 右侧列：文字+按钮+视频/图片 */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative; /* 开启相对定位 */
    top: 12%; /* 向下移动 50px，可按需调整 */
}

/* 文字块 */
.text-block {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 标题、正文、按钮间距 */
    padding-left: 40px;
}

.text-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.text-block p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    text-align: justify; /* 文字两端对齐，更整洁 */
}

/* 行动按钮（椭圆样式） */
.action-btn {
    align-self: flex-start; /* 按钮左对齐 */
    padding: 12px 40px;
    background-color: #0A7361;
    color: #fff;
    border: none;
    border-radius: 50px; /* 椭圆按钮 */
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease; /* hover过渡 */
}

.action-btn:hover {
    background-color: #085E4D; /* 深色hover效果 */
}

/* 媒体块（图片+播放按钮） */
.media-block {
    position: relative; /* 播放按钮绝对定位基准 */
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.media-block img {
    width: 100%;
    height: 320px; /* 和左侧图片高度一致 */
    object-fit: cover;
    display: block;
}

/* 播放按钮 */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0A7361;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1); /* hover放大 */
    background-color: #fff;
}

/* 响应式适配：平板/手机 */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr; /* 移动端改为单列 */
        gap: 30px;
        padding: 0 20px;
    }

    .left-img, .media-block img {
        height: 280px; /* 缩小图片高度 */
    }

    .card-number {
        font-size: 2.2rem; /* 缩小数字 */
    }

    .text-block h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .home-bottom {
        padding: 40px 0;
    }

    .left-img, .media-block img {
        height: 220px; /* 手机端进一步缩小 */
    }

    .card-row {
        flex-direction: column; /* 数据项改为垂直排列 */
        gap: 20px;
    }

    .action-btn {
        width: 100%; /* 手机端按钮全屏宽 */
        text-align: center;
    }
}
/* 资源库页面 */
.resource-page {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.resource-sidebar {
    width: 33.333%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--gray);
    padding: 20px;
    border-radius: 12px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--deep-green);
}

.filter-group select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: var(--white);
}

.upload-btn {
    background: var(--light-green);
    color: var(--white);
    cursor: pointer;
    height: 48px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 16px;
}

.resource-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.resource-item {
    height: 200px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
}
/* 搜索框整体容器 */
.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 12px;
    gap: 8px;
}

/* 放大镜图标 */
.search-icon img {
    width: 16px;
    height: 16px;
    vertical-align: middle; /* 对齐文字/输入框 */
}
/* 收藏/录音按钮样式 */
.save-btn {
    border: none;
    background: none;
    padding: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 录音图标样式 */
.save-btn img {
    width: 16px;
    height: 16px;
    /* 让图标颜色和搜索框整体风格统一 */
    filter: grayscale(100%) brightness(80%);
    /* 鼠标悬停时高亮 */
    transition: filter 0.2s;
}

.save-btn:hover img {
    filter: grayscale(0%) brightness(100%);
}
/* 输入框 */
.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* 清除按钮 */
.clear-btn {
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 收藏按钮 */
.save-btn {
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 知识库页面 */
.knowledge-page {
    padding: 24px;
}

.knowledge-search {
    width: 100%;
    height: 48px;
    margin-bottom: 24px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.knowledge-content {
    display: flex;
    gap: 24px;
}

.knowledge-catalog {
    width: 240px;
    border-right: 1px solid #e0e0e0;
    padding-right: 16px;
}

.knowledge-papers {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.paper-item {
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* AI智能体页面 */
.ai-agent-page {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-chat-container {
    height: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    overflow-y: auto;
    background: var(--gray);
}

.ai-input-area {
    display: flex;
    gap: 12px;
}

.ai-input-area input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ai-input-area button {
    width: 100px;
    background: var(--light-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* 数据大屏页面 */
.dashboard-page {
    padding: 24px;
}

.dashboard-frame {
    width: 100%;
    height: 600px;
    border: 2px dashed var(--light-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-green);
    background: rgba(46, 125, 50, 0.05);
}

/* 热点新闻页面 */
.news-page {
    padding: 24px;
}

.news-carousel {
    width: 100%;
    height: 300px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.news-content {
    display: flex;
    gap: 24px;
}

.news-list {
    width: 66.666%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.hot-headlines {
    width: 33.333%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-item {
    padding: 12px;
    border-left: 4px solid var(--light-green);
    background: var(--gray);
}

/* 我的页面 */
.profile-page {
    padding: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--light-green);
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-top: 16px;
}

.stat-item {
    text-align: center;
}

/* 页脚 */
footer {
    background-color: var(--deep-green);
    color: var(--white);
    padding: 24px;
    text-align: center;
    margin-top: 40px;
}

/* 页面隐藏类 */
.page {
    display: none;
}

.page.active {
    display: block;
}
@media screen and (max-width: 575px) {
    .container {
        padding: 0 8px;
    }

    .top-bar {
        height: 25px;
        line-height: 25px;
        display: none; /* 小屏隐藏顶部辅助栏 */
    }

    .header-main {
        top: 0;
    }

    body {
        padding-top: 110px;
    }

    .logo-text {
        font-size: 22px;
    }

    .main-nav li a {
        font-size: 13px;
        padding: 4px 0;
    }

    .login-btn, .register-btn {
        padding: 4px 12px;
        font-size: 11px;
    }

    .swiper-banner {
        height: 22vh;
        min-height: 180px;
    }

    .slide-text h2 {
        font-size: 20px;
    }

    .slide-text p {
        font-size: 14px;
    }

    .slide-btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .screen-section {
        padding: 30px 0;
        margin: 15px 0;
    }

    .screen-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .cate-item {
        min-width: 70px;
        height: 90px;
    }

    .cate-icon {
        font-size: 20px;
    }
}
/* 默认样式（大屏） */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右两列 */
}

/* 平板（≤992px）：单列布局 */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr; /* 单列 */
    }
}

/* 手机（≤576px）：调整内边距和字体 */
@media (max-width: 576px) {
    .text-block h2 {
        font-size: 1.4rem; /* 缩小标题 */
    }
    .action-btn {
        width: 100%; /* 按钮全屏宽 */
    }
}
/* Flex 示例：导航栏自适应 */
.navbar {
    display: flex;
    flex-wrap: wrap; /* 空间不足时自动换行 */
    justify-content: space-between;
}

/* Grid 示例：卡片布局 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* 自动适配列数，每列最小280px */
}
img {
    max-width: 100%;
    height: auto;
    /* 图片宽度不超过父容器，高度自动缩放 */
}

/* 视频/iframe 同样适用 */
video, iframe {
    max-width: 100%;
    height: auto;
}
.text-block h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    /* 最小1.4rem，最大2rem，中间随视口宽度变化 */
}