/* =========================================
   1. 基础重置与变量
   ========================================= */
:root {
    --bg-dark: #070B14;
    --card-bg: rgba(17, 24, 39, 0.6);
    --primary-blue: #3B82F6;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.1);
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    touch-action: manipulation; /* 禁用双击放大 */
}

/* =========================================
   2. 呼吸光斑背景
   ========================================= */
.background-glow-1 {
    position: fixed; top: -10%; right: -10%;
    width: 65vw; height: 65vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(90px); z-index: -1; border-radius: 50%;
}
.background-glow-2 {
    position: fixed; bottom: -15%; left: -15%;
    width: 75vw; height: 75vw;
    background: radial-gradient(circle, rgba(255, 42, 109, 0.1) 0%, transparent 70%);
    filter: blur(120px); z-index: -1; border-radius: 50%;
}

/* =========================================
   3. 导航栏
   ========================================= */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.logo { font-size: 1.5rem; font-weight: bold; color: #fff; letter-spacing: 1px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: 0.3s; letter-spacing: 1px;}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* =========================================
   4. Policy 页面主容器
   ========================================= */
.legal-container {
    max-width: 1400px; /* 🌟 加宽容器，以便容纳两列 */
    margin: 140px auto 60px auto;
    padding: 0 40px;
}

.header-section {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 3rem;
    color: var(--primary-blue);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* 🌟 网格布局容器 */
.policies-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

/* =========================================
   5. 玻璃态条款卡片
   ========================================= */
.policy-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

/* 卡片内部的专属标题 */
.card-main-title {
    font-size: 1.8rem;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    letter-spacing: 1px;
}

.policy-section {
    margin-bottom: 35px;
}

.policy-section:last-of-type {
    margin-bottom: 0;
}

.policy-section h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-section h3 span {
    color: var(--primary-blue);
    font-weight: 900;
    font-size: 1.5rem;
}

.policy-section ul {
    list-style: none;
    padding-left: 10px;
}

.policy-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.policy-section ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.policy-section ul li strong {
    color: #fff;
}

/* =========================================
   6. 免责声明 (Warning Box)
   ========================================= */
.disclaimer-box {
    margin-top: auto; /* 自动推到底部对齐 */
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
}

.disclaimer-box h4 {
    color: var(--warning-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 严重警告框 (针对带酒行为) */
.warning-strict {
    background-color: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger-color);
}
.warning-strict h4 {
    color: var(--danger-color);
}

.disclaimer-box p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   7. 页脚
   ========================================= */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 60px;
}

/*!* =========================================*/
/*   📱 移动端适配*/
/*   ========================================= *!*/
/*@media (max-width: 768px) {*/
/*    .top-nav {*/
/*        flex-direction: column;*/
/*        padding: 15px !important;*/
/*    }*/
/*    .logo {*/
/*        margin-bottom: 10px;*/
/*        text-align: center;*/
/*    }*/
/*    .nav-links {*/
/*        flex-wrap: wrap;*/
/*        justify-content: center;*/
/*        gap: 12px;*/
/*    }*/
/*    .nav-links a {*/
/*        font-size: 0.8rem;*/
/*    }*/

/*    .legal-container {*/
/*        margin-top: 160px;*/
/*        padding: 0 20px;*/
/*    }*/

/*    .page-title {*/
/*        font-size: 2.2rem;*/
/*    }*/

/*    !* 手机端改成单列堆叠 *!*/
/*    .policies-wrapper {*/
/*        grid-template-columns: 1fr;*/
/*    }*/

/*    .policy-card {*/
/*        padding: 25px 20px;*/
/*    }*/

/*    .card-main-title {*/
/*        font-size: 1.5rem;*/
/*    }*/

/*    .policy-section h3 {*/
/*        font-size: 1.2rem;*/
/*    }*/

/*    .policy-section ul li {*/
/*        font-size: 0.95rem;*/
/*    }*/
/*}*/

/*!* =========================================*/
/*   🍔 汉堡菜单按钮样式 (基础隐藏)*/
/*   ========================================= *!*/
/*.hamburger {*/
/*    display: none; !* 电脑端默认隐藏 *!*/
/*    flex-direction: column;*/
/*    justify-content: space-between;*/
/*    width: 30px;*/
/*    height: 20px;*/
/*    cursor: pointer;*/
/*    z-index: 1001; !* 确保在最上层 *!*/
/*}*/

/*.hamburger span {*/
/*    display: block;*/
/*    width: 100%;*/
/*    height: 3px;*/
/*    background-color: #fff;*/
/*    border-radius: 3px;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*!* 汉堡按钮变成 X 的动画 *!*/
/*.hamburger.active span:nth-child(1) {*/
/*    transform: translateY(8px) rotate(45deg);*/
/*}*/
/*.hamburger.active span:nth-child(2) {*/
/*    opacity: 0; !* 中间的线消失 *!*/
/*}*/
/*.hamburger.active span:nth-child(3) {*/
/*    transform: translateY(-9px) rotate(-45deg);*/
/*}*/

/* =========================================
   🍔 汉堡菜单按钮样式 (基础设置)
   ========================================= */
.hamburger {
    display: none; /* 电脑端默认隐藏 */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* 确保在最上层 */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 汉堡按钮变成 X 的动画 */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   📱 移动端适配 (包含汉堡菜单魔法)
   ========================================= */
@media (max-width: 768px) {
    /* 1. 导航栏变成一行，两端对齐 */
    .top-nav {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 15px 20px !important;
        height: 70px !important;
    }

    .logo {
        margin-bottom: 0 !important;
        text-align: left;
        order: 2;
    }

    /* 2. 核心：强制显示汉堡按钮 */
    .hamburger {
        display: flex !important;
        order: 1;
        margin-right: 14px;
    }

    /* 3. 核心：将菜单变成左侧抽屉，默认隐藏在屏幕外 */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(7, 11, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column !important;
        align-items: flex-start;
        gap: 0 !important;
        padding: 90px 0 24px !important;
        border-right: 1px solid var(--border-color);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    /* 4. 当 JS 添加 show 类时，抽屉滑入 */
    .nav-links.show {
        left: 0;
    }

    /* 5. 美化抽屉菜单里的链接 */
    .nav-links a {
        display: block;
        width: 100%;
        padding: 18px 26px !important;
        text-align: left;
        font-size: 1.05rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links a:hover, .nav-links a.active {
        background-color: rgba(59, 130, 246, 0.1);
        color: var(--primary-blue);
        border-left: 4px solid var(--primary-blue);
        padding-left: 22px !important;
    }

    /* 6. 卡片内容的适配 */
    .legal-container {
        margin-top: 120px;
        padding: 0 20px;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .policies-wrapper {
        grid-template-columns: 1fr;
    }

    .policy-card {
        padding: 25px 20px;
    }

    .card-main-title {
        font-size: 1.5rem;
    }

    .policy-section h3 {
        font-size: 1.2rem;
    }

    .policy-section ul li {
        font-size: 0.95rem;
    }
}