
/* ================= 莫兰迪色系与全局变量 ================= */
:root {
    --primary-bg: #F5F6F8;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --accent-color: #3498DB;
    --btn-dark: #1A252F;
    --btn-dark-hover: #2C3E50;
    --section-padding: 80px 10%; /* 稍微收紧内边距，给下翻按钮留空间 */
}

/* 基础重置与平滑滚动 */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= 1. 顶部导航栏 ================= */
/*        .navbar {
            position: fixed;
            top: 0;
            width: 100%;
            height: 70px;
            background-color: var(--nav-bg);
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 5%;
            box-sizing: border-box;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.02);
        }

        .logo {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--accent-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .logo span {
                color: var(--text-main);
            }

        .nav-links {
            display: flex;
            gap: 30px;
            font-size: 0.95rem;
            color: var(--text-muted);
        }

            .nav-links a:hover {
                color: var(--text-main);
                transition: color 0.3s ease;
            }

        .nav-btn {
            background-color: var(--btn-dark);
            color: #fff;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            transition: background 0.3s;
        }

            .nav-btn:hover {
                background-color: var(--btn-dark-hover);
                color: #fff;
            }*/
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .nav-logo span {
        color: #0052ff;
    }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

    .nav-links a {
        text-decoration: none;
        color: #555;
        font-size: 0.95rem;
        font-weight: 500;
        transition: color 0.2s;
    }

        .nav-links a:hover, .nav-links a.active {
            color: #0052ff;
        }

.nav-btn {
    background: #0f172a;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

    .nav-btn:hover {
        background: #334155;
    }
/* ================= 2. 首屏 Hero Section ================= */
/* ================= 2. 首屏 Hero Section ================= */
/*.hero {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0 20px;
            margin-top: 35px;
            position: relative;*/
/* 【新增部分】：设置背景图，并叠加一层 85% 透明度的原底色，确保文字绝对清晰 */
/*background-image: linear-gradient(rgba(245, 246, 248, 0.85), rgba(245, 246, 248, 0.95)), url('images/backgroud.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }*/
/* ================= 2. 首屏 Hero Section ================= */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* 去掉了原先的 margin-top，新增了 padding-top 给导航栏留出内部空间 */
    padding: 70px 20px 0 20px;
    position: relative;
    /* 背景图设置 */
    background-image: linear-gradient(rgba(245, 246, 248, 0.85), rgba(245, 246, 248, 0.95)), url('images/backgroud.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.2rem;
        color: var(--text-muted);
        max-width: 800px;
        margin-bottom: 40px;
    }

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: opacity 0.3s;
}

    .btn-primary:hover {
        opacity: 0.9;
    }

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    padding: 13px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

    .btn-secondary:hover {
        background-color: var(--text-main);
        color: #fff;
    }

/* ================= 3. 内容区块通用样式 ================= */
.section {
    padding: var(--section-padding);
    min-height: auto;
    position: relative; /* 为下翻按钮提供定位参考 */
    display: flex;
    flex-direction: column;
}

.section-alt {
    background-color: #FFFFFF;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

/* 卡片网格 */

/* ================= 修改后的卡片网格系统 (图文混排) ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* 稍微加宽一点，让图片更大气 */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    width: 100%;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden; /* 核心代码：切掉图片溢出的直角，保持卡片圆角圆润 */
    display: flex;
    flex-direction: column;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08); /* 悬浮时阴影加深，更有立体感 */
    }

