/* ============================================
   智泓科技 - 设计系统
   现代化农业科技企业网站
   ============================================ */

/* CSS 变量 */
:root {
    /* 主色调 - 科技蓝 */
    --primary: #0c4f96;
    --primary-light: #3b82f6;
    --primary-dark: #08306b;
    --primary-alpha: rgba(12, 79, 150, 0.08);
    --primary-gradient: linear-gradient(135deg, #0c4f96, #3b82f6);
    --primary-gradient-dark: linear-gradient(135deg, #08306b, #0c4f96);

    /* 辅助色 */
    --accent: #d4a853;
    --accent-light: #f0d89f;
    --accent-gradient: linear-gradient(135deg, #d4a853, #f0d89f);

    /* 中性色 */
    --text: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8888a0;
    --bg: #ffffff;
    --bg-light: #f0f4f9;
    --bg-card: #ffffff;
    --border: #dce4ec;
    --border-light: #edf2f7;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(8, 48, 107, 0.06);
    --shadow-md: 0 6px 24px rgba(8, 48, 107, 0.10);
    --shadow-lg: 0 12px 48px rgba(8, 48, 107, 0.14);
    --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.24);

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;

    /* 动画 */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration: 0.35s;
    --duration-slow: 0.6s;

    /* 排版 */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica,
        Arial, sans-serif;
    --line-height: 1.7;
    --line-height-heading: 1.25;
}

/* ========== 基础重置 ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: var(--line-height);
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration) var(--ease-out);
}

ul,
ol {
    list-style: none;
}

/* ========== 容器 ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(232, 236, 232, 0.6);
    transition: background var(--duration) var(--ease-out),
        border-color var(--duration) var(--ease-out),
        box-shadow var(--duration) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    height: 72px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 24px;
    width: auto;
    display: block;
    transition: transform var(--duration) var(--ease-out);
    flex-shrink: 0;
}

.logo:hover img {
    transform: scale(1.04);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background-image: linear-gradient(120deg, #0c4f96, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: 1px;
}

/* 桌面导航菜单 */
.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease-out);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
    background: var(--primary-alpha);
}

.nav-menu a.active {
    color: var(--primary);
    background: var(--primary-alpha);
    font-weight: 600;
}

/* 导航图标 */
.nav-menu a i {
    margin-right: 6px;
    font-size: 0.85rem;
}

/* 移动端菜单切换按钮 */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease-out);
    border: none;
    background: none;
}

.menu-toggle:hover {
    background: var(--bg-light);
}

/* ========== 按钮系统 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity var(--duration) var(--ease-out);
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

/* 主要按钮 - 绿色渐变 */
.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(12, 79, 150, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(12, 79, 150, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

/* 次要按钮 - 描边 */
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* 白色按钮 - 用于深色背景 */
.btn-white {
    background: #fff;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* 大号按钮 */
.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* ========== 章节通用样式 ========== */
.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: var(--line-height-heading);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin: 20px auto 0;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: var(--line-height);
    margin-top: 8px;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background: var(--primary-gradient-dark);
    color: #fff;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ========== Banner/Hero 通用 ========== */
.hero-banner {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../images/fuimg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding-top: 72px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 48, 107, 0.75), rgba(12, 79, 150, 0.55));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    line-height: var(--line-height-heading);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 0 auto;
}

/* ========== 卡片通用样式 ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease-out);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ========== 表单样式 ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: var(--font-family);
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease-out);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px var(--primary-alpha);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.form-row .half {
    flex: 1;
}

.form-row .full {
    flex: 2;
}

/* ========== 页脚 ========== */
.footer {
    background: var(--primary-gradient-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 24px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    max-width: 260px;
    font-size: 0.85rem;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

.footer-links h4::after {
    display: none;
}

.footer-links ul {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    transition: all var(--duration) var(--ease-out);
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 4px 0;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
}

/* ========== 通用响应式 ========== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 12px;
    }

    .footer-logo {
        flex-wrap: wrap;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-links ul {
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* 移动端导航 */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: var(--bg);
        padding: 24px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transition: right var(--duration-slow) var(--ease-out);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 4px;
    }

    .nav-menu a {
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    /* 移动端遮罩 */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--duration) var(--ease-out);
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .hero-banner {
        height: 360px;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-banner {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .logo img {
        height: 34px;
    }

    .navbar .container {
        height: 64px;
    }

    .nav-menu {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 12px 28px;
    }
}

/* ========== 动画工具类 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
