/* 1. 色彩系统变量（统一视觉基调） */
:root {
    --primary: #3b82f6;       /* 主题色主色（科技蓝） */
    --primary-light: #eff6ff; /* 主题色浅色（呼应主色） */
    --primary-dark: #2563eb;  /* 主题色深色（按钮hover） */
    --secondary: #64748b;     /* 次要色（辅助文本） */
    --success: #10b981;       /* 成功色（状态指示） */
    --warning: #f59e0b;       /* 警告色（服务器到期/错误） */
    --danger: #ef4444;        /* 危险色（错误提示） */
    --text-dark: #1e293b;     /* 深色文字（标题/重要信息） */
    --text-medium: #475569;   /* 中色文字（正文/说明） */
    --text-light: #94a3b8;    /* 浅色文字（次要信息） */
    --bg-light: #f8fafc;      /* 浅色背景（页面/卡片） */
    --bg-white: #FFFFFF;      /* 白色背景（内容区域） */
    --border: #e2e8f0;        /* 边框色（组件边框/分隔线） */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* 小阴影（轻微分层） */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* 中阴影（主题关联） */
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* 大阴影（强调元素） */
    --radius-sm: 4px;         /* 小圆角（按钮/输入框） */
    --radius-md: 8px;         /* 中圆角（卡片/容器） */
    --radius-lg: 12px;        /* 大圆角（主容器） */
    --transition: all 0.3s ease; /* 统一过渡效果 */
}

/* 2. 重置浏览器默认样式（统一跨浏览器表现） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 3. 全局样式（统一字体、背景、行高） */
html {
    scroll-behavior: smooth; /* 平滑滚动效果 */
}

body {
    background-color: var(--bg-light);
    font-family: "Inter", "Arial", "Microsoft YaHei", sans-serif; /* 现代无衬线字体 */
    line-height: 1.6; /* 优化正文可读性 */
    color: var(--text-medium);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 4. 页面容器（语义化+淡入动效） */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}



/* 5. 标题样式（突出层级） */
h1 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* 6. 段落样式（统一正文规范） */
p {
    color: var(--text-medium);
    margin-bottom: 16px; /* 小间距，统一段落分隔 */
    text-align: left;
    font-size: 0.67rem; /* 按比例调小1.5倍 */
}

/* 12. 回到顶部按钮（滚动显示） */
.back-to-top {
    position: fixed;
    bottom: 21.33px; /* 按比例调小1.5倍 */
    right: 21.33px; /* 按比例调小1.5倍 */
    width: 32px; /* 按比例调小1.5倍 */
    height: 32px; /* 按比例调小1.5倍 */
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem; /* 按比例调小1.5倍 */
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden; /* 初始隐藏 */
    transition: var(--transition);
    z-index: 999; /* 确保在最上层 */
    border: none;
    outline: none;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible; /* 滚动时显示 */
}

/* 13. 动画定义（淡入效果） */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 14. 移动端适配（屏幕<768px时） */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .server-time-value,
    .server-expiry-value {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-details {
        grid-template-columns: 1fr;
    }
    
    .beian-links {
        flex-direction: column;
        align-items: center;
    }
    
    .beian-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .feature-image {
        width: 150px;
        height: 150px;
    }
}

/* 15. 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 16. 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 17. 描述文本 */
.description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 18. 服务器信息样式 */
.server-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.server-time-value,
.server-expiry-value {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.server-time-value span {
    display: inline;
    margin-right: 0.5rem;
}

/* 18. 图片容器 */
.image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}
/* 19. 信息卡片 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0;
}



/* 20. 访问信息 */
.visit-info {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.visit-info h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.visit-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.detail-item .label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.detail-item .value {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    word-break: break-all;
}

/* 21. 备案信息 */
.beian {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.beian-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.beian-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background-color: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.beian-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}
