/*
 * Organic Naturalism Design System
 * 食品公司 - 有机自然主义设计风格
 * 创造温暖、自然、有机的视觉体验
 */

/* ====================
   字体引入
   ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ====================
   设计变量
   ==================== */
:root {
    /* 字体 */
    --font-display: 'Playfair Display', Georgia, 'Songti SC', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', monospace;

    /* 色彩系统 - 温暖大地色 */
    --color-cream: #F9F6F0;
    --color-sand: #EBE5CE;
    --color-warm-white: #FCFBF7;
    --color-taupe: #9C8B7A;
    --color-terracotta: #C78F72;
    --color-sage: #8BA892;
    --color-forest: #4A6B5F;
    --color-bark: #5C4A42;
    --color-espresso: #3E332E;
    --color-sunrise: #D4AF37;
    --color-honey: #E8B868;

    /* 渐变 */
    --gradient-warm: linear-gradient(135deg, var(--color-cream) 0%, var(--color-sand) 100%);
    --gradient-nature: linear-gradient(145deg, var(--color-sage) 0%, var(--color-forest) 100%);
    --gradient-sunset: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-honey) 100%);
    --gradient-dawn: linear-gradient(180deg, #F5F0E8 0%, #FBF9F5 100%);
    --gradient-organic: radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
                      radial-gradient(ellipse at 70% 80%, rgba(155, 189, 145, 0.12) 0%, transparent 50%);

    /* 阴影 */
    --shadow-soft: 0 8px 32px rgba(120, 100, 80, 0.1);
    --shadow-medium: 0 16px 48px rgba(120, 100, 80, 0.15);
    --shadow-strong: 0 24px 64px rgba(120, 100, 80, 0.2);
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.3);

    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* 过渡 */
    --ease-organic: cubic-bezier(0.45, 0.05, 0.35, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ====================
   基础重置
   ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-bark);
    background: var(--color-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 纸张纹理叠加 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(180, 160, 140, 0.03) 2px,
            rgba(180, 160, 140, 0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* ====================
   容器
   ==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.container-narrow {
    max-width: 960px;
}

.container-wide {
    max-width: 1440px;
}

/* ====================
   排版
   ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-espresso);
}

.display-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-sunset);
    border-radius: var(--radius-full);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--color-taupe);
    font-weight: 400;
    margin-top: var(--space-md);
}

/* ====================
   导航栏
   ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease-organic);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 252, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(120, 100, 80, 0.1);
    padding: 1rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-espresso);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s var(--ease-organic);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    color: var(--color-terracotta);
    font-size: 2rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-bark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-sunset);
    transition: all 0.3s var(--ease-organic);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-link:hover {
    color: var(--color-terracotta);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-terracotta);
}

/* 汉堡菜单 */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggler span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-espresso);
    margin: 6px 0;
    transition: all 0.3s var(--ease-organic);
    border-radius: 2px;
}

/* ====================
   Hero 区域
   ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
    background: var(--gradient-organic);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(199, 144, 120, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* 流动的波浪装饰 */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23f5f2ed' opacity='.25'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%23f5f2ed' opacity='.5'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23f5f2ed'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave 12s linear infinite;
}

.wave:nth-child(2) {
    bottom: 5px;
    opacity: 0.5;
    animation: wave 8s linear reverse infinite;
}

.wave:nth-child(3) {
    bottom: 10px;
    opacity: 0.3;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s var(--ease-organic) 0.2s both;
}

.hero-description {
    font-size: 1.35rem;
    color: var(--color-taupe);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    animation: fadeInUp 1s var(--ease-organic) 0.4s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    animation: fadeInUp 1s var(--ease-organic) 0.6s both;
}

/* ====================
   按钮系统
   ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.4s var(--ease-organic);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-sunset);
    color: white;
    box-shadow: 0 8px 24px rgba(199, 144, 120, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(199, 144, 120, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--color-espresso);
    border: 2px solid var(--color-taupe);
}

.btn-secondary:hover {
    background: var(--color-warm-white);
    border-color: var(--color-terracotta);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.btn-organic {
    background: var(--gradient-nature);
    color: white;
    box-shadow: 0 8px 24px rgba(95, 130, 110, 0.3);
}

.btn-organic:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(95, 130, 110, 0.4);
}

/* ====================
   卡片系统 - 精致小巧版
   ==================== */
.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(120, 100, 80, 0.08);
    transition: all 0.35s var(--ease-organic);
    position: relative;
    border: 1px solid rgba(199, 144, 120, 0.08);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sunset);
    transform: scaleX(0);
    transition: transform 0.35s var(--ease-organic);
    z-index: 10;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(199, 144, 120, 0.15);
    border-color: rgba(199, 144, 120, 0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-image {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f2ed 0%, #ebe5ce 100%);
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(62, 51, 46, 0.03) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover .card-image::after {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-organic);
}

.card:hover .card-image img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gradient-sunset);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(199, 144, 120, 0.35);
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}

