/* Android Authority Template Styles */
/* 基于原网站样式重新构建,符合模板系统规范 */

/* ===== CSS Variables (Enhanced Modern Color System) ===== */
:root {
    /* ===== Base Colors ===== */
    --cw: 255,255,255;
    --cb: 0,0,0;
    --b: 0,0,0;
    --w: 255,255,255;

    /* ===== Gray Scale (Enhanced) ===== */
    --g-5: 21,21,21;
    --g-7: 35,35,35;
    --g-10: 51,51,51;
    --g-20: 85,85,85;
    --g-25: 111,111,111;
    --g-30: 153,153,153;
    --g-40: 160,160,160;
    --g-50: 178,178,178;
    --g-60: 204,204,204;
    --g-65: 220,220,220;
    --g-70: 231,231,231;
    --g-85: 241,241,241;
    --g-90: 244,244,244;

    /* Contrast Grays */
    --cg-5: 21,21,21;
    --cg-7: 35,35,35;
    --cg-10: 51,51,51;
    --cg-20: 85,85,85;
    --cg-25: 111,111,111;
    --cg-50: 178,178,178;
    --cg-60: 204,204,204;
    --cg-85: 241,241,241;
    --cg-90: 244,244,244;

    /* ===== Modern Android Color Palette ===== */

    /* Primary: Deep Teal - Professional & Trustworthy */
    --primary-50: 230,247,246;
    --primary-100: 204,239,237;
    --primary-200: 153,223,219;
    --primary-300: 102,207,201;
    --primary-400: 51,191,186;
    --primary-500: 15,118,111;  /* Deep Teal #0F766F */
    --primary-600: 12,94,89;
    --primary-700: 9,71,67;
    --primary-800: 6,47,44;
    --primary-900: 3,24,22;

    /* Accent: Neon Cyan - Futuristic & Energetic */
    --accent-50: 230,250,255;
    --accent-100: 204,245,255;
    --accent-200: 153,235,255;
    --accent-300: 102,224,255;
    --accent-400: 51,214,255;
    --accent-500: 0,212,159;  /* Neon Cyan #00D4FF -> adjusted to #00D49F */
    --accent-600: 0,169,127;
    --accent-700: 0,127,95;
    --accent-800: 0,84,63;
    --accent-900: 0,42,32;

    /* Action: Electric Blue - Vibrant & Interactive */
    --action-50: 230,240,255;
    --action-100: 204,225,255;
    --action-200: 153,195,255;
    --action-300: 102,165,255;
    --action-400: 51,135,255;
    --action-500: 0,102,255;  /* Electric Blue #0066FF */
    --action-600: 0,82,204;
    --action-700: 0,61,153;
    --action-800: 0,41,102;
    --action-900: 0,20,51;

    /* Alert: Vibrant Orange - Hot & Trending */
    --alert-50: 255,243,235;
    --alert-100: 255,231,215;
    --alert-200: 255,207,175;
    --alert-300: 255,183,135;
    --alert-400: 255,159,95;
    --alert-500: 255,107,53;  /* Alert Orange #FF6B35 */
    --alert-600: 204,86,42;
    --alert-700: 153,64,32;
    --alert-800: 102,43,21;
    --alert-900: 51,21,11;

    /* Warm Background: Cream - Warmth & Readability */
    --warm-50: 255,253,250;
    --warm-100: 255,250,245;
    --warm-200: 255,248,240;  /* Warm Cream #FFF8F0 */
    --warm-300: 255,245,235;
    --warm-400: 255,242,230;

    /* Dark Text: Carbon - High Contrast */
    --carbon-50: 250,250,250;
    --carbon-100: 230,230,230;
    --carbon-200: 191,191,191;
    --carbon-300: 153,153,153;
    --carbon-400: 114,114,114;
    --carbon-500: 26,26,26;  /* Carbon #1A1A1A */
    --carbon-600: 21,21,21;
    --carbon-700: 17,17,17;
    --carbon-800: 13,13,13;
    --carbon-900: 9,9,9;

    /* ===== Legacy Colors (Backward Compatibility) ===== */
    --p-20: 153,223,219;
    --p-30: 102,207,201;
    --p-40: 51,191,186;
    --p-50: 15,118,111;
    --p-60: 12,94,89;
    --p-70: 0,169,127;

    --r-5: 255,107,53;
    --r-10: 255,159,95;
    --r-50: 255,183,135;

    --b-10: 0,102,255;
    --b-22: 123,97,255;

    --cb-btn-bg-primary: 0,102,255;
    --cb-btn-bg-secondary: 0,82,204;

    /* ===== Gradient System ===== */
    --gradient-primary: linear-gradient(135deg, rgb(var(--primary-500)), rgb(var(--accent-600)));
    --gradient-accent: linear-gradient(135deg, rgb(var(--accent-500)), rgb(var(--action-500)));
    --gradient-hero: linear-gradient(180deg, rgb(var(--warm-200)) 0%, rgb(var(--w)) 100%);
    --gradient-card: linear-gradient(135deg, rgba(var(--accent-500), 0.05), rgba(var(--primary-500), 0.05));
    --gradient-button: linear-gradient(135deg, rgb(var(--action-500)), rgb(var(--action-600)));

    /* ===== Shadows & Depth ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 8px 20px rgba(var(--accent-500), 0.3);
    --shadow-card: 0 4px 16px rgba(var(--primary-500), 0.12);

    /* ===== Typography ===== */
    --font-sans: 'app-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-narrow: 'app-narrow', sans-serif;

    /* ===== Layout ===== */
    --max-width: 110rem;
    --header-height: 60px;
    --wrapper-max-width: 82.5rem;

    /* ===== Transitions ===== */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-spring: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== Border Radius ===== */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* ===== Reset & Base (来自原始CSS) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: rgb(var(--carbon-500));
    background: var(--gradient-hero);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    display: inline-block;
    color: inherit;
    text-decoration: inherit;
    transition: all var(--transition-base);
}

