/* Amber Theme */
:root {
    --primary: #FFC107;
    --primary-dark: #FFA000;
    --primary-light: #FFECB3;
    --secondary: #FF6F00;
    --secondary-dark: #c43e00;
    --secondary-light: #FF8F00;
    --accent: #D84315;
    --gold: #FFB300;
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: rgba(255, 193, 7, 0.15);
    --shadow-lg: rgba(255, 193, 7, 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(--secondary) 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), #BF360C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(216,67,21,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(--accent);
    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(216,67,21,0.05) 60px,
            rgba(216,67,21,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;
}

/* ========================================
   AMBER THEME UNIQUE LAYOUT
   ======================================== */

/* Amber: 温暖复古阴影布局 */
body.theme-amber .news-grid {
    display: grid;
    gap: 30px;
    padding: 20px 0;
}

body.theme-amber .news-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 193, 7, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #FFF8E1 0%, #ffffff 100%);
}

body.theme-amber .news-card:hover {
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.4);
    transform: translateY(-8px) scale(1.03);
}

body.theme-amber .news-card .news-image-wrapper {
    border-radius: 14px;
    margin: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.2);
}

body.theme-amber .news-card .news-info {
    padding: 10px 20px 20px;
}

body.theme-amber .news-card .news-title {
    font-weight: 800;
    color: #BF360C;
    font-size: 1.15rem;
}

body.theme-amber .news-card .news-date-badge {
    background: linear-gradient(135deg, #FF6F00, #D84315);
    color: white;
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 700;
}

/* Amber 独特 Logo 样式 - 温暖火焰 */
body.theme-amber .logo-trophy {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #FFC107, #FF6F00);
    border-radius: 50% 50% 20% 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 0 5px rgba(255, 111, 0, 0.3), 0 10px 35px rgba(255, 111, 0, 0.5);
    position: relative;
    animation: flameDance 3s ease-in-out infinite;
}

body.theme-amber .logo-trophy::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(255, 111, 0, 0.6) 0%, transparent 70%);
    animation: flameFlicker 1.5s ease-in-out infinite alternate;
}

body.theme-amber .logo-trophy::after {
    content: '🔥';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.9rem;
    animation: heatWave 2s ease-in-out infinite;
}

@keyframes flameDance {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-2deg); }
    50% { transform: scale(1) rotate(2deg); }
    75% { transform: scale(1.03) rotate(-1deg); }
}

@keyframes flameFlicker {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

@keyframes heatWave {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.1); }
}

body.theme-amber .logo-text-main {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #BF360C;
    text-shadow: 1px 1px 2px rgba(255, 193, 7, 0.3);
}

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

/* Amber 独特 Hero 样式 - 温暖夕阳 */
body.theme-amber .hero-section {
    position: relative;
    padding: 72px 45px;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(255, 111, 0, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #FFC107 0%, #FF8F00 40%, #FF6F00 100%);
    box-shadow: 0 15px 50px rgba(255, 111, 0, 0.35), inset 0 0 60px rgba(0,0,0,0.1);
}

body.theme-amber .hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(191, 54, 12, 0.3) 0%, transparent 100%);
}

body.theme-amber .hero-section::after {
    content: '🌅';
    position: absolute;
    top: 25px;
    left: 35px;
    font-size: 65px;
    opacity: 0.4;
    animation: sunsetFloat 8s ease-in-out infinite;
}

@keyframes sunsetFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

body.theme-amber .hero-badge {
    display: inline-block;
    background: rgba(191, 54, 12, 0.8);
    color: #FFC107;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    text-transform: uppercase;
}

body.theme-amber .hero-title {
    font-size: 3.3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(191, 54, 12, 0.4);
}

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

body.theme-amber .team-tag {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 9px 19px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.25);
}

body.theme-amber .site-header {
    border-radius: 0 0 25px 25px;
    box-shadow: 0 6px 30px rgba(255, 111, 0, 0.3);
}

body.theme-amber .hero-section {
    border-radius: 20px;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    body.theme-amber .news-card {
        border-radius: 12px;
    }

    body.theme-amber .news-card .news-image-wrapper {
        border-radius: 10px;
        margin: 8px;
    }

    body.theme-amber .hero-section {
        padding: 50px 25px;
    }

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

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

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

/* Amber: 倒置布局 - Logo text-sub在上方，隐藏badge和teams */
body.theme-amber .logo-text-sub {
    order: -1;
    margin-bottom: 5px;
}

body.theme-amber .logo-text-main {
    margin-bottom: 0;
}

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

body.theme-amber .hero-teams {
    display: none;
}

body.theme-amber .hero-title {
    text-align: left;
}

body.theme-amber .hero-subtitle {
    text-align: left;
}
