/* Lime Theme */
:root {
    --primary: #CDDC39;
    --primary-dark: #AFB42B;
    --primary-light: #F0F4C3;
    --secondary: #827717;
    --secondary-dark: #575c10;
    --secondary-light: #9E9D24;
    --accent: #FF5722;
    --gold: #FF9800;
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: rgba(205, 220, 57, 0.15);
    --shadow-lg: rgba(205, 220, 57, 0.25);
}

* {
    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(255,87,34,0.4);
}

.logo-text {
    color: #1a1a1a;
}

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

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

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

nav a {
    color: rgba(26,26,26,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: white;
    background: var(--accent);
}

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

.style-btn {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(26,26,26,0.3);
    border-radius: 8px;
    background: rgba(0,0,0,0.1);
    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(255,87,34,0.05) 60px,
            rgba(255,87,34,0.05) 120px
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #1a1a1a;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    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(26,26,26,0.8);
    margin-bottom: 30px;
    max-width: 600px;
}

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

.team-tag {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(26,26,26,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(--secondary);
}

/* 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(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.pagination-current {
    background: var(--primary);
    color: #1a1a1a;
    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: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   LIME THEME UNIQUE LAYOUT
   ======================================== */

/* Lime: 鲜艳活力对比布局 */
body.theme-lime .news-grid {
    display: grid;
    gap: 32px;
    padding: 25px 0;
}

body.theme-lime .news-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(205, 220, 57, 0.2);
    transition: all 0.3s ease;
    background: white;
    border: 3px solid #CDDC39;
}

body.theme-lime .news-card:hover {
    box-shadow: 0 12px 45px rgba(205, 220, 57, 0.4);
    transform: translateY(-10px) rotate(-1deg);
    border-color: #AFB42B;
}

body.theme-lime .news-card .news-image-wrapper {
    border-radius: 0;
    overflow: hidden;
    border-bottom: 5px solid #827717;
}

body.theme-lime .news-card .news-info {
    padding: 20px 22px 22px;
    background: linear-gradient(to bottom, #ffffff 0%, #FAFAFA 100%);
}

body.theme-lime .news-card .news-title {
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 1rem;
}

body.theme-lime .news-card .news-date-badge {
    background: #827717;
    color: #CDDC39;
    border-radius: 6px;
    padding: 6px 16px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.7rem;
}

/* Lime 独特 Logo 样式 - 活力闪电 */
body.theme-lime .logo-trophy {
    width: 75px;
    height: 65px;
    background: linear-gradient(135deg, #CDDC39, #AFB42B);
    clip-path: polygon(50% 0%, 60% 35%, 75% 35%, 85% 50%, 75% 65%, 60% 65%, 50% 100%, 40% 65%, 25% 65%, 15% 50%, 25% 35%, 40% 35%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    box-shadow: 0 8px 30px rgba(205, 220, 57, 0.5);
    position: relative;
    animation: boltPulse 2s ease-in-out infinite;
}

body.theme-lime .logo-trophy::before {
    content: '⚡';
    position: absolute;
    top: -8px;
    right: -5px;
    font-size: 1rem;
    color: #827717;
    animation: boltFlash 1.5s ease-in-out infinite;
}

body.theme-lime .logo-trophy::after {
    content: '';
    position: absolute;
    width: 85px;
    height: 75px;
    border: 4px dashed rgba(130, 119, 23, 0.3);
    clip-path: polygon(50% 0%, 60% 35%, 75% 35%, 85% 50%, 75% 65%, 60% 65%, 50% 100%, 40% 65%, 25% 65%, 15% 50%, 25% 35%, 40% 35%);
    animation: borderRotate 10s linear infinite;
}

@keyframes boltPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(205, 220, 57, 0.5); }
    50% { box-shadow: 0 12px 40px rgba(205, 220, 57, 0.7); }
}

@keyframes boltFlash {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

body.theme-lime .logo-text-main {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #33691E;
    text-shadow: 2px 2px 0px #CDDC39;
}

body.theme-lime .logo-text-sub {
    font-size: 0.7rem;
    color: #827717;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Lime 独特 Hero 样式 - 活力雷暴 */
body.theme-lime .hero-section {
    position: relative;
    padding: 75px 45px;
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: repeating-linear-gradient(
        -45deg,
        #CDDC39,
        #CDDC39 20px,
        #F0F4C3 20px,
        #F0F4C3 40px
    );
    box-shadow: 0 12px 40px rgba(130, 119, 23, 0.3);
}

body.theme-lime .hero-section::before {
    content: '⚡';
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 70px;
    opacity: 0.2;
    animation: boltMove 4s ease-in-out infinite;
}

body.theme-lime .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.1) 30px,
        rgba(255,255,255,0.1) 60px
    );
}

@keyframes boltMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-15px); }
    50% { transform: translateX(-5px) translateY(-5px); }
    75% { transform: translateX(5px) translateY(-20px); }
}

body.theme-lime .hero-content {
    position: relative;
    z-index: 2;
    color: #1a1a1a;
}

body.theme-lime .hero-badge {
    display: inline-block;
    background: #1a1a1a;
    color: #CDDC39;
    padding: 10px 25px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

body.theme-lime .hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-shadow: 3px 3px 0px rgba(205, 220, 57, 0.5);
}

body.theme-lime .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(26,26,26,0.8);
    margin-bottom: 35px;
    max-width: 620px;
    font-weight: 700;
}

body.theme-lime .team-tag {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 900;
    border: 3px solid #827717;
    color: #33691E;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body.theme-lime .site-header {
    background: repeating-linear-gradient(
        45deg,
        #CDDC39,
        #CDDC39 10px,
        #AFB42B 10px,
        #AFB42B 20px
    );
}

body.theme-lime .hero-section {
    border-radius: 12px;
    background: repeating-linear-gradient(
        -45deg,
        #CDDC39,
        #CDDC39 20px,
        #F0F4C3 20px,
        #F0F4C3 40px
    );
}

@media (max-width: 768px) {
    body.theme-lime .news-card:hover {
        transform: translateY(-6px);
    }

    body.theme-lime .site-header {
        background: linear-gradient(135deg, #CDDC39 0%, #AFB42B 100%);
    }

    body.theme-lime .hero-section {
        background: linear-gradient(135deg, #CDDC39 0%, #F0F4C3 100%);
        padding: 50px 25px;
    }

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

    body.theme-lime .logo-trophy {
        width: 60px;
        height: 52px;
        font-size: 1.7rem;
    }
}

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

/* Lime: 大号emoji突出布局 - Logo emoji超大，Hero隐藏badge，teams移到顶部 */
body.theme-lime .logo-trophy {
    width: 90px;
    height: 75px;
    font-size: 2.8rem;
}

body.theme-lime .logo-text-main {
    font-size: 1.8rem;
}

body.theme-lime .logo-text-sub {
    font-size: 0.65rem;
}

body.theme-lime .hero-badge {
    display: none;
}

body.theme-lime .hero-teams {
    order: -1;
    margin-bottom: 25px;
    justify-content: center;
}

body.theme-lime .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    body.theme-lime .logo-trophy {
        width: 60px;
        height: 52px;
        font-size: 1.7rem;
    }
}