a:hover {
    color: rgb(var(--primary-500));
}

/* Category Tags - Modern Badge Style */
.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(var(--primary-700));
    background: rgba(var(--primary-200), 0.3);
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
}

.category-tag:hover {
    background: rgba(var(--primary-300), 0.4);
    color: rgb(var(--primary-800));
    transform: translateY(-1px);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    background-color: rgb(var(--g-90));
}

picture {
    position: relative;
    border-radius: .125rem;
}

button {
    cursor: pointer;
}

/* ===== Container (来自原始CSS) ===== */
.container {
    max-width: var(--wrapper-max-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: .9375rem;
    padding-right: .9375rem;
}

/* ===== Header (Modern Enhanced) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(var(--w), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    background-image: linear-gradient(rgba(var(--w), 0.95), rgba(var(--w), 0.95)),
                      linear-gradient(90deg, rgb(var(--primary-500)), rgb(var(--accent-500)));
    background-origin: padding-box, border-box;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
}

.logo a:hover {
    transform: scale(1.02);
}

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: .95rem;
    padding: 8px 0;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width var(--transition-spring);
    border-radius: var(--radius-sm);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: rgb(var(--primary-600));
    transform: translateY(-1px);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: rgb(var(--b));
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: rgb(var(--b));
    left: 0;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* ===== 移动端导航展开样式 ===== */
.main-nav.active {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(var(--w));
    z-index: 999;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

.main-nav.active .nav-list {
    flex-direction: column;
    width: 100%;
    padding: 1.5rem;
    gap: 0;
}

.main-nav.active .nav-item {
    border-bottom: 1px solid rgb(var(--g-90));
}

.main-nav.active .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

body.menu-open {
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Featured Articles - Hero Section (Enhanced) ===== */
.featured-articles {
    padding: 48px 0;
    background: var(--gradient-hero);
    position: relative;
}

.featured-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(var(--primary-500), 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(var(--accent-500), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero Wrapper: 左右2列布局 */
.hero-wrapper {
    display: grid;
    gap: 24px;
    align-items: start;
}

/* 左侧：大图 + Featured Picks */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-main {
    width: 100%;
}

.hero-main-link {
    display: block;
    background: rgb(var(--w));
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-spring);
    position: relative;
}

.hero-main-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-spring);
}

.hero-main-link:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.hero-main-link:hover::before {
    transform: scaleX(1);
}

.hero-main-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.hero-main-link:hover .hero-main-image img {
    transform: scale(1.05);
}

.hero-main-content {
    padding: 24px;
}

.hero-main-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 12px 0 16px;
    color: rgb(var(--carbon-500));
    transition: all var(--transition-base);
}

.hero-main-title:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 右侧：小卡片列表 */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-latest-item {
    background: rgb(var(--w));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-spring);
    border: 1px solid rgba(var(--primary-300), 0.2);
}

