/* 基础重置与变量 */
:root {
    --primary-color: #3b8cf0;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f4f8ff;
    --white: #ffffff;
    --border-color: #e5e9f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


.containers {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: none;
}

/* === 头部导航 === */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: auto;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 15px;
    color: var(--text-main);
    padding: 10px 0;
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.contact-phone {
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-toggle, .menu-icon {
    display: none;
}

/* === Banner 区域 === */


/* === 热门推荐 === */
.recommendations {
    padding: 60px 15px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 83px;
    color: #1a1a1a;
    margin-top: 90px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    background-color: var(--bg-light);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-left {
    flex: 0 0 35%;
    background: linear-gradient(135deg, #51a3ff 0%, #2f80ed 100%);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-left .tag {
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.card-left h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.card-left .icon-placeholder {
    font-size: 32px;
    opacity: 0.8;
}

.card-right {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-light);
}

.card-right h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card-right p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-primary {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2b74d6;
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    /* padding: 10px 40px; */
    border-radius: 20px;
    font-size: 15px;
    margin-bottom: 132px;
}

/* === 页脚 === */
.footer {
    background-color: var(--bg-light);
    padding: 60px 0 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 30px;
    margin-bottom: 20px;
}

.qr-codes {
    display: flex;
    gap: 20px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
    background-color: #fff;
    padding: 5px;
}

.footer-links-group {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-col h5 {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-contact h5 {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.footer-contact .phone {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.friend-links {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 20px;
}

.friend-links h5 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.links-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.links-scroll a {
    background-color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom .icp {
    margin-left: 10px;
}

/* === 移动端响应式适配 (Media Queries) === */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-group {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* 移动端菜单处理 */
    .menu-icon {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    #menu-toggle:checked ~ .nav-menu {
        display: block;
    }

    .contact-phone {
        display: none; /* 移动端顶部空间不足，隐藏电话 */
    }

    /* Hero区域适配 */
    .hero {
        padding: 40px 0;
        height: auto;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }

    /* 卡片堆叠适配 */
    .card {
        flex-direction: column;
    }
    
    .card-left {
        padding: 20px;
    }

    /* 页脚适配 */
    .footer-top {
        flex-direction: column;
    }
    
    .footer-links-group {
        justify-content: space-between;
    }
}