/* ===== 全局样式：多彩科技渐变背景 ===== */
body {
    background: radial-gradient(circle at 10% 20%, #1a2f3f, #0b1e2e 80%);
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    color: #eef5fa;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 科技感点阵花纹（纯CSS绘制） */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(0, 180, 216, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 70% 80%, rgba(156, 39, 176, 0.04) 0%, transparent 25%),
        radial-gradient(circle at 90% 20%, rgba(255, 193, 7, 0.03) 0%, transparent 30%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
    z-index: 0;
}

/* 额外的斜纹科技线 */
body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: repeating-linear-gradient(45deg, 
        rgba(0, 180, 216, 0.02) 0px, 
        rgba(0, 180, 216, 0.02) 1px,
        transparent 1px, 
        transparent 20px);
    transform: rotate(0deg);
    pointer-events: none;
    z-index: 0;
}

/* ===== 导航栏：多彩渐变 ===== */
.nav-menu {
    background: linear-gradient(95deg, #0a2a44, #1b4f6e, #2a5f7a);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 150, 200, 0.3), inset 0 1px 2px rgba(255,255,240,0.6);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: #f0f9ff !important;
    margin: 0 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.6rem 0.2rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ffd966, #4cc9f0, #b5179e);
    transition: width 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px #ffd966;
}

.nav-menu a:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0,240,255,0.5);
}

.nav-menu a:hover::before {
    width: 100%;
}

/* ===== 主容器：半透明白色底，突出内容 ===== */
.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 36px;
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 215, 0, 0.3) inset,
                0 0 30px rgba(76, 201, 240, 0.3);
    border: 1px solid rgba(255,255,200,0.6);
    position: relative;
    z-index: 2;
}

/* 主容器内文字颜色（深色保证可读） */
.container, .container p, .container li, .container td {
    color: #102a3c;
}

/* ===== 标题：多彩渐变文字 ===== */
h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(145deg, #0066cc, #9c27b0, #ff6d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(156,39,176,0.3);
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #4cc9f0, #f72585, #ffd166);
    border-radius: 4px;
    box-shadow: 0 0 20px #f72585;
}

h2 {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0b5e8a, #9d4edd, #ff9100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 6px solid transparent;
    border-image: linear-gradient(180deg, #4cc9f0, #f72585);
    border-image-slice: 1;
    border-right: none;
    border-top: none;
    border-bottom: none;
}

h3 {
    font-size: 1.8rem;
    color: #0a4270;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #ffb703, #fb8500);
    border-radius: 3px;
}

/* ===== 卡片：多彩背景，科技感边框 ===== */
.card {
    background: linear-gradient(145deg, #ffffff, #f2f9ff);
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 20px 30px -8px rgba(0, 80, 120, 0.3), 
                0 0 0 1px rgba(76, 201, 240, 0.4) inset,
                0 0 30px rgba(247, 37, 133, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.8);
    color: #051f2e;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -10px #4cc9f0, 
                0 0 0 2px #f72585 inset,
                0 0 40px #ffd166;
}

/* ===== 图片：多彩边框，发光效果 ===== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(145deg, #4cc9f0, #f72585, #ffb703) border-box;
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 40px -10px #b5179e;
}

/* ===== 引用/信息框：彩色渐变 ===== */
.alert-info {
    background: linear-gradient(145deg, #cfe9ff, #e2f0fa);
    border: none;
    border-left: 8px solid;
    border-image: linear-gradient(180deg, #4cc9f0, #f72585, #ffb703) 1;
    color: #011c2c;
    padding: 2rem;
    border-radius: 28px;
    font-size: 1.1rem;
    box-shadow: 0 15px 25px -10px #9d4edd;
    margin: 2rem 0;
    backdrop-filter: blur(4px);
}

/* ===== 列表 ===== */
ul, ol {
    padding-left: 2rem;
}

li {
    margin: 0.6rem 0;
    color: #0b2a3e;
    font-weight: 500;
}

li::marker {
    content: "▹  ";
    color: #f72585;
    font-size: 1.2rem;
}

/* ===== 表格：多彩表头 ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 30px -8px #4cc9f0;
    margin: 2rem 0;
    border: 1px solid #ffe5b4;
}

th {
    background: linear-gradient(145deg, #1b4f6e, #2a5f7a, #3a6f8c);
    color: white;
    font-weight: 600;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ffd166;
}

td {
    padding: 1rem;
    border-bottom: 1px solid #ade8f4;
    color: #102a3c;
}

tr:last-child td {
    border-bottom: none;
}

/* ===== 按钮：多彩渐变 ===== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(145deg, #4cc9f0, #f72585, #ffd166);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px -5px #b5179e;
    border: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -5px #4cc9f0, 0 0 30px #ffd166;
    background: linear-gradient(145deg, #5dd9ff, #ff4d9e, #ffe070);
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    padding: 2.5rem;
    color: #bed9f0;
    font-size: 1rem;
    background: linear-gradient(145deg, #0b2a3e, #1b3b4f);
    backdrop-filter: blur(5px);
    border-radius: 60px 60px 0 0;
    margin-top: 4rem;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, #4cc9f0, #f72585, #ffb703) 1;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 -10px 30px rgba(76,201,240,0.2);
}

/* ===== 分割线 ===== */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4cc9f0, #f72585, #ffb703, #4cc9f0, transparent);
    margin: 3rem 0;
    border-radius: 3px;
}

/* ===== 添加一些浮动光点（纯装饰） ===== */
.floating-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-dots div {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 15px #f72585;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

/* 如果你想要浮动光点，可以在 body 底部加几个 div，但为了安全，这里不强制添加，由你决定是否在 layout.html 中加入下面这段：
   <div class="floating-dots">
       <div style="top:20%;left:10%;"></div>
       <div style="top:70%;left:80%;"></div>
       <div style="top:40%;left:40%;"></div>
   </div>
*/