/* =========================================
   全局基础样式复位与排版
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #f7f9fc; /* 统一使用极简浅灰蓝背景 */
    color: #333;
    line-height: 1.6;
    padding-bottom: 60px;
}

/* =========================================
   顶部通用导航栏 (Navbar)
========================================= */
.main-navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navbar .nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    background-color: #f1f5f9;
    color: #3498db;
}

/* 移动端导航自适应 */
@media (max-width: 768px) {
    .main-navbar .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    .nav-links {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .nav-links::-webkit-scrollbar {
        display: none; /* 隐藏移动端导航滚动条 */
    }
}

/* =========================================
   页面头部区域 (标题与副标题)
========================================= */
.header, .page-header {
    text-align: center;
    padding: 60px 20px 40px;
}

/* 首页头部留白稍微大一点 */
.header {
    padding: 80px 20px 60px; 
}

.header h1, .page-header h1 {
    font-size: 2.2rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.header p, .page-header p {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}

/* =========================================
   首页：导航卡片网格布局
========================================= */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.nav-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.nav-card h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #2d3748;
    text-align: center;
}

.nav-card p {
    font-size: 0.9rem;
    color: #718096;
    text-align: center;
}

/* =========================================
   子页面：数据表格与套餐布局
========================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.plan-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #eef0f4;
}

.section-title {
    background-color: #fcfcfc;
    padding: 20px 25px;
    border-bottom: 1px solid #eef0f4;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    border-left: 4px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    white-space: nowrap;
}

thead {
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 0.9rem;
}

th, td {
    padding: 16px 20px;
    border-bottom: 1px solid #eef0f4;
}

th {
    font-weight: 500;
    letter-spacing: 0.5px;
}

td {
    font-size: 0.95rem;
    color: #4a5568;
}

tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

.price {
    font-weight: 600;
    color: #e53e3e;
}

/* =========================================
   按钮与特殊高亮标签 (优惠码、缺货替换)
========================================= */
.btn-buy {
    display: inline-block;
    padding: 8px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-buy:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.promo-code {
    font-size: 0.9rem;
    background-color: #e2e8f0;
    color: #2d3748;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: normal;
    border: 1px dashed #cbd5e1;
}

.alt-badge {
    font-size: 0.85rem;
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

/* =========================================
   通用页脚
========================================= */
.footer {
    text-align: center;
    margin-top: 40px;
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 20px;
}