/* 现代化设计系统 - 企业级风格 (MESA Cloud) */

/* 颜色系统 */
:root {
    --primary-blue: #007AFF;
    --primary-dark: #000000; /* MESA Black */
    --background: #F8F9FA;
    --surface: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --border: #E0E0E0;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

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

body {
    /* Updated Font Stack: Inter as primary */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6; /* Increased line-height for better readability */
    font-weight: 400;
    letter-spacing: 0.01em;
    background: var(--background);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    min-height: 100vh;
}

/* 布局容器 */
.container {
    max-width: 1200px; /* Constrain width for better readability */
    margin: 0 auto;
    padding: 0 32px;
}

/* 左侧边栏导航 */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px; /* Slightly wider */
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 1000;
    overflow-y: auto;
    padding: 24px 0;
    box-shadow: 2px 0 12px rgba(0,0,0,0.02);
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

/* Logo Styles */
.sidebar-logo {
    display: block;
    width: 120px;
    height: auto;
    margin-bottom: 12px;
}

.hero-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.hero-logo {
    width: 120px;
    height: auto;
}

/* 侧边栏按钮区域 */
.sidebar-actions {
    padding: 0 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 0.02em;
}

.action-btn .btn-icon {
    font-size: 16px;
    line-height: 1;
}

/* 主按钮 - 官网 */
.primary-btn {
    background: var(--primary-dark);
    color: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.primary-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 次要按钮 - 备案系统 */
.secondary-btn {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* ... existing code ... */

/* 订购咨询按钮 */
.consult-btn {
    background: #FFF0E6; /* 淡橙色背景 */
    color: #FF6600; /* 橙色文字 */
    border: 1px solid #FF6600;
    cursor: pointer;
    font-family: inherit;
}

.consult-btn:hover {
    background: #FF6600;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.2);
}

/* 弹窗样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0); /* 初始透明 */
    backdrop-filter: blur(0); /* 初始无模糊 */
    /* 基础布局属性 */
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease; /* 遮罩层过渡 */
}

.modal.show {
    display: flex;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

/* 联系人弹窗特定样式 */
.contact-modal-content {
    max-width: 850px;
    width: 95%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-hover);
    
    /* 初始状态：下移并透明 */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .contact-modal-content {
    /* 显示状态：原位并不透明 */
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-modal-body {
    padding: 10px;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.2s;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    width: 190px; /* 固定宽度以保证整齐 */
}

@media (max-width: 768px) {
    .contact-card {
        width: 45%; /* 移动端双列 */
    }
}

.contact-card:hover {
    background-color: #F5F7FA;
}

/* 让整个卡片可点击 */
.contact-action {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F0F0F0; /* 默认灰色背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    text-align: center; /* 文字居中 */
}

.contact-name-row {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.contact-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.contact-status {
    font-size: 14px;
    color: #999999;
}

/* 在线状态保持默认颜色或自定义 */
.status-offline {
    color: #999999;
}

.contact-role {
    font-size: 13px;
    color: #666666;
    margin-bottom: 2px;
}

.contact-qq {
    font-size: 13px;
    color: var(--primary-blue); /* 使用主题蓝色突出 QQ 号 */
    font-weight: 700; /* 加粗显示 */
    margin-bottom: 4px;
    font-family: "SF Mono", "Menlo", monospace; /* 使用等宽字体显示数字 */
    letter-spacing: 0.5px; /* 增加一点字间距提高可读性 */
}

.contact-time {
    font-size: 12px;
    color: #999999;
    line-height: 1.4;
    white-space: pre-wrap; /* 允许换行 */
}

/* 提示信息 */
.contact-warning {
    font-size: 12px;
    color: #EF4444; /* 红色警告 */
    background: #FEF2F2;
    padding: 10px 15px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-warning .highlight {
    font-weight: 700;
}

/* 底部联系方式行 */
.contact-footer-row {
    display: flex;
    justify-content: space-between; /* 左右分布 */
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #EEEEEE;
    gap: 20px;
    margin-top: 10px;
}

.contact-footer-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
    padding: 15px;
    flex: 1; /* 平分宽度 */
    background: #FAFAFA; /* 默认浅灰背景 */
}

.contact-footer-item:hover {
    background-color: #F0F0F0;
}

.footer-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.blue-icon {
    background-color: #5B8FF9;
}

.green-icon {
    background-color: #10B981; /* 微信绿 */
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 2px;
}

.footer-value {
    font-size: 13px;
    color: #666666;
}

/* 覆盖旧的热线样式 */
.contact-hotline, .hotline-icon, .hotline-info, .hotline-title, .hotline-number {
    display: none;
}

@media (max-width: 600px) {
    .contact-footer-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-footer-item {
        width: 100%;
    }
}

/* 覆盖原有的 close-btn 定位 (主弹窗) */
.contact-modal-content .close-btn {
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: normal;
    color: #999;
}
.sub-modal {
    z-index: 10002; /* 比主弹窗高一层 */
}

.gzh-modal-content {
    max-width: 400px; /* 从 320px 增大到 400px */
    width: 90%;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 40px 30px 30px; /* 内边距增大 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    
    /* 初始状态 */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .gzh-modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gzh-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gzh-image {
    width: 280px; /* 图片尺寸从 200px 增大到 280px */
    height: 280px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* 二维码圆角 */
}

.gzh-tip {
    font-size: 16px; /* 字体稍微调大 */
    color: #666666;
    margin: 0;
}

.gzh-close-btn {
    top: 10px;
    right: 15px;
    position: absolute;
    font-size: 28px;
    font-weight: normal;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.gzh-close-btn:hover {
    color: #333;
}

.secondary-btn:hover {
    background: #F8F9FA;
    border-color: var(--text-secondary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sidebar-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-content {
    padding: 0 16px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    padding: 0 12px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-link .nav-tag {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: #F1F5F9;
    color: #475569;
    border: none;
}

/* Tag Variants */
.nav-tag.tag-shield { color: #047857; background: #D1FAE5; }
.nav-tag.tag-attack { color: #B91C1C; background: #FEE2E2; }
.nav-tag.tag-cloud  { color: #1D4ED8; background: #DBEAFE; }
.nav-tag.tag-good   { color: #059669; background: #ECFDF5; }
.nav-tag.tag-udp    { color: #D97706; background: #FEF3C7; }
.nav-tag.tag-super  { color: #BE123C; background: #FFE4E6; }

.nav-link:hover {
    background: #F8F9FA;
    color: var(--primary-dark);
}

.nav-link.active {
    background: var(--primary-dark); /* Black active state */
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-link.active .nav-tag {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* 主内容区域 */
.main-content {
    margin-left: 260px;
    width: calc(100vw - 260px);
    min-height: 100vh;
    background: var(--background);
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    padding: 80px 0 60px; /* Increased padding */
    text-align: center;
    border-bottom: 1px solid var(--border);
}

/* ... (Menu toggle styles kept mostly same but updated z-index/colors if needed) ... */
.menu-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 48px; /* 稍微加大尺寸 */
    height: 48px;
    border-radius: 50%; /* 圆形背景 */
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: none; /* Only show on mobile */
    align-items: center;
    justify-content: center;
    z-index: 1100;
    cursor: pointer;
    padding: 8px; /* 给 Logo 留出内边距 */
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.menu-logo-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 隐藏原本的 hamburger bar 样式（如果有残留） */
.menu-bar {
    display: none;
}
/* ... */

.hero-title {
    font-size: 48px; /* Larger Title */
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px; /* Larger Subtitle */
    color: var(--text-secondary);
    margin-top: 16px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.terms-list {
    list-style: none; /* Removed bullets */
    padding-left: 0;
    margin: 16px 0;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.terms-list li {
    margin: 0;
    padding: 12px;
    background: #F8F9FA;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-align: left; /* Ensure text is left-aligned */
}

.terms-list li:hover {
    background: #FFFFFF;
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.terms-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-top: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.terms-grid {
    display: block; /* Reset grid to allow terms-list to handle layout */
}

.terms-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-dark);
    padding-bottom: 8px;
    display: inline-block;
    margin-bottom: 16px;
}

/* 地区区块 */
.region-section {
    background: var(--surface);
    margin: 24px 32px;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.region-section:hover {
    box-shadow: var(--shadow-hover);
}

.region-header {
    text-align: left;
    margin-bottom: 24px;
    padding: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.region-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.region-description {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
    margin: 0;
}

/* 表格容器 */
.table-container {
    margin-top: 0;
    padding: 0;
    overflow-x: auto;
}

.server-table {
    width: 100%;
    border-collapse: collapse;
}

.server-table th {
    background: #F8F9FA;
    color: var(--text-secondary);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

.server-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-primary);
}

.server-table tbody tr:hover {
    background: #FAFAFA;
}

.price-user {
    color: var(--primary-dark); /* Bold Black for price */
    font-weight: 700;
    font-size: 16px;
    font-family: "SF Mono", "Menlo", monospace;
}

.price-agent {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: line-through; /* Strikethrough for agent price if intended as 'original' or keep red if strictly agent */
    /* Or keep red but smaller */
    color: var(--error);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

/* Footer */
.footer {
    background: transparent;
    padding: 40px 0;
    border-top: none;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.footer-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-item a:hover {
    color: var(--primary-blue);
}

.footer-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-icon {
    font-size: 14px;
}

.footer-copyright {
    margin-top: 8px;
    font-size: 12px;
    color: #999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}


/* 鼠标跟随 (1:1 还原 study 目录) */
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
}

/* 隐藏默认光标 (可选，视需求而定) */
/* body.has-cursor, body.has-cursor a, body.has-cursor button {
    cursor: none;
} */

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    /* 移动端侧边栏逻辑 */
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1200; /* 高于 overlay */
        box-shadow: 4px 0 24px rgba(0,0,0,0.1);
    }
    
    body.sidebar-open .sidebar-nav {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex; /* 显示菜单按钮 */
    }
    
    /* 遮罩层 */
    #sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(4px);
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    body.sidebar-open #sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        padding: 0 16px;
    }
    
    .contact-card {
        width: 100%; /* 手机端改为单列，更清晰 */
        max-width: 280px; /* 限制最大宽度 */
    }
    
    .contact-modal-content {
        padding: 20px;
        width: 92%;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .region-section {
        margin: 16px;
        padding: 20px;
    }
    
    .table-container {
        padding: 0; /* 移除内边距以获得更多空间 */
    }
    
    .server-table th,
    .server-table td {
        padding: 12px 10px;
        white-space: nowrap; /* 防止换行导致表格过高 */
    }
    
    /* 允许部分列换行或隐藏，视需求而定，这里保持滚动 */
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .region-title {
        font-size: 24px;
    }
    
    .region-description {
        font-size: 15px;
    }
    
    .server-table {
        font-size: 13px;
    }
    
    .server-table th,
    .server-table td {
        padding: 8px 10px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 开屏动画容器 */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s step-end;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.splash-logo {
    width: 180px;
    height: auto;
    opacity: 0;
    transform: scale(0.9);
    animation: splashLogoEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.splash-slogan {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3em; /* 宽间距 */
    color: var(--text-secondary);
    text-transform: uppercase;
    opacity: 0;
    margin-top: -10px; /* 拉近与 LOGO 的距离 */
    animation: splashSloganEntrance 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes splashSloganEntrance {
    0% {
        opacity: 0;
        transform: translateY(10px);
        letter-spacing: 0.5em;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.3em;
    }
}

.splash-progress {
    width: 0;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    animation: splashProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashLogoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes splashProgress {
    0% { width: 0; opacity: 0; }
    20% { width: 0; opacity: 1; }
    100% { width: 60px; opacity: 0; }
}

/* 入场动画系统 - 默认状态不隐藏，仅在非 loaded 状态下隐藏 */
body:not(.loaded) .hero-header-content,
body:not(.loaded) .hero-subtitle,
body:not(.loaded) .terms-card,
body:not(.loaded) .terms-list li,
body:not(.loaded) .region-section {
    opacity: 0;
}

/* 当 body 有 loaded 类时触发动画 */
body.loaded .hero-header-content {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.loaded .hero-subtitle {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

body.loaded .terms-card {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

body.loaded .terms-list li {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

body.loaded .region-section {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 保留原来的延迟设置 */
body.loaded .terms-list li:nth-child(1) { animation-delay: 0.3s; }
body.loaded .terms-list li:nth-child(2) { animation-delay: 0.35s; }
body.loaded .terms-list li:nth-child(3) { animation-delay: 0.4s; }
body.loaded .terms-list li:nth-child(4) { animation-delay: 0.45s; }
body.loaded .terms-list li:nth-child(5) { animation-delay: 0.5s; }
body.loaded .terms-list li:nth-child(6) { animation-delay: 0.55s; }
body.loaded .terms-list li:nth-child(7) { animation-delay: 0.6s; }
body.loaded .terms-list li:nth-child(8) { animation-delay: 0.65s; }

.server-table tbody tr {
    animation: fadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity;
}

.server-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.server-table tbody tr:nth-child(2) { animation-delay: 0.09s; }
.server-table tbody tr:nth-child(3) { animation-delay: 0.13s; }
.server-table tbody tr:nth-child(4) { animation-delay: 0.17s; }
.server-table tbody tr:nth-child(5) { animation-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001s !important;
        transition: none !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
