/* 标签页面样式 */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --background-color: #f0f2f5;
    --text-color: #333;
    --border-color: #ddd;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

.container {
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #666;
}

.breadcrumb .current {
    color: #666;
    font-weight: 500;
}

/* 页面头部样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.header h1 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
    color: #666;
}

/* 标签区域样式 */
.tag-section {
    background: white;
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.section-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 标签基础样式 */
.tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 热门标签 - 自动循环颜色系统（支持无限标签） */
.hot-tags .tag:nth-child(24n+1) { background: #FF6B35; }
.hot-tags .tag:nth-child(24n+2) { background: #4CAF50; }
.hot-tags .tag:nth-child(24n+3) { background: #2196F3; }
.hot-tags .tag:nth-child(24n+4) { background: #9C27B0; }
.hot-tags .tag:nth-child(24n+5) { background: #FF9800; }
.hot-tags .tag:nth-child(24n+6) { background: #E91E63; }
.hot-tags .tag:nth-child(24n+7) { background: #00BCD4; }
.hot-tags .tag:nth-child(24n+8) { background: #8BC34A; }
.hot-tags .tag:nth-child(24n+9) { background: #FFC107; }
.hot-tags .tag:nth-child(24n+10) { background: #607D8B; }
.hot-tags .tag:nth-child(24n+11) { background: #795548; }
.hot-tags .tag:nth-child(24n+12) { background: #3F51B5; }
.hot-tags .tag:nth-child(24n+13) { background: #009688; }
.hot-tags .tag:nth-child(24n+14) { background: #CDDC39; color: #333; }
.hot-tags .tag:nth-child(24n+15) { background: #FF5722; }
.hot-tags .tag:nth-child(24n+16) { background: #673AB7; }
.hot-tags .tag:nth-child(24n+17) { background: #F44336; }
.hot-tags .tag:nth-child(24n+18) { background: #03A9F4; }
.hot-tags .tag:nth-child(24n+19) { background: #FF4081; }
.hot-tags .tag:nth-child(24n+20) { background: #536DFE; }
.hot-tags .tag:nth-child(24n+21) { background: #40C4FF; }
.hot-tags .tag:nth-child(24n+22) { background: #18FFFF; }
.hot-tags .tag:nth-child(24n+23) { background: #69F0AE; }
.hot-tags .tag:nth-child(24n+24) { background: #FFFF00; color: #333; }

/* 功能标签 - 灰色系 */
.function-tags .tag { background: #6c757d; }
.function-tags .tag:nth-child(2n) { background: #495057; }
.function-tags .tag:nth-child(3n) { background: #343a40; }
.function-tags .tag:nth-child(4n) { background: #28a745; }
.function-tags .tag:nth-child(5n) { background: #17a2b8; }
.function-tags .tag:nth-child(6n) { background: #ffc107; color: #333; }
.function-tags .tag:nth-child(7n) { background: #dc3545; }
.function-tags .tag:nth-child(8n) { background: #6f42c1; }
.function-tags .tag:nth-child(9n) { background: #fd7e14; }
.function-tags .tag:nth-child(10n) { background: #e83e8c; }
.function-tags .tag:nth-child(11n) { background: #6610f2; }
.function-tags .tag:nth-child(12n) { background: #20c997; }

/* 学科标签 - 蓝色系 */
.subject-tags .tag { background: #007bff; }
.subject-tags .tag:nth-child(2n) { background: #0056b3; }
.subject-tags .tag:nth-child(3n) { background: #004085; }
.subject-tags .tag:nth-child(4n) { background: #6610f2; }
.subject-tags .tag:nth-child(5n) { background: #6f42c1; }
.subject-tags .tag:nth-child(6n) { background: #e83e8c; }
.subject-tags .tag:nth-child(7n) { background: #17a2b8; }
.subject-tags .tag:nth-child(8n) { background: #28a745; }
.subject-tags .tag:nth-child(9n) { background: #ffc107; color: #333; }
.subject-tags .tag:nth-child(10n) { background: #dc3545; }
.subject-tags .tag:nth-child(11n) { background: #fd7e14; }
.subject-tags .tag:nth-child(12n) { background: #20c997; }

/* 年级标签 - 绿色系 */
.grade-tags .tag { background: #28a745; }
.grade-tags .tag:nth-child(2n) { background: #20c997; }
.grade-tags .tag:nth-child(3n) { background: #17a2b8; }
.grade-tags .tag:nth-child(4n) { background: #6c757d; }
.grade-tags .tag:nth-child(5n) { background: #007bff; }
.grade-tags .tag:nth-child(6n) { background: #6610f2; }
.grade-tags .tag:nth-child(7n) { background: #e83e8c; }
.grade-tags .tag:nth-child(8n) { background: #fd7e14; }
.grade-tags .tag:nth-child(9n) { background: #ffc107; color: #333; }
.grade-tags .tag:nth-child(10n) { background: #dc3545; }
.grade-tags .tag:nth-child(11n) { background: #6f42c1; }
.grade-tags .tag:nth-child(12n) { background: #495057; }

/* 特色标签 - 彩色系 */
.special-tags .tag:nth-child(1) { background: #28a745; }
.special-tags .tag:nth-child(2) { background: #17a2b8; }
.special-tags .tag:nth-child(3) { background: #ffc107; color: #333; }
.special-tags .tag:nth-child(4) { background: #dc3545; }
.special-tags .tag:nth-child(5) { background: #6f42c1; }
.special-tags .tag:nth-child(6) { background: #fd7e14; }
.special-tags .tag:nth-child(7) { background: #e83e8c; }
.special-tags .tag:nth-child(8) { background: #6610f2; }
.special-tags .tag:nth-child(9) { background: #20c997; }
.special-tags .tag:nth-child(10) { background: #6c757d; }
.special-tags .tag:nth-child(11) { background: #007bff; }
.special-tags .tag:nth-child(12) { background: #0056b3; }
.special-tags .tag:nth-child(13) { background: #004085; }
.special-tags .tag:nth-child(14) { background: #495057; }
.special-tags .tag:nth-child(15) { background: #343a40; }
.special-tags .tag:nth-child(16) { background: #FF6B35; }
.special-tags .tag:nth-child(17) { background: #4CAF50; }
.special-tags .tag:nth-child(18) { background: #2196F3; }
.special-tags .tag:nth-child(19) { background: #9C27B0; }
.special-tags .tag:nth-child(20) { background: #FF9800; }
.special-tags .tag:nth-child(21) { background: #E91E63; }
.special-tags .tag:nth-child(22) { background: #00BCD4; }
.special-tags .tag:nth-child(23) { background: #8BC34A; }
.special-tags .tag:nth-child(24) { background: #FFC107; }
.special-tags .tag:nth-child(25) { background: #607D8B; }
.special-tags .tag:nth-child(26) { background: #795548; }
.special-tags .tag:nth-child(27) { background: #3F51B5; }
.special-tags .tag:nth-child(28) { background: #009688; }
.special-tags .tag:nth-child(29) { background: #CDDC39; color: #333; }
.special-tags .tag:nth-child(30) { background: #FF5722; }
.special-tags .tag:nth-child(31) { background: #673AB7; }
.special-tags .tag:nth-child(32) { background: #F44336; }
.special-tags .tag:nth-child(33) { background: #03A9F4; }
.special-tags .tag:nth-child(34) { background: #FF6B35; }
.special-tags .tag:nth-child(35) { background: #4CAF50; }
.special-tags .tag:nth-child(36) { background: #2196F3; }
.special-tags .tag:nth-child(37) { background: #9C27B0; }
.special-tags .tag:nth-child(38) { background: #FF9800; }
.special-tags .tag:nth-child(39) { background: #E91E63; }
.special-tags .tag:nth-child(40) { background: #00BCD4; }

/* SEO内容区域样式 */
.seo-content {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    width: 87%;
    margin: 0 auto;
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.seo-section {
    margin-bottom: 25px;
}

.seo-section:last-child {
    margin-bottom: 0;
}

.seo-section h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-section p {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

/* 页脚样式 */
.footer {
    background: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-main {
    color: #666;
    margin: 10px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .tag {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .tags-container {
        gap: 8px;
    }
}
