/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2e8b57;
    --primary-light: #3fa76a;
    --primary-dark: #1e6b47;
    --accent: #4CAF50;
    --card-bg: #ffffff;
    --text: #2f3542;
    --text-light: #57606f;
    --light-gray: #f8f9fa;
    --lighter-gray: #f1f2f6;
    --border-radius: 14px;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --card-spacing: 20px;
    --header-spacing: 25px;
    --section-spacing: 30px;
}

body {
    font-family: 'Noto Sans SC', system-ui, -apple-system, Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--card-spacing);
    flex: 1;
}

/* 区域标题 */
.section-title {
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding: 0.8rem 0;
    margin: 0 auto var(--section-spacing);
    width: 100%;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* 头部区域 */
.header-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    margin-bottom: var(--header-spacing);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.header-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.support-card {
    background: rgba(46, 139, 87, 0.06);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
    position: relative;
}

.support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.highlight {
    background: rgba(76, 175, 80, 0.15);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(46, 139, 87, 0.1);
}

.highlight:hover {
    background: rgba(46, 139, 87, 0.2);
    transform: translateY(-3px);
}

.highlight i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* 重点推广区域 - 已优化 */
.featured-promo-section {
    width: 100%;
    margin-bottom: var(--section-spacing);
}

.featured-promo-container {
    display: flex;
    justify-content: center;
    padding: 0;
    width: 100%;
}

.featured-promo-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-image: linear-gradient(to right, rgba(240, 248, 245, 0.8), rgba(240, 248, 245, 0.6));
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    border-left: 5px solid var(--primary);
    border-right: 5px solid var(--primary);
}

.featured-promo-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.featured-promo-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.featured-promo-title i {
    background: rgba(46, 139, 87, 0.15);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.featured-promo-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.featured-promo-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.featured-promo-feature {
    background: rgba(46, 139, 87, 0.08);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    color: var(--primary);
    border: 1px solid rgba(46, 139, 87, 0.15);
    display: flex;
    align-items: center;
}

.featured-promo-feature i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.featured-promo-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 25px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(46, 139, 87, 0.3);
    max-width: 200px;
    margin: 30px auto 10px;
    position: relative;
    overflow: hidden;
}

.featured-promo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.featured-promo-btn:hover::before {
    left: 100%;
}

.featured-promo-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(46, 139, 87, 0.4);
}

/* 导航区域 */
.nav-section {
    width: 100%;
    margin-bottom: 70px;
}

.nav-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--card-spacing);
    padding: 0;
}

.nav-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
}

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

.nav-card a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s;
    width: 100%;
}

.nav-card a:hover {
    color: var(--primary);
}

.nav-card i {
    width: 70px;
    height: 70px;
    background: rgba(46, 139, 87, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.nav-card:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
}

.recommended {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 77, 77, 0.1);
    color: #ff6b6b;
    font-size: 0.8rem;
    padding: 4px 15px;
    border-radius: 20px;
    font-weight: 700;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* 后台/前台按钮样式（修复前台按钮文字颜色） */
.admin-btn {
    background: var(--primary);
    color: white !important; /* 强制文字颜色为白色 */
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    border: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    min-width: 90px;
    /* 覆盖链接样式 */
    font-family: 'Noto Sans SC', system-ui, -apple-system, Roboto, sans-serif;
}

.nav-card .admin-btn {
    color: white !important; /* 确保在卡片内按钮颜色为白色 */
}

.admin-btn + .admin-btn {
    margin-left: 8px;
}

.admin-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white !important; /* 确保悬停时文字颜色为白色 */
}

/* 修复安卓端后台地址显示问题 */
.admin-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    display: none;
    font-size: 0.95rem;
    color: #57606f;
    text-align: left;
    width: 100%;
    /* 添加以下样式修复安卓显示问题 */
    box-sizing: border-box;
    max-width: 100%;
    word-break: break-all; /* 强制长地址换行 */
    overflow-wrap: break-word; /* 确保长单词也能换行 */
}

