/* ========== 天蓝色科技感主题（桌面端+移动端双导航） ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', 'Roboto', sans-serif;
    background: #BAE6FD;
    color: #1E293B;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 顶部栏（桌面端导航 + LOGO） ---------- */
.top-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #7DD3FC;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 999;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0284C7;
    letter-spacing: -0.5px;
}
.logo span {
    color: #EA4335;
}
.desktop-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.desktop-nav a {
    color: #1E293B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.desktop-nav a:hover {
    color: #0284C7;
}
.desktop-nav a.active {
    color: #0284C7;
    border-bottom: 2px solid #0284C7;
    padding-bottom: 4px;
}
/* 移动端隐藏桌面导航 */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* ---------- 移动端底部固定导航栏 ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    display: none; /* 默认隐藏，仅在移动端显示 */
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px 12px;
    border-top: 1px solid #7DD3FC;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748B;
    font-size: 0.7rem;
    transition: color 0.2s;
    gap: 4px;
}
.bottom-nav-item .icon {
    font-size: 1.4rem;
}
.bottom-nav-item.active {
    color: #0284C7;
}
.bottom-nav-item:hover {
    color: #0284C7;
}
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
}

/* ---------- 按钮 ---------- */
.btn, .btn-primary, .btn-submit, button[type="submit"] {
    background: #0284C7;
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
    font-family: inherit;
}
.btn:hover, .btn-primary:hover, .btn-submit:hover, button[type="submit"]:hover {
    background: #0369A1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ---------- 卡片 ---------- */
.card, .service-card, .channel-card, .renew-card, .form-container, .info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    border: 1px solid #7DD3FC;
    border-radius: 24px;
    padding: 1.8rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.card:hover, .service-card:hover, .channel-card:hover, .renew-card:hover, .form-container:hover, .info-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #38BDF8;
}

/* ---------- 表单元素 ---------- */
input, textarea, select {
    background: #FFFFFF;
    border: 1px solid #BAE6FD;
    border-radius: 16px;
    padding: 12px 16px;
    color: #1E293B;
    font-size: 1rem;
    transition: 0.2s;
    width: 100%;
    font-family: inherit;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

/* ---------- 标题 ---------- */
h1, h2, h3 {
    color: #0F172A;
    font-weight: 700;
    letter-spacing: -0.3px;
}
h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.8rem; margin-bottom: 1.5rem; border-left: 4px solid #0284C7; padding-left: 1rem; }

/* 链接 */
a { color: #0284C7; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
footer {
    background: #FFFFFF;
    border-top: 1px solid #7DD3FC;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    color: #475569;
    font-size: 0.9rem;
}

/* ---------- 辅助类 ---------- */
.success-message {
    background: #DCFCE7;
    border-left: 4px solid #10B981;
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: #166534;
}

/* 全局换行（解决邮箱超长） */
.info-card p, .card p {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* 移动端额外优化 */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .card, .service-card, .channel-card, .info-card { padding: 1.2rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    .info-card { min-width: 140px; }
}