.hero-latest-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(-4px);
    border-color: rgb(var(--accent-500));
}

.hero-latest-link {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-latest-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.hero-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-latest-content {
    padding: 12px;
}

.hero-latest-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 6px;
    color: rgb(var(--carbon-500));
    transition: all var(--transition-base);
}

.hero-latest-title:hover {
    color: rgb(var(--primary-600));
}

/* Featured Picks: 多卡片网格 */
.featured-picks {
    margin-top: 0;
}

.featured-grid-multi {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.featured-card-multi {
    background: rgb(var(--w));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-spring);
    border: 1px solid rgba(var(--primary-200), 0.2);
}

.featured-card-multi:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgb(var(--primary-500));
}

.featured-card-link {
    display: block;
}

.featured-card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.featured-card-multi:hover .featured-card-image img {
    transform: scale(1.05);
}

.featured-card-content {
    padding: 16px;
}

.featured-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 10px 0;
    color: rgb(var(--carbon-500));
    transition: all var(--transition-base);
}

.featured-card-title:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Top Stories - Ranked List ===== */
.top-stories {
    padding: 40px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: rgb(var(--carbon-500));
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

.trending-indicator {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgb(var(--w));
    margin-left: 12px;
    padding: 4px 12px;
    background: var(--gradient-accent);
    border-radius: var(--radius-xl);
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-accent);
    animation: pulse 2s infinite;
}

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

.stories-ranked-grid {
    display: grid;
    gap: 16px;
    counter-reset: ranked-counter;
}

.story-ranked-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgb(var(--w));
    border: 1px solid rgba(var(--primary-200), 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-spring);
    counter-increment: ranked-counter;
}

.story-ranked-card:hover {
    border-color: rgb(var(--primary-500));
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.story-ranked-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    font-family: var(--font-narrow);
    background: var(--gradient-card);
    padding: 12px 0;
    transition: all var(--transition-base);
    position: relative;
}

.story-ranked-number::before {
    content: counter(ranked-counter, decimal-leading-zero);
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-base);
}

.story-ranked-card:hover .story-ranked-number {
    background: rgba(var(--primary-200), 0.2);
}

.story-ranked-card:hover .story-ranked-number::before {
    transform: scale(1.15);
}

.story-ranked-card-link {
    display: flex;
    gap: 16px;
    padding: 12px 16px 12px 12px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.story-ranked-card-image {
    width: 100px;
    min-height: 72px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.story-ranked-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.story-ranked-card:hover .story-ranked-card-image img {
    transform: scale(1.05);
}

.story-ranked-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.story-ranked-card-body .category-tag {
    align-self: flex-start;
}

.story-ranked-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgb(var(--carbon-500));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all var(--transition-base);
}

.story-ranked-card-title:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-ranked-card-body .article-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8125rem;
}

/* ===== Article Meta (来自原始CSS) ===== */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .875rem;
    color: rgb(var(--g-20));
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.article-views {
    color: rgb(var(--g-50));
}

/* ===== Main Content (来自原始CSS) ===== */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    gap: 40px;
}

/* ===== Recent Articles (来自原始CSS) ===== */
.recent-articles {
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    gap: 30px;
}

.article-card {
    background: rgb(var(--w));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(var(--primary-200), 0.2);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-spring);
    position: relative;
}

