:root {
    --primary-color: #2c3e50; /* 主色调 - 深蓝灰 */
    --secondary-color: #3498db; /* 次要色调 - 亮蓝 */
    --accent-color: #1abc9c; /* 强调色 - 蓝绿色 */
    --light-color: #ecf0f1; /* 浅色背景 */
    --dark-color: #2c3e50; /* 深色文字 */
    --text-color: #333; /* 普通文字 */
}

body, * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f8f9fa; /* 可选：如果你需要全站统一的浅灰色背景 */
}


/* === 导航栏样式 === */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 40px;
}

.logo span {
    color: var(--accent-color);
}

.nav-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background-color: var(--light-color);
}

/* === 右侧搜索栏样式 === */
.nav-search {
    display: flex;
    align-items: center;
    background: var(--light-color);
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

.search-type {
    position: relative;
    cursor: pointer;
}

.search-select {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
}

.search-select:focus {
    outline: none;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-size: 0.9rem;
    outline: none;
}

.search-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s;
}

.search-button:hover {
    background: #16a085;
}

/* === 下拉菜单样式 === */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: var(--dark-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* === 响应式设计 === */
@media (max-width: 768px) {
    .nav-search {
        min-width: 250px;
    }

    .nav-links {
        display: none;
    }

    .search-select {
        min-width: 100px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-search {
        display: none;
    }
}
/* === 页脚样式 === */
footer {
    background: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* === 响应式设计 === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

button.dt-button,
div.dt-button,
a.dt-button,
input.dt-button {
    background-image: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 2. 统一我们的 btn-secondary 灰色下载按钮样式 */
button.dt-button.btn-secondary,
div.dt-button.btn-secondary,
a.dt-button.btn-secondary {
    background-color: #e9ecef !important; /* 统一的浅灰背景色 */
    color: #343a40 !important;            /* 深灰色文字 */
    border: 1px solid #ced4da !important; /* 浅灰边框，增加立体感 */
    padding: 5px 12px !important;         /* 紧凑精致的内边距 */
    border-radius: 6px !important;        /* 模板标准的 6px 圆角 */
    font-size: 13px !important;           /* 字体大小适中 */
    font-weight: 500 !important;
    transition: all 0.2s ease-in-out !important;
    margin: 0 4px !important;             /* 按钮之间保持均匀间距 */
}

/* 3. 统一鼠标悬停 (Hover) 时的加深效果 */
button.dt-button.btn-secondary:hover,
div.dt-button.btn-secondary:hover,
a.dt-button.btn-secondary:hover {
    background-color: #dde4e6 !important; /* 鼠标放上去稍微变深 */
    border-color: #c0c6cc !important;
    color: #1d2124 !important;
}

/* 4. 修复全站 "Show X entries" 下拉框与按钮的垂直对齐问题 */
.dataTables_length {
    display: inline-block !important; /* 保证在一行 */
    margin-right: 15px !important;    /* 与右侧的按钮拉开距离 */
    margin-top: 3px !important;       /* 微调下沉，完美对齐按钮 */
}

.dataTables_length label {
    margin-bottom: 0 !important;      /* 防止 Bootstrap 默认的 bottom-margin 破坏对齐 */
}

.dataTables_length select {
    border-radius: 4px !important;
    padding: 3px 8px !important;
    border: 1px solid #ccc !important;
    margin: 0 6px !important;
    outline: none !important;
}