/* 全局样式设定 */
:root {
    --primary-color: #1a4d8c; /* Logo 深蓝色 */
    --secondary-color: #f9c345; /* Logo 黄色 */
    --secondary-light: #fbe09a; /* 浅黄色背景 */
    --accent-teal: #38b2ac; /* Logo 青色 */
    --accent-red: #e53e3e; /* Logo 红色 */
    --text-color: #2d3748;
    --light-bg: #fffcf0; /* 偏黄色的浅背景 */
    --white: #ffffff;
    --gray: #718096;
    --dark: #1a202c;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Inter", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

body.menu-open {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 顶部信息栏 */
.top-bar {
    background-color: var(--secondary-color); /* 顶部栏改为黄色 */
    color: var(--dark);
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

/* 为固定头部留出空间 */
body {
    padding-top: 90px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-area img {
    height: 50px;
    width: auto;
}

.logo-area h1 {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1100;
}

/* 通用按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(249, 195, 69, 0.3);
}

.btn-primary:hover {
    background: #e5b13a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 195, 69, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.hide-mobile {
    display: block;
}

/* 首页特有样式 - 参考 Fisto */
.hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    background: var(--primary-color);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 140, 0.9) 0%, rgba(26, 77, 140, 0.4) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: var(--white);
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--secondary-color); /* 背景改为黄色 */
    color: var(--dark);
    border-radius: 4px;
    margin-bottom: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* 浮动特性卡片 */
.features-overlap {
    position: relative;
    z-index: 10;
    margin-top: -80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border-bottom: 4px solid var(--secondary-color); /* 底部边框改为黄色 */
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: var(--light-bg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color); /* 图标背景改为黄色 */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--dark);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
}

/* 关于我们 - 非对称布局 */
.about-asymmetric {
    margin-top: 80px;
    padding: 120px 0;
    background: linear-gradient(to right, var(--white) 50%, var(--light-bg) 50%);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-images {
    flex: 1;
    position: relative;
}

.about-img-main {
    width: 80%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    position: relative;
    border: 5px solid var(--secondary-color); /* 增加黄色边框 */
}

.about-img-sub {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 50%;
    border-radius: var(--radius);
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 3;
}

.about-decor {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--secondary-color);
    z-index: 1;
    border-radius: 8px;
    opacity: 0.6;
}

.about-text {
    flex: 1;
    padding-right: 20px;
}

.section-tag {
    color: var(--primary-color);
    background: var(--secondary-light);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 42px;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 800;
}

.about-text p {
    margin-bottom: 24px;
    color: var(--gray);
}

.check-list {
    margin-bottom: 40px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.check-item i {
    color: var(--secondary-color); /* 对勾改为黄色 */
}

/* 产品网格升级 */
.products-section {
    padding: 100px 0;
    background: var(--white);
}

.text-center { text-align: center; }

.filter-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    border: 1px solid var(--secondary-color); /* 边框改为黄色 */
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--secondary-color);
    color: var(--dark);
    border-color: var(--secondary-color);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(249, 195, 69, 0.2); /* 悬停阴影带黄色 */
    border-color: var(--secondary-color);
}

.product-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--light-bg);
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    background: var(--secondary-color); /* 标签改为黄色 */
    color: var(--dark);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.product-info {
    padding: 24px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-info .price {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 20px;
}

/* 页脚样式 */
footer {
    background: var(--dark);
    color: #a0aec0;
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-item h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-item h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color); /* 页脚标题装饰线改为黄色 */
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-item p {
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 40px;
    text-align: center;
    font-size: 14px;
}

/* 核心优势模块 */
.advantages-section {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.advantage-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--white);
}

.advantage-item p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 移动端菜单遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: none;
    backdrop-filter: blur(2px);
    transition: var(--transition);
}

.menu-overlay.active {
    display: block;
}

/* 响应式媒体查询 */
@media (max-width: 1024px) {
    .hero h2 { font-size: 48px; }
    .about-flex { flex-direction: column; gap: 60px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    /* 移动端调整为较小的顶部间距 */
    body {
        padding-top: 70px;
    }

    .nav-container {
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo-area img {
        height: 40px;
    }

    .logo-area h1 {
        font-size: 18px;
    }
    
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1100;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 40px;
        gap: 10px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 1050;
        display: flex;
        transform: translateX(100%);
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        font-size: 18px;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #f7f7f7;
        color: var(--dark);
        font-weight: 500;
    }

    .nav-links a.active {
        color: var(--primary-color);
        font-weight: 700;
        border-bottom: 2px solid var(--secondary-color);
    }

    .nav-actions {
        display: none;
    }

    .hero { 
        height: auto; 
        padding: 120px 0 80px; 
        text-align: center; 
        min-height: auto;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-tag {
        margin: 0 auto 20px;
    }

    .hero h2 { 
        font-size: 32px; 
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-btns { 
        justify-content: center; 
        flex-direction: column; 
        gap: 15px;
        padding: 0 20px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .features-grid { grid-template-columns: 1fr; }
    .top-bar { display: none; }
    
    .about-asymmetric {
        padding: 60px 0;
        background: var(--white);
        margin-top: 40px;
        padding-bottom: 0px;
    }

    .about-flex {
        flex-direction: column;
        gap: 40px;
    }

    .about-images {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 80px;
        display: flex;
        justify-content: center;
    }

    .about-img-main {
        width: 85%;
        margin: 0;
    }

    .about-img-sub {
        width: 45%;
        bottom: -40px;
        right: 0;
        border-width: 4px;
    }

    .about-decor {
        width: 80px;
        height: 80px;
        top: -20px;
        left: 0;
    }

    .about-text {
        text-align: center;
        padding: 0 15px;
    }

    .check-list {
        display: inline-block;
        text-align: left;
        margin-bottom: 30px;
    }

    .check-item {
        justify-content: flex-start;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hide-mobile {
        display: none !important;
    }

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