/* 新增：图片容器样式 */
.card-img {
    width: 100%;
    height: 220px; /* 黄金比例高度 */
    background-color: #EAECEE; /* 莫兰迪浅灰占位色 */
    object-fit: cover; /* 保证图片等比缩放填满容器不拉伸 */
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* 新增：文本内容区域，将原本的 padding 移到这里 */
.card-content {
    padding: 30px;
    flex-grow: 1; /* 如果卡片高度不一，这能让底部对齐 */
}

    .card-content h3 {
        font-size: 1.35rem;
        margin-top: 0;
        margin-bottom: 15px;
        color: var(--text-main);
    }

    .card-content p {
        margin: 0;
        color: var(--text-muted);
        line-height: 1.6;
    }

.section-alt .card {
    background: var(--primary-bg);
}

/* ================= 4. 向下滚动箭头按钮设计 ================= */
.scroll-down {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    margin: 20px auto 0 auto;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    color: var(--text-muted);
    background-color: transparent;
    transition: all 0.3s ease;
    animation: bounce 2s infinite; /* 添加上下弹跳动画 */
}

    .scroll-down:hover {
        background-color: var(--text-main);
        color: #fff;
        border-color: var(--text-main);
        animation: none; /* 鼠标悬浮时停止弹跳 */
        transform: scale(1.05);
    }
/* 针对首屏的绝对定位箭头 */
.hero .scroll-down {
    position: absolute;
    bottom: 40px;
}

/* 弹跳动画关键帧 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ================= 5. 底部联系区 ================= */
/* ================= 5. 底部多列信息与版权区 ================= */
.footer {
    background-color: var(--btn-dark);
    color: #fff;
    padding: 60px 5% 20px 5%; /* 收紧上下边距，消除空旷感 */
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 顶部分隔线 */
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

    .footer-col h3 {
        font-size: 1.0em;
        margin-bottom: 20px;
        color: #fff;
        font-weight: 480;
        letter-spacing: 1px;
    }

/* 快捷链接样式 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: #BDC3C7;
        transition: color 0.3s;
    }

        .footer-links a:hover {
            color: var(--accent-color);
        }

/* 二维码区域并排布局 */
.footer-qr-wrapper {
    display: flex;
    gap: 20px;
}

.qr-box {
    text-align: center;
}

    .qr-box img {
        width: 100px;
        height: 100px;
        background: #fff;
        padding: 5px;
        border-radius: 8px;
        display: block;
        margin-bottom: 10px;
    }

    .qr-box span {
        font-size: 0.85rem;
        color: #BDC3C7;
    }

/* 品牌介绍文字 */
.footer-about p {
    color: #BDC3C7;
    line-height: 1.8;
    font-size: 0.9rem;
    margin: 0;
}

/* 底侧备案信息栏 */
.footer-bottom {
    text-align: center;
    padding-top: 12px;
    font-size: 0.85rem;
    color: #7F8C8D;
}

    .footer-bottom a {
        color: #7F8C8D;
        margin: 0 10px;
        transition: color 0.3s;
    }

        .footer-bottom a:hover {
            color: #BDC3C7;
        }
/* ================= 6. 弹窗 (Modal) 样式 ================= */
/* 增加卡片的点击提示 */
.card {
    cursor: pointer;
}

    /* 隐藏在卡片中的长文本（只在弹窗中显示） */
    .card .detail-text {
        display: none;
    }

/* 弹窗全屏遮罩层 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* 毛玻璃高级感 */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    /* 遮罩层激活时的状态 */
    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* 弹窗内容主体容器 */
.modal-box {
    background: #fff;
    width: 90%;
    max-width: 800px; /* 足够宽以展示文字 */
    max-height: 85vh; /* 避免超出屏幕高度 */
    border-radius: 16px;
    overflow-y: auto; /* 内容过多时内部滚动 */
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 带有微弹性的丝滑动画 */
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* 弹窗弹出的动画状态 */
.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

/* 弹窗头部图片 */
.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 弹窗文字区域 */
.modal-body {
    padding: 40px;
}

    .modal-body h2 {
        margin-top: 0;
        font-size: 1.8rem;
        color: var(--text-main);
    }

    .modal-body .modal-desc {
        color: var(--text-muted);
        line-height: 1.8;
        font-size: 1.05rem;
    }

/* 关闭按钮 */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    backdrop-filter: blur(4px);
    transition: background 0.3s, transform 0.3s;
}

    .modal-close:hover {
        background: #fff;
        transform: scale(1.1);
    }

