/* ========================================
   全局变量与基础重置
   ======================================== */
:root {
    /* 主色调 - 草绿色系 */
    --primary-color: #5DA552;      /* 主色调：草绿色 */
    --primary-dark: #4a8a41;       /* 深绿色 */
    --primary-light: #7bc56f;     /* 浅绿色 */
    
    /* 辅助色 */
    --secondary-color: #8B7355;    /* 石褐色 */
    --accent-color: #f5a623;      /* 强调色：橙色 */
    
    /* 中性色 */
    --deep-gray: #2D2D2D;         /* 深灰色 - 背景/文字 */
    --light-gray: #F5F5F5;        /* 浅灰色 - 背景 */
    --border-color: #e0e0e0;      /* 边框颜色 */
    
    /* 功能色 */
    --success: #4CAF50;          /* 成功色 - 绿色 */
    --warning: #FF9800;          /* 警告色 - 橙色 */
    --danger: #F44336;           /* 危险色 - 红色 */
    --info: #2196F3;             /* 信息色 - 蓝色 */
    
    /* 文字颜色 */
    --text-light: #FFFFFF;       /* 浅色文字 */
    --text-dark: #333333;        /* 深色文字 */
    --text-gray: #666666;        /* 灰色文字 */
    --text-light-gray: #999999;  /* 浅灰色文字 */
    
    /* 阴影与边框 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-small: 4px;
    
    /* 字体 */
    --font-main: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
    
    /* 过渡动画 */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* ========================================
   统一导航栏样式
   ======================================== */
.navbar {
    background-color: var(--deep-gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: var(--radius-small);
}

.logo-text {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.appeal-btn {
    background-color: var(--danger);
    color: var(--text-light) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius);
    transition: var(--transition);
}

.appeal-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

/* ========================================
   统一页面标题样式
   ======================================== */
.page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-dark);
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* ========================================
   统一主要内容区样式
   ======================================== */
main {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

/* ========================================
   统一卡片组件样式
   ======================================== */
.card {
    background: var(--text-light);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card p, .card li {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 10px;
}

/* 步骤列表样式 */
.step-list {
    counter-reset: step-counter;
}

.step-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
}

.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* ========================================
   统一表格样式
   ======================================== */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-gray);
    font-weight: bold;
    color: var(--text-dark);
    width: 25%;
}

tr:last-child td {
    border-bottom: none;
}

code {
    background: #eef1f5;
    padding: 3px 8px;
    border-radius: var(--radius-small);
    font-family: var(--font-mono);
    color: #d63384;
    font-size: 14px;
}

/* ========================================
   统一公告列表样式
   ======================================== */
.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.announcement-item {
    background: var(--text-light);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-title {
    font-size: 22px;
    color: var(--text-dark);
    margin: 0;
}

.announcement-date {
    font-size: 14px;
    color: var(--text-light-gray);
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 20px;
}

.announcement-content {
    color: var(--text-gray);
    font-size: 16px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-small);
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
    color: white;
}

.tag-update { background-color: var(--info); }
.tag-event { background-color: var(--success); }
.tag-warning { background-color: var(--warning); }

/* ========================================
   统一表单样式
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--deep-gray);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    font-family: var(--font-main);
    font-size: 15px;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(93, 165, 82, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* 验证码特殊布局 */
.captcha-input-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-img {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    background: var(--light-gray);
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-small);
    letter-spacing: 3px;
    user-select: none;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ========================================
   统一提示框样式
   ======================================== */
.alert {
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border-left: 4px solid;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning);
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

/* ========================================
   统一页脚样式
   ======================================== */
.footer {
    background-color: var(--deep-gray);
    color: var(--text-light);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 10px;
    color: #aaa;
    font-size: 0.9rem;
}

.footer-section a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--text-light);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .card {
        padding: 20px;
    }
    
    th, td {
        padding: 12px 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ========================================
   特定页面调整
   ======================================== */
/* 首页Banner样式 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-light);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.server-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 25px;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
}

/* 申诉查询卡片 */
.query-result {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius);
    border-left: 4px solid var(--info);
}

/* 状态徽章 */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-small);
    font-size: 12px;
    color: white;
    font-weight: bold;
}

/* ========================================
   首页特色区域优化 (Features Section)
   ======================================== */

/* 区域背景微调：增加一点深度 */
.features {
    padding: 60px 0;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* 标题样式优化 */
.features .section-title {
    text-align: center;
    font-size: 32px;
    color: var(--deep-gray);
    margin-bottom: 50px;
    position: relative;
}

.features .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 网格布局优化：增加间距 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px; /* 增大卡片间距 */
}

/* 卡片核心样式重制 */
.feature-card {
    background: #FFFFFF;
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 弹性动画曲线 */
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* 卡片悬浮效果 */
.feature-card:hover {
    transform: translateY(-10px); /* 上浮更多 */
    box-shadow: 0 15px 30px rgba(93, 165, 82, 0.2); /* 绿色主题阴影 */
    border-color: var(--primary-light);
}

/* 图标容器样式 */
.feature-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    margin: 0 auto 20px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(93, 165, 82, 0.4);
    transition: all 0.3s ease;
}

/* 悬浮时图标旋转 */
.feature-card:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
}

/* 标题样式 */
.feature-card h3 {
    color: var(--deep-gray);
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* 描述文字样式 */
.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

/* 响应式微调 */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr; /* 小屏幕单列显示 */
        gap: 20px;
    }
    
    .features .section-title {
        font-size: 26px;
    }
}

/* ========================================
   移动端导航菜单展开样式
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;               /* 与 navbar 高度对齐 */
        left: 0;
        right: 0;
        background-color: var(--deep-gray);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
        display: none;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}


.badge.success { background-color: var(--success); }
.badge.warning { background-color: var(--warning); }
.badge.danger { background-color: var(--danger); }