.card-body {
    padding: 1.1rem 1.15rem 1.2rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-espresso);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.card-text {
    color: var(--color-taupe);
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
}

.card-footer .btn {
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
}

/* ====================
   区块样式
   ==================== */
section {
    padding: var(--space-2xl) 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--gradient-warm);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ====================
   Grid 系统
   ==================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .grid {
        gap: 1rem;
    }
}

/* ====================
   特色统计卡片
   ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    background: white;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease-organic);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-organic);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card > * {
    position: relative;
    z-index: 1;
}

.stat-icon {
    font-size: 3rem;
    color: var(--color-terracotta);
    margin-bottom: var(--space-md);
    display: block;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--color-taupe);
    font-weight: 600;
}

/* ====================
   新闻卡片变体 - 精致小巧版
   ==================== */
.news-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(120, 100, 80, 0.08);
    transition: all 0.35s var(--ease-organic);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(199, 144, 120, 0.08);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(199, 144, 120, 0.15);
    border-color: rgba(199, 144, 120, 0.15);
}

.news-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f2ed 0%, #ebe5ce 100%);
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(62, 51, 46, 0.03) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.news-card:hover .news-image::after {
    opacity: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-organic);
}

.news-card:hover .news-image img {
    transform: scale(1.06);
}

.news-date-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(199, 144, 120, 0.15);
}

.news-date-badge .day {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-terracotta);
    line-height: 1;
}

.news-date-badge .month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-taupe);
    text-transform: uppercase;
    margin-top: 0.2rem;
    letter-spacing: 0.05em;
}

.news-content {
    padding: 1.1rem 1.15rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--color-espresso);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.news-excerpt {
    color: var(--color-taupe);
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.82rem;
}

.news-link {
    color: var(--color-terracotta);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.82rem;
}

.news-link:hover {
    color: var(--color-honey);
    gap: 0.6rem;
}

/* ====================
   联系信息卡片
   ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.contact-card {
    background: white;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease-organic);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--gradient-warm);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-terracotta);
    box-shadow: 0 8px 24px rgba(199, 144, 120, 0.2);
}

.contact-card h5 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.contact-card p {
    color: var(--color-taupe);
}

/* ====================
   侧边栏样式 - 精致小巧版
   ==================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: var(--space-lg);
}

.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(120, 100, 80, 0.08);
    border: 1px solid rgba(199, 144, 120, 0.08);
}

.sidebar-widget-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-sand);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget-title i {
    color: var(--color-terracotta);
    font-size: 1.2rem;
}

/* 侧边栏文章列表 */
.sidebar-posts {
    list-style: none;
}

.sidebar-post-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-item:first-child {
    padding-top: 0;
}

.sidebar-post-item:hover {
    transform: translateX(5px);
}

.sidebar-post-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f2ed 0%, #ebe5ce 100%);
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post-item:hover .sidebar-post-image img {
    transform: scale(1.05);
}

.sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-bark);
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sidebar-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.sidebar-post-title a:hover {
    color: var(--color-terracotta);
}

.sidebar-post-meta {
    font-size: 0.78rem;
    color: var(--color-taupe);
}

.sidebar-post-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 侧边栏标签云 */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: var(--color-sand);
    color: var(--color-bark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-tag:hover {
    background: var(--gradient-sunset);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 144, 120, 0.3);
}

/* 文章内容主区域优化 */
.article-main {
    background: white;
    border-radius: 14px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 20px rgba(120, 100, 80, 0.08);
    border: 1px solid rgba(199, 144, 120, 0.08);
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(199, 144, 120, 0.06);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
}

.article-breadcrumb a {
    color: var(--color-taupe);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--color-terracotta);
}

.article-breadcrumb i {
    color: var(--color-terracotta);
    font-size: 0.85rem;
}

.article-detail-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-sand);
}

.article-detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-espresso);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-taupe);
}

.article-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-detail-meta i {
    color: var(--color-terracotta);
}

.article-detail-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(120, 100, 80, 0.1);
}

.article-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-detail-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-bark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 段落样式 */
.article-detail-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2em;
    line-height: 2;
    letter-spacing: 0.02em;
}

/* 第一个段落不缩进 */
.article-detail-content p:first-of-type {
    text-indent: 0;
}

/* 标题样式 */
.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4,
.article-detail-content h5,
.article-detail-content h6 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-espresso);
    line-height: 1.4;
}

.article-detail-content h1 {
    font-size: 2rem;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 2px solid var(--color-sand);
}

.article-detail-content h2 {
    font-size: 1.6rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--color-terracotta);
}

