/* Rose Theme */
:root {
    --primary: #E91E63;
    --primary-dark: #C2185B;
    --primary-light: #F06292;
    --secondary: #880E4F;
    --secondary-dark: #560027;
    --secondary-light: #AD1457;
    --accent: #FFD700;
    --gold: #FFC107;
    --dark: #1a1a1a;
    --darker: #0d0d0d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: rgba(233, 30, 99, 0.12);
    --shadow-lg: rgba(233, 30, 99, 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(255,215,0,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(--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(255,215,0,0.05) 60px,
            rgba(255,215,0,0.05) 120px
        );
}

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

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--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;
}

/* ========================================
   ROSE THEME UNIQUE LAYOUT
   ======================================== */

/* Rose: 浪漫柔焦花瓣布局 */
body.theme-rose .news-grid {
    display: grid;
    gap: 26px;
    padding: 18px 0;
}

body.theme-rose .news-card {
    border-radius: 50% 20% / 10% 40%;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(233, 30, 99, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #FFF0F5 0%, #ffffff 100%);
}

body.theme-rose .news-card:hover {
    border-radius: 45% 15% / 8% 35%;
    box-shadow: 0 15px 55px rgba(233, 30, 99, 0.3);
    transform: translateY(-10px) rotate(1deg);
}

body.theme-rose .news-card .news-image-wrapper {
    border-radius: 45% 15% / 8% 35%;
    margin: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.12);
}

body.theme-rose .news-card .news-info {
    padding: 15px 22px 22px;
}

body.theme-rose .news-card .news-title {
    font-weight: 700;
    color: #880E4F;
    font-style: italic;
    letter-spacing: 0.3px;
}

body.theme-rose .news-card .news-date-badge {
    background: linear-gradient(135deg, #E91E63, #C2185B);
    color: white;
    border-radius: 30px 15px 30px 15px;
    padding: 8px 16px;
    font-weight: 700;
}

/* Rose 独特 Logo 样式 - 玫瑰花朵 */
body.theme-rose .logo-trophy {
    width: 72px;
    height: 72px;
    background: radial-gradient(circle at 40% 40%, #F48FB1 0%, #E91E63 60%, #880E4F 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.2), 0 10px 30px rgba(233, 30, 99, 0.3);
    position: relative;
    animation: roseBloom 4s ease-in-out infinite;
}

body.theme-rose .logo-trophy::before {
    content: '🌹';
    position: absolute;
    top: -8px;
    left: -8px;
    font-size: 1.2rem;
    opacity: 0;
    animation: petalFall 3s ease-in-out infinite;
}

body.theme-rose .logo-trophy::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border: 2px solid rgba(233, 30, 99, 0.2);
    border-radius: 50%;
    animation: petalRing 3s ease-in-out infinite;
}

@keyframes roseBloom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes petalFall {
    0% { opacity: 0; transform: translateY(-10px) rotate(0deg); }
    20% { opacity: 0.6; transform: translateY(5px) rotate(45deg); }
    40% { opacity: 0.3; transform: translateY(15px) rotate(90deg); }
    60% { opacity: 0.6; transform: translateY(25px) rotate(135deg); }
    80% { opacity: 0.2; transform: translateY(35px) rotate(180deg); }
    100% { opacity: 0; transform: translateY(45px) rotate(225deg); }
}

@keyframes petalRing {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.15) rotate(180deg); opacity: 0.1; }
}

body.theme-rose .logo-text-main {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    font-style: italic;
    background: linear-gradient(135deg, #E91E63, #F48FB1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.theme-rose .logo-text-sub {
    font-size: 0.7rem;
    color: #F48FB1;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: italic;
}

/* Rose 独特 Hero 样式 - 浪漫花海 */
body.theme-rose .hero-section {
    position: relative;
    padding: 70px 45px;
    margin-bottom: 50px;
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(244, 143, 177, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(233, 30, 99, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 30%, #E91E63 60%, #C2185B 100%);
    box-shadow: 0 15px 50px rgba(233, 30, 99, 0.3);
}

body.theme-rose .hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.15) 0%, transparent 8%),
        radial-gradient(circle at 35% 65%, rgba(255,255,255,0.12) 0%, transparent 6%),
        radial-gradient(circle at 55% 20%, rgba(255,255,255,0.1) 0%, transparent 10%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 0%, transparent 8%);
    animation: petalDrift 20s linear infinite;
}

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

body.theme-rose .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: sparkleGlint 8s ease-in-out infinite;
}

@keyframes sparkleGlint {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

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

body.theme-rose .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-transform: uppercase;
}

body.theme-rose .hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    font-style: italic;
}

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

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

body.theme-rose .site-header {
    border-radius: 0 0 40px 40px;
    background: linear-gradient(135deg, #F48FB1 0%, #E91E63 50%, #C2185B 100%);
}

body.theme-rose .hero-section {
    border-radius: 30px;
    background: linear-gradient(135deg, #FCE4EC 0%, #E91E63 100%);
}

@media (max-width: 768px) {
    body.theme-rose .news-card,
    body.theme-rose .news-card:hover {
        border-radius: 20px;
    }

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

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

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

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

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

/* Rose: 浪漫花瓣布局 - Logo右对齐，Hero居中隐藏teams */
body.theme-rose .logo {
    margin-left: auto;
}

body.theme-rose .logo-text {
    text-align: right;
}

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

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

@media (max-width: 768px) {
    body.theme-rose .logo {
        margin-left: 0;
    }

    body.theme-rose .logo-text {
        text-align: left;
    }
}
