/* Slate Theme */
:root {
    --primary: #64748B;
    --primary-dark: #475569;
    --primary-light: #94A3B8;
    --secondary: #334155;
    --secondary-dark: #1e293b;
    --secondary-light: #475569;
    --accent: #38BDF8;
    --gold: #0EA5E9;
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: rgba(100, 116, 139, 0.12);
    --shadow-lg: rgba(100, 116, 139, 0.22);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #f5f5f5;
}

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

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: rgba(255,255,255,0.9);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    gap: 15px;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--accent);
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-trophy {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(56,189,248,0.4);
}

.logo-text {
    color: white;
}

.logo-text-main {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
}

.logo-text-sub {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover,
nav a.active {
    color: var(--secondary-dark);
    background: var(--accent);
}

/* Style Switcher */
.style-switcher {
    display: flex;
    gap: 8px;
}

.style-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.style-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 70px 40px;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 60px,
            rgba(56,189,248,0.05) 60px,
            rgba(56,189,248,0.05) 120px
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--secondary-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-tag {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.section-count {
    color: var(--gray);
    font-size: 1rem;
}

.count-number {
    font-weight: 700;
    color: var(--primary);
}

/* News Grid */
.news-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.layout-grid {
    grid-template-columns: repeat(var(--cols, 4), 1fr);
}

.news-card {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-lg);
    border-color: var(--primary);
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-image-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.1);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.95);
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    white-space: nowrap;
    max-width: fit-content;
}

.news-info {
    padding: 16px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    display: none;
}

/* Standard Card */
.card-style-standard {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: default;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Taxonomy Pages */
.taxonomy-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.taxonomy-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all 0.3s ease;
}

.taxonomy-item:hover {
    box-shadow: 0 4px 20px var(--shadow-lg);
    transform: translateY(-4px);
}

.taxonomy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
}

.taxonomy-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.taxonomy-count {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   SLATE THEME UNIQUE LAYOUT
   ======================================== */

/* Slate: 现代简约网格布局 */
body.theme-slate .news-grid {
    display: grid;
    gap: 20px;
    padding: 10px 0;
}

body.theme-slate .news-card {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(100, 116, 139, 0.1);
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #E2E8F0;
}

body.theme-slate .news-card:hover {
    box-shadow: 0 8px 30px rgba(100, 116, 139, 0.15);
    transform: translateY(-4px);
    border-color: #94A3B8;
}

body.theme-slate .news-card .news-image-wrapper {
    border-radius: 0;
    overflow: hidden;
    border-bottom: 2px solid #64748B;
}

body.theme-slate .news-card .news-info {
    padding: 16px 18px 18px;
}

body.theme-slate .news-card .news-title {
    font-weight: 600;
    color: #1E293B;
    letter-spacing: -0.02em;
    font-size: 1rem;
}

body.theme-slate .news-card .news-date-badge {
    background: #64748B;
    color: white;
    border-radius: 2px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.theme-slate .site-header {
    border-bottom: 2px solid #38BDF8;
}

body.theme-slate .hero-section {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    border-radius: 0;
    background: linear-gradient(135deg, #64748B 0%, #334155 100%);
}

/* Slate 独特 Logo 样式 - 现代几何方块 */
body.theme-slate .logo-trophy {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #64748B, #334155);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 30px rgba(100, 116, 139, 0.3);
    position: relative;
    animation: boxShift 4s ease-in-out infinite;
}

body.theme-slate .logo-trophy::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 25px;
    height: 25px;
    border: 3px solid rgba(56, 189, 248, 0.4);
    animation: cornerRotate 6s linear infinite;
}

body.theme-slate .logo-trophy::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 25px;
    height: 25px;
    border: 3px solid rgba(56, 189, 248, 0.4);
    animation: cornerRotate 6s linear infinite reverse;
}

@keyframes boxShift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes cornerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.theme-slate .logo-text-main {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #1E293B;
}

body.theme-slate .logo-text-sub {
    font-size: 0.65rem;
    color: #38BDF8;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Slate 独特 Hero 样式 - 现代网格 */
body.theme-slate .hero-section {
    position: relative;
    padding: 70px 45px;
    margin-bottom: 50px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    overflow: hidden;
    background:
        linear-gradient(135deg, #64748B 0%, #334155 100%);
    box-shadow: 0 12px 40px rgba(100, 116, 139, 0.25);
}

body.theme-slate .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.theme-slate .hero-section::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    pointer-events: none;
}

body.theme-slate .hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

body.theme-slate .hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 2px solid rgba(56, 189, 248, 0.5);
    color: white;
    padding: 10px 24px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

body.theme-slate .hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -1px;
}

body.theme-slate .hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    max-width: 620px;
    font-weight: 500;
}

body.theme-slate .team-tag {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    body.theme-slate .news-card {
        border-width: 1px;
    }

    body.theme-slate .hero-section {
        clip-path: none;
        border-radius: 8px;
        padding: 50px 25px;
    }

    body.theme-slate .hero-title {
        font-size: 2rem;
    }

    body.theme-slate .logo-trophy {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }

    body.theme-slate .logo-trophy::before,
    body.theme-slate .logo-trophy::after {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   SLATE THEME - UNIQUE CONTENT LAYOUT
   ======================================== */

/* Slate: 简约左对齐布局 - Logo紧凑，Hero隐藏subtitle */
body.theme-slate .logo {
    gap: 8px;
}

body.theme-slate .logo-text-main {
    font-size: 1.5rem;
}

body.theme-slate .logo-text-sub {
    font-size: 0.55rem;
}

body.theme-slate .hero-subtitle {
    display: none;
}

body.theme-slate .hero-badge {
    font-size: 0.7rem;
    padding: 8px 20px;
    margin-bottom: 20px;
}

body.theme-slate .hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