.article-detail-content h3 {
    font-size: 1.4rem;
    color: var(--color-bark);
}

.article-detail-content h4 {
    font-size: 1.2rem;
    color: var(--color-taupe);
}

/* 图片样式 */
.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: block;
}

/* 链接样式 */
.article-detail-content a {
    color: var(--color-terracotta);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-terracotta);
    transition: all 0.3s ease;
}

.article-detail-content a:hover {
    color: var(--color-honey);
    border-bottom-color: var(--color-honey);
}

/* 列表样式 */
.article-detail-content ul,
.article-detail-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-detail-content li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.article-detail-content ul li {
    list-style-type: disc;
    list-style-position: outside;
}

.article-detail-content ol li {
    list-style-type: decimal;
    list-style-position: outside;
}

/* 引用块样式 */
.article-detail-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--color-sand);
    border-left: 4px solid var(--color-terracotta);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-bark);
}

/* 表格样式 */
.article-detail-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-detail-content th,
.article-detail-content td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-sand);
}

.article-detail-content th {
    background: var(--gradient-warm);
    font-weight: 600;
    color: var(--color-espresso);
}

.article-detail-content tr:hover {
    background: rgba(199, 143, 114, 0.05);
}

/* 代码块样式 */
.article-detail-content code {
    background: var(--color-sand);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--color-bark);
}

.article-detail-content pre {
    background: var(--color-espresso);
    color: var(--color-sand);
    padding: 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-detail-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 分隔线 */
.article-detail-content hr {
    border: none;
    height: 2px;
    background: var(--gradient-sunset);
    margin: 2rem 0;
    border-radius: 2px;
}

/* 加粗文字 */
.article-detail-content strong,
.article-detail-content b {
    color: var(--color-espresso);
    font-weight: 600;
}

/* 斜体文字 */
.article-detail-content em,
.article-detail-content i {
    font-style: italic;
    color: var(--color-taupe);
}

/* 响应式 - 侧边栏 */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sidebar {
        position: static;
    }

    .article-main {
        padding: 1.5rem 1.75rem;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 1.25rem 1.5rem;
    }

    .article-detail-title {
        font-size: 1.4rem;
    }

    .article-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sidebar-widget {
        padding: 1.15rem;
    }

    /* 移动端文章内容优化 */
    .article-detail-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-detail-content p {
        margin-bottom: 1.2rem;
        text-indent: 1.5em;
    }

    .article-detail-content h1 {
        font-size: 1.6rem;
    }

    .article-detail-content h2 {
        font-size: 1.4rem;
    }

    .article-detail-content h3 {
        font-size: 1.2rem;
    }

    .article-detail-content ul,
    .article-detail-content ol {
        padding-left: 1.5rem;
    }

    .article-detail-content table {
        font-size: 0.9rem;
    }

    .article-detail-content th,
    .article-detail-content td {
        padding: 0.6rem 0.8rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .article-detail-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .article-detail-content p {
        text-indent: 1em;
    }

    .article-detail-content h1 {
        font-size: 1.4rem;
    }

    .article-detail-content h2 {
        font-size: 1.2rem;
    }

    .article-detail-content h3 {
        font-size: 1.1rem;
    }

    .article-detail-content img {
        margin: 1rem 0;
        border-radius: 8px;
    }

    .article-detail-content blockquote {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .article-detail-content pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* ====================
   页脚
   ==================== */
.footer {
    background: var(--color-espresso);
    color: var(--color-sand);
    padding: var(--space-2xl) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-sunset);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: var(--color-sunrise);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-sunrise);
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
    color: rgba(255,255,255,0.7);
}

.footer-contact-item i {
    color: var(--color-sunrise);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}

.friend-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.friend-link-item:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-sunrise);
    color: var(--color-sunrise);
    transform: translateY(-2px);
}

.friend-link-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ====================
   动画
   ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 滚动触发动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-organic);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟类 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ====================
   响应式设计
   ==================== */
@media (max-width: 1024px) {
    .grid-4,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    /* 导航 */
    .navbar-toggler {
        display: block;
        z-index: 1001;
    }

    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 1rem;
        box-shadow: -8px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s var(--ease-organic);
    }

    .navbar-nav.active {
        right: 0;
    }

    /* Hero */
    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    /* Grid */
    .grid-2,
    .grid-3,
    .grid-4,
    .stats-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Section */
    section {
        padding: var(--space-xl) 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }

    .card-image,
    .news-image {
        height: 150px;
    }

    .card-body,
    .news-content {
        padding: 1rem 1rem 1.1rem;
    }

    .card-title,
    .news-title {
        font-size: 1rem;
    }

    .card-text,
    .news-excerpt {
        font-size: 0.82rem;
    }
}

/* ====================
   工具类
   ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.py-5 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