.article-card:hover {
    border-color: rgb(var(--primary-500));
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* Featured Article (first card in grid) */
.articles-grid .article-card:first-child {
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
}

.articles-grid .article-card:first-child .article-image-link {
    height: 240px;
}

.articles-grid .article-card:first-child .article-title {
    font-size: 1.2rem;
}

.articles-grid .article-card:first-child::before {
    content: 'Featured';
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--gradient-primary);
    color: rgb(var(--cw));
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: var(--shadow-accent);
}

.article-image-link {
    display: block;
    height: 200px;
    overflow: hidden;
}

.article-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.article-card:hover .article-image-link img {
    transform: scale(1.05);
}

.article-body {
    padding: 20px;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .875rem;
    color: rgb(var(--g-20));
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-title a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Sidebar (来自原始CSS) ===== */
.sidebar {
    display: none;
}

.sidebar-section {
    background: rgb(var(--g-90));
    padding: 24px;
    border-radius: 8px;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 16px;
}

.sidebar-item a {
    display: flex;
    gap: 12px;
}

.sidebar-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-item h4 {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== Footer (Modern Enhanced) ===== */
.site-footer {
    background: rgb(var(--carbon-600));
    color: rgb(var(--cw));
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(var(--primary-500), 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(var(--accent-500), 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: rgb(var(--g-50));
    font-size: .95rem;
    line-height: 1.5;
    max-width: 28rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgb(var(--cw));
    letter-spacing: 0.3px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgb(var(--g-50));
    font-size: .9rem;
    transition: all var(--transition-base);
    display: inline-block;
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-spring);
    border-radius: var(--radius-sm);
}

.footer-section a:hover {
    color: rgb(var(--accent-400));
    padding-left: 4px;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgb(var(--g-20));
    text-align: center;
    color: rgb(var(--g-50));
    font-size: .875rem;
}

/* ===== Ad Slots (来自原始CSS) ===== */
.ad {
    text-align: center;
    min-height: 90px;
    margin: 30px 0;
}

.ad-page-top {
    padding: 20px 0;
    background: rgb(var(--g-90));
}

/* ===== 文章详情页样式 (来自原始CSS) ===== */
.article-detail {
    max-width: 100%;
}

.article-header {
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: .875rem;
    color: rgb(var(--g-50));
    margin-bottom: 1rem;
}

.breadcrumb a:hover {
    color: rgb(var(--p-70));
}

.breadcrumb span {
    margin: 0 .5rem;
}

.article-cover {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: auto;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgb(var(--b));
}

.article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    line-height: 1.25;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 .75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: .5rem;
}

.article-content a {
    color: rgb(var(--primary-500));
    text-decoration: underline;
    transition: all var(--transition-base);
    text-decoration-color: rgba(var(--primary-500), 0.4);
}

.article-content a:hover {
    color: rgb(var(--primary-700));
    text-decoration-color: rgb(var(--primary-500));
    background: rgba(var(--primary-100), 0.3);
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

.article-content img {
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    padding: 1.5rem 0 1.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgb(var(--carbon-400));
    background: var(--gradient-card);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* ===== 分类页样式 (来自原始CSS) ===== */
.category-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.category-count {
    color: rgb(var(--g-50));
    font-size: .875rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 2rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: rgb(var(--warm-200));
    color: rgb(var(--carbon-500));
    font-weight: 700;
    transition: all var(--transition-spring);
    border: 1px solid rgba(var(--primary-200), 0.3);
}

.pagination-link:hover,
.pagination-link.active {
    background: var(--gradient-primary);
    color: rgb(var(--cw));
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    border-color: transparent;
}

/* ===== Responsive Design (Enhanced) ===== */
@media (min-width: 40rem) {
    .main-nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    /* Hero Wrapper: 2列布局 */
    .hero-wrapper {
        grid-template-columns: 2fr 1fr;
    }

    .hero-main-image {
        height: 400px;
    }

    /* Featured Picks: 2列 */
    .featured-grid-multi {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stories-ranked-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-wrapper {
        grid-template-columns: 2fr 1fr;
    }

    .sidebar {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 64rem) {
    :root {
        --header-height: 3.75rem;
    }

    .hero-main-title {
        font-size: 1.875rem;
    }

    .hero-main-image {
        height: 450px;
    }

    /* Featured Picks: 3列 */
    .featured-grid-multi {
        grid-template-columns: repeat(3, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stories-ranked-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 80rem) {
    :root {
        --wrapper-max-width: 110rem;
    }
}

/* Mobile-First Optimizations */
@media (max-width: 40rem) {
    .featured-articles {
        padding: 32px 0;
    }

    .hero-main-title {
        font-size: 1.375rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .article-card:hover {
        transform: translateY(-4px);
    }

    .featured-card-multi:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .site-footer {
        padding: 48px 0 24px;
    }
}

/* ===== Utility Classes ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Focus States & Accessibility ===== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgb(var(--primary-500));
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid rgb(var(--primary-500));
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .site-header,
    .sidebar,
    .ad,
    .menu-toggle {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ===== Scrollbar Styles (Enhanced) ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(var(--primary-100), 0.1);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* ===== Static Pages (About, Contact, Privacy) - Enhanced ===== */
.static-page {
    background: rgb(var(--w));
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(var(--primary-200), 0.2);
    position: relative;
}

.static-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
    color: rgb(var(--carbon-500));
    line-height: 1.2;
    position: relative;
}

.page-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgb(var(--carbon-500));
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgb(var(--carbon-500));
    line-height: 1.3;
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(var(--carbon-500));
    line-height: 1.4;
}

.page-content p {
    margin-bottom: 1.25rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: rgb(var(--primary-500));
    text-decoration: underline;
    transition: all var(--transition-base);
    text-decoration-color: rgba(var(--primary-500), 0.4);
}

.page-content a:hover {
    color: rgb(var(--primary-700));
    text-decoration-color: rgb(var(--primary-500));
    background: rgba(var(--primary-100), 0.3);
    padding: 2px 4px;
    border-radius: var(--radius-sm);
}

.page-content blockquote {
    border-left: 4px solid transparent;
    border-image: var(--gradient-primary) 1;
    padding: 1rem 0 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgb(var(--carbon-400));
    background: var(--gradient-card);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* ===== 面包屑导航样式 ===== */
.breadcrumb {
    padding: 1rem 0;
    font-size: .875rem;
    color: rgb(var(--g-50));
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgb(var(--p-70));
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: rgb(var(--p-40));
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: rgb(var(--g-50));
}

/* ===== 静态页面主内容区域 ===== */
.main {
    padding: 2rem 0 3rem;
    background: rgb(var(--g-90));
    min-height: calc(100vh - 300px);
}

/* ===== 静态页面 Header & Footer 样式 ===== */
.header {
    background: rgb(var(--w));
    border-bottom: .0625rem solid rgb(var(--g-90));
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
}

.header .logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(var(--b));
    text-decoration: none;
    transition: color 0.2s;
}

.header .logo a:hover {
    color: rgb(var(--p-70));
}

.header .nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header .nav-item {
    color: rgb(var(--g-10));
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s;
    text-decoration: none;
}

.header .nav-item:hover,
.header .nav-item.active {
    color: rgb(var(--p-70));
}

.header .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(var(--p-70));
    transition: width 0.3s ease;
}

.header .nav-item:hover::after,
.header .nav-item.active::after {
    width: 100%;
}

.footer {
    background: rgb(var(--g-10));
    color: rgb(var(--cw));
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.875rem;
    color: rgb(var(--g-50));
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: rgb(var(--g-50));
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: rgb(var(--p-70));
}

/* ===== 静态页面响应式设计 ===== */
@media (max-width: 768px) {
    .static-page {
        padding: 1.5rem;
        margin: 0 1rem;
        border-radius: 0;
    }

    .page-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .page-content {
        font-size: 1rem;
    }

    .page-content h2 {
        font-size: 1.375rem;
    }

    .page-content h3 {
        font-size: 1.125rem;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}