/* ===========================
   1. 全局重置 (科技网格风)
   =========================== */
:root {
    --bg-dark: #0b1121;       /* 更深邃的底色 */
    --card-dark: rgba(30, 41, 59, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    
    --text-white: #f8fafc;
    --text-grey: #94a3b8;
    
    --accent-blue: #0ea5e9;   
    --accent-red: #ff4d4d;    
    --accent-green: #10b981;  
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    /* --- 核心背景重构 --- */
    background-color: var(--bg-dark);
    /* 绘制微弱的网格线，增加PC端质感 */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15), transparent 60%);
    background-size: 30px 30px, 30px 30px, 100% 100%;
    background-attachment: fixed;
    
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 移动端靠顶 */
    line-height: 1.5;
}

/* ===========================
   2. 主容器 (PC端悬浮卡片化)
   =========================== */
.main-wrapper {
    width: 100%;
    max-width: 480px; /* 锁定宽度，模拟App体验 */
    padding: 20px 20px 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

/* PC端特别优化：让内容像卡片一样悬浮 */
@media (min-width: 768px) {
    body {
        align-items: center; /* PC端垂直居中 */
    }
    
    .main-wrapper {
        min-height: auto; /* 不再铺满高度 */
        margin: 40px 0;
        background: rgba(15, 23, 42, 0.6); /* 容器背景深色半透明 */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 24px;
        box-shadow: 
            0 20px 50px -10px rgba(0, 0, 0, 0.5), /* 深投影 */
            0 0 0 1px rgba(255, 255, 255, 0.05);  /* 内发光边框 */
        backdrop-filter: blur(20px); /* 毛玻璃 */
    }
}

/* ===========================
   3. 头部设计
   =========================== */
.brand-header {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 10px;
}

.logo-text {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--accent-blue);
    font-weight: 700;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.main-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 8px 0 12px 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.dot {
    width: 6px; height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

/* ===========================
   4. 公告栏
   =========================== */
.notice-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 30px;
}

.notice-header {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.bell-icon { margin-right: 6px; font-size: 1rem; }

.notice-card p {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.6;
    text-align: justify;
}

/* ===========================
   5. 核心链接列表
   =========================== */
.link-section { margin-bottom: 30px; }

.section-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-white);
    font-weight: 700;
}
.section-title .icon { margin-right: 8px; font-size: 1.2rem; }

.link-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 链接条目 */
.link-item {
    display: flex;
    align-items: center;
    background: var(--card-dark);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* 左侧图标区 */
.item-left { margin-right: 15px; }

.item-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

/* 中间文字区 */
.item-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-grey);
    margin-bottom: 2px;
}

/* 网址高亮 */
.site-url {
    font-size: 1.05rem;
    color: var(--accent-red);
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.3); /* 红色辉光 */
}

/* 右侧按钮区 */
.item-right { margin-left: 10px; }

.btn-go {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    font-weight: 500;
    border: 1px solid transparent;
}

/* 交互效果 */
.link-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
}
.link-item:active .btn-go {
    background: var(--accent-blue);
    color: #fff;
}

/* PC端悬停优化 */
@media (hover: hover) {
    .link-item:hover {
        border-color: rgba(14, 165, 233, 0.4); /* 悬停蓝边框 */
        background: rgba(30, 41, 59, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    .link-item:hover .btn-go {
        border-color: var(--accent-blue);
        color: var(--accent-blue);
    }
}

/* ===========================
   6. 底部操作区
   =========================== */
.bottom-actions {
    display: flex;
    gap: 15px;
    margin-top: auto; 
    margin-bottom: 30px;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
}

.action-btn .icon { margin-right: 6px; font-style: normal; }

.action-btn.outline {
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-grey);
    background: transparent;
}
.action-btn.outline:hover {
    border-color: var(--text-white);
    color: var(--text-white);
}

.action-btn.primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
    border: none;
}
.action-btn.primary:hover {
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.action-btn:active { transform: scale(0.96); opacity: 0.9; }

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #475569;
    padding-bottom: 20px;
}

/* 适配超小屏 */
@media (max-width: 360px) {
    .site-url { font-size: 0.95rem; }
    .item-icon { width: 40px; height: 40px; font-size: 1.2rem; }
}