.admin-info.active {
    display: block;
}

.admin-item {
    margin-bottom: 8px;
}

.admin-item strong {
    color: var(--text);
    font-weight: 600;
    margin-right: 8px;
}

/* 欢迎弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-hover);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-title {
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-desc {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-btn {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.modal-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 版权信息区域 */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0 30px;
    font-size: 0.95rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.copyright {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.disclaimer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 15px auto 0;
    line-height: 1.7;
}

/* 响应式优化 */
@media (min-width: 992px) {
    :root {
        --card-spacing: 25px;
        --header-spacing: 30px;
        --section-spacing: 40px;
    }
    
    .header-card {
        padding: 3rem 4rem;
    }
    
    h2 {
        font-size: 3.5rem;
    }
    
    .header-subtitle {
        font-size: 1.4rem;
    }
    
    .highlight {
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: var(--section-spacing);
    }
    
    .section-title::after {
        width: 80px;
        height: 5px;
    }
    
    .featured-promo-title {
        font-size: 2.2rem;
    }
    
    .featured-promo-desc {
        font-size: 1.25rem;
    }
    
    .featured-promo-feature {
        font-size: 1.1rem;
    }
    
    .featured-promo-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .nav-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .container {
        padding: 15px;
    }
    
    .header-card {
        padding: 1.8rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .header-subtitle {
        font-size: 1.1rem;
    }
    
    .highlight {
        padding: 0.7rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .featured-promo-card {
        padding: 1.8rem;
    }
    
    .featured-promo-title {
        font-size: 1.6rem;
    }
    
    .featured-promo-desc {
        font-size: 1.05rem;
    }
    
    .featured-promo-features {
        gap: 10px;
    }
    
    .featured-promo-feature {
        font-size: 0.9rem;
    }
    
    .nav-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .nav-card i {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 30px 0 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }
    
    .header-card {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 2.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .highlight {
        text-align: center;
    }
    
    .featured-promo-card {
        padding: 1.5rem;
    }
    
    .featured-promo-title {
        font-size: 1.5rem;
    }
    
    .featured-promo-desc {
        font-size: 1rem;
    }
    
    .featured-promo-feature {
        padding: 6px 15px;
    }
    
    .featured-promo-btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .nav-container {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 15px;
    }
    
    .nav-card {
        padding: 1.5rem;
    }
    
    .nav-card i {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .nav-title {
        font-size: 1.15rem;
    }
    
    .recommended {
        top: 12px;
        right: 12px;
        font-size: 0.75rem;
        padding: 3px 12px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    :root {
        --card-spacing: 12px;
        --header-spacing: 20px;
        --section-spacing: 25px;
    }
    
    body {
        padding: 0;
    }
    
    .container {
        padding: 10px;
    }
    
    .header-card {
        padding: 1.2rem;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .support-card {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
        padding: 0.5rem 0;
        margin-bottom: 20px;
    }
    
    .section-title::after {
        width: 50px;
        height: 3px;
        margin-top: 0.8rem;
    }
    
    .featured-promo-card {
        padding: 1.5rem;
        border-left: 3px solid var(--primary);
        border-right: 3px solid var(--primary);
    }
    
    .featured-promo-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
        flex-direction: column;
        gap: 8px;
    }
    
    .featured-promo-desc {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .featured-promo-features {
        gap: 8px;
    }
    
    .featured-promo-feature {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .featured-promo-btn {
        font-size: 0.95rem;
        padding: 12px 25px;
    }
    
    .nav-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .nav-card {
        padding: 1.2rem;
    }
    
    .nav-card i {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .nav-title {
        font-size: 1.05rem;
    }
    
    .recommended {
        top: 8px;
        right: 8px;
        font-size: 0.7rem;
        padding: 2px 10px;
    }
    
    .footer {
        padding: 25px 0 20px;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
    
    .disclaimer {
        font-size: 0.8rem;
    }
    
    .footer-links {
        gap: 10px;
        margin-top: 20px;
        flex-direction: column;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
    