/* style.css - SMK Sungai Tapang (Gradient Premium Theme) */
:root {
    /* 核心颜色变量 */
    --primary-blue: #0D1282;
    --primary-dark-blue: #00004d; /* 用于渐变末端 */
    
    --accent-red: #D71313;
    --accent-dark-red: #8a0000;   /* 用于渐变末端 */
    
    --btn-start: #D71313;         /* 按钮渐变起点 */
    --btn-end: #ff7043;           /* 按钮渐变终点 */
    
    --deco-yellow: #F0DE36;
    
    --pure-white: #ffffff;
    --text-dark: #333333;
}

body {
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    /* 全局背景：极淡的灰白渐变，消除死板的纯色 */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    background-attachment: fixed; /* 背景固定，滚动时更高级 */
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Header (页眉) 渐变 --- */
header {
    /* 深蓝色对角渐变 */
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark-blue) 100%);
    color: var(--pure-white);
    padding: 35px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: 6px solid var(--deco-yellow);
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 2.6em;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); /* 文字阴影增加立体感 */
}

header p {
    margin: 10px 0 0;
    font-size: 1.2em;
    font-style: italic;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* --- Navigation (菜单) 渐变 --- */
nav {
    /* 红色立体渐变 (从上到下) */
    background: linear-gradient(to bottom, var(--accent-red) 0%, var(--accent-dark-red) 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: 3px solid #600000; /* 深色底边，增加厚度感 */
}

nav a {
    display: block;
    color: var(--pure-white);
    text-align: center;
    padding: 16px 28px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.1); /* 菜单项之间的分割线 */
}

nav a:last-child { border-right: none; }

nav a:hover {
    /* 悬停时变成黄色渐变 */
    background: linear-gradient(to bottom, #ffeb3b 0%, var(--deco-yellow) 100%);
    color: var(--primary-blue);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* --- 内容容器 --- */
.container {
    padding: 50px;
    background: var(--pure-white); /* 内容区保持纯白，保证阅读清晰 */
    margin: 40px auto;
    width: 85%;
    max-width: 960px;
    border-radius: 10px;
    /* 更柔和、扩散的阴影 */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top: 5px solid var(--primary-blue);
}

h2 {
    color: var(--primary-blue);
    /* 标题下划线也改成渐变 */
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--deco-yellow), transparent) 1;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

/* --- 统一渐变按钮 (Buttons) --- */
button, .btn, .cta-button {
    /* 红橙活力渐变 */
    background: linear-gradient(45deg, var(--btn-start), var(--btn-end));
    color: white;
    padding: 14px 45px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(215, 19, 19, 0.4);
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
}

/* 按钮光泽效果 */
button::after, .btn::after, .cta-button::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

button:hover::after, .btn:hover::after, .cta-button:hover::after {
    left: 100%; /* 鼠标滑过时一道光闪过 */
}

button:hover, .btn:hover, .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 19, 19, 0.6);
}

/* --- 表单输入框 --- */
input, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px;
    border: 2px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.05em;
    transition: all 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #fff;
    box-shadow: 0 0 8px rgba(13, 18, 130, 0.15);
}

::placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

/* --- 表格样式 --- */
table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 1.05em; }
th { 
    /* 表头深蓝渐变 */
    background: linear-gradient(to bottom, var(--primary-blue), #080c55);
    color: var(--pure-white); 
    padding: 15px; 
    text-align: left; 
    border: 1px solid #05084a;
}
td { padding: 12px; border: 1px solid #ddd; color: #333; }
tr:nth-child(even) { background-color: #f8f9fa; }
tr:hover { background-color: #fff8e1; transition: 0.2s; }

/* --- Alert 样式 --- */
.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: bold; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.success { background-color: #d4edda; color: #155724; border-left: 5px solid #28a745; }
.error { background-color: #f8d7da; color: #721c24; border-left: 5px solid #dc3545; }

/* --- Info 页头像 --- */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.profile-img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    border: 5px solid var(--pure-white);
    /* 头像阴影 */
    box-shadow: 0 15px 30px rgba(0,0,0,0.25); 
    margin-bottom: 25px;
    transition: transform 0.3s;
}
.profile-img:hover { transform: scale(1.03); }