
/* :root {
    --primary-color: #FF7F6B;
    --primary-light: #FF9F8B;
    --primary-dark: #FF5F4B;
    --secondary-color: #6B7280;
    --accent-color: #FFC4BC;
    --background-light: #FEF6F3;
    --text-primary: #2C1810;
    --text-secondary: #64473F;
    --border-color: #FFE4E0;
    --hover-color: #FFF0ED;
    --gradient-start: #FF7F6B;
    --gradient-end: #FFDAD4;
    --neutral-soft: #F5E6E3;
    --neutral-warm: #FFE8E3;
} */

:root {
    /* Primary colors - Using a calming blue palette */
    --primary-color: #3B82F6;      /* Bright blue */
    --primary-light: #60A5FA;      /* Lighter blue */
    --primary-dark: #2563EB;       /* Darker blue */
    
    /* Secondary and accent colors */
    --secondary-color: #64748B;    /* Slate gray */
    --accent-color: #93C5FD;       /* Very light blue */
    
    /* Background and surface colors */
    --background-light: #F8FAFC;   /* Almost white with slight blue tint */
    
    /* Text colors */
    --text-primary: #1E293B;       /* Dark slate */
    --text-secondary: #475569;     /* Medium slate */
    
    /* UI element colors */
    --border-color: #E2E8F0;       /* Light gray with blue tint */
    --hover-color: #EFF6FF;        /* Very light blue for hover states */
    
    /* Gradient colors */
    --gradient-start: #3B82F6;     /* Same as primary */
    --gradient-end: #93C5FD;       /* Light blue */
    
    /* Neutral colors */
    --neutral-soft: #F1F5F9;       /* Soft gray-blue */
    --neutral-warm: #F8FAFC;       /* Slightly warmer gray */
}

:root2222 {
    --primary-color: #0EA5E9;      /* 海蓝色 Ocean blue */
    --primary-light: #38BDF8;      /* 浅海蓝 Light ocean blue */
    --primary-dark: #0284C7;       /* 深海蓝 Dark ocean blue */
    --secondary-color: #6B7280;    /* 中性灰 Neutral gray */
    --accent-color: #BAE6FD;       /* 淡蓝色 Pale blue */
    --background-light: #F0F9FF;   /* 极浅蓝背景 Very light blue background */
    --text-primary: #1F2937;       /* 深灰文本 Dark gray text */
    --text-secondary: #4B5563;     /* 中灰文本 Medium gray text */
    --border-color: #E0F2FE;       /* 浅蓝边框 Light blue border */
    --hover-color: #F0F9FF;        /* 悬停色 Hover color */
    --gradient-start: #0EA5E9;     /* 渐变起始 Gradient start */
    --gradient-end: #BAE6FD;       /* 渐变结束 Gradient end */
    --neutral-soft: #F0F9FF;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #F0F9FF;       /* 温暖中性色 Warm neutral */
}


/* 薄荷清新主题 - Mint Fresh Theme */
.theme-mint {
    --primary-color: #2DD4BF;      /* 薄荷绿 Mint green */
    --primary-light: #5EEAD4;      /* 浅薄荷 Light mint */
    --primary-dark: #14B8A6;       /* 深薄荷 Dark mint */
    --secondary-color: #64748B;    /* 暖灰色 Warm gray */
    --accent-color: #99F6E4;       /* 淡薄荷 Pale mint */
    --background-light: #F0FDFA;   /* 极淡薄荷背景 Very light mint background */
    --text-primary: #134E4A;       /* 深青灰文本 Dark teal text */
    --text-secondary: #115E59;     /* 青灰文本 Teal text */
    --border-color: #CCFBF1;       /* 浅薄荷边框 Light mint border */
    --hover-color: #F0FDFA;        /* 悬停色 Hover color */
    --gradient-start: #2DD4BF;     /* 渐变起始 Gradient start */
    --gradient-end: #99F6E4;       /* 渐变结束 Gradient end */
    --neutral-soft: #F0FDFA;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #F0FDFA;       /* 温暖中性色 Warm neutral */
}

/* 日落橙色主题 - Sunset Orange Theme */
.theme-sunset {
    --primary-color: #F97316;      /* 橙色 Orange */
    --primary-light: #FB923C;      /* 浅橙色 Light orange */
    --primary-dark: #EA580C;       /* 深橙色 Dark orange */
    --secondary-color: #64748B;    /* 暖灰色 Warm gray */
    --accent-color: #FED7AA;       /* 淡橙色 Pale orange */
    --background-light: #FFF7ED;   /* 极淡橙背景 Very light orange background */
    --text-primary: #431407;       /* 深棕文本 Dark brown text */
    --text-secondary: #9A3412;     /* 红棕文本 Red-brown text */
    --border-color: #FFEDD5;       /* 浅橙边框 Light orange border */
    --hover-color: #FFF7ED;        /* 悬停色 Hover color */
    --gradient-start: #F97316;     /* 渐变起始 Gradient start */
    --gradient-end: #FED7AA;       /* 渐变结束 Gradient end */
    --neutral-soft: #FFF7ED;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #FFF7ED;       /* 温暖中性色 Warm neutral */
}

/* 石墨灰主题 - Graphite Theme */
.theme-graphite {
    --primary-color: #4B5563;      /* 石墨灰 Graphite */
    --primary-light: #6B7280;      /* 浅灰色 Light gray */
    --primary-dark: #374151;       /* 深灰色 Dark gray */
    --secondary-color: #9CA3AF;    /* 中性灰 Neutral gray */
    --accent-color: #E5E7EB;       /* 淡灰色 Pale gray */
    --background-light: #F9FAFB;   /* 极淡灰背景 Very light gray background */
    --text-primary: #111827;       /* 深灰文本 Dark gray text */
    --text-secondary: #1F2937;     /* 中灰文本 Medium gray text */
    --border-color: #E5E7EB;       /* 浅灰边框 Light gray border */
    --hover-color: #F3F4F6;        /* 悬停色 Hover color */
    --gradient-start: #4B5563;     /* 渐变起始 Gradient start */
    --gradient-end: #E5E7EB;       /* 渐变结束 Gradient end */
    --neutral-soft: #F9FAFB;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #F9FAFB;       /* 温暖中性色 Warm neutral */
}

/* 莫兰迪色系主题 - Morandi Theme */
.theme-morandi {
    --primary-color: #939B97;      /* 莫兰迪绿灰 Morandi green-gray */
    --primary-light: #A8B0AC;      /* 浅莫兰迪 Light morandi */
    --primary-dark: #7C847F;       /* 深莫兰迪 Dark morandi */
    --secondary-color: #B4A8A1;    /* 莫兰迪褐 Morandi brown */
    --accent-color: #D7D4CF;       /* 莫兰迪灰 Morandi gray */
    --background-light: #F5F4F2;   /* 莫兰迪背景 Morandi background */
    --text-primary: #565B58;       /* 深莫兰迪文本 Dark morandi text */
    --text-secondary: #7D8481;     /* 中莫兰迪文本 Medium morandi text */
    --border-color: #E5E3E1;       /* 浅莫兰迪边框 Light morandi border */
    --hover-color: #F0EFED;        /* 悬停色 Hover color */
    --gradient-start: #939B97;     /* 渐变起始 Gradient start */
    --gradient-end: #D7D4CF;       /* 渐变结束 Gradient end */
    --neutral-soft: #F5F4F2;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #F5F4F2;       /* 温暖中性色 Warm neutral */
}

/* 青草绿主题 - Fresh Grass Theme */
.theme-grass {
    --primary-color: #22C55E;      /* 青草绿 Grass green */
    --primary-light: #4ADE80;      /* 浅草绿 Light grass */
    --primary-dark: #16A34A;       /* 深草绿 Dark grass */
    --secondary-color: #64748B;    /* 暖灰色 Warm gray */
    --accent-color: #BBF7D0;       /* 淡草绿 Pale grass */
    --background-light: #F0FDF4;   /* 极淡绿背景 Very light green background */
    --text-primary: #14532D;       /* 深绿文本 Dark green text */
    --text-secondary: #15803D;     /* 中绿文本 Medium green text */
    --border-color: #DCFCE7;       /* 浅绿边框 Light green border */
    --hover-color: #F0FDF4;        /* 悬停色 Hover color */
    --gradient-start: #22C55E;     /* 渐变起始 Gradient start */
    --gradient-end: #BBF7D0;       /* 渐变结束 Gradient end */
    --neutral-soft: #F0FDF4;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #F0FDF4;       /* 温暖中性色 Warm neutral */
}

/* 玫瑰金主题 - Rose Gold Theme */
.theme-rose-gold {
    --primary-color: #E11D48;      /* 玫瑰红 Rose red */
    --primary-light: #FB7185;      /* 浅玫瑰 Light rose */
    --primary-dark: #BE123C;       /* 深玫瑰 Dark rose */
    --secondary-color: #D4A276;    /* 金棕色 Golden brown */
    --accent-color: #FFE4E6;       /* 淡玫瑰 Pale rose */
    --background-light: #FFF1F2;   /* 极淡玫瑰背景 Very light rose background */
    --text-primary: #881337;       /* 深玫瑰文本 Dark rose text */
    --text-secondary: #9F1239;     /* 中玫瑰文本 Medium rose text */
    --border-color: #FFE4E6;       /* 浅玫瑰边框 Light rose border */
    --hover-color: #FFF1F2;        /* 悬停色 Hover color */
    --gradient-start: #E11D48;     /* 渐变起始 Gradient start */
    --gradient-end: #FFE4E6;       /* 渐变结束 Gradient end */
    --neutral-soft: #FFF1F2;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #FFF1F2;       /* 温暖中性色 Warm neutral */
}

/* 极简黑白主题 - Minimalist Theme */
.theme-minimal {
    --primary-color: #171717;      /* 纯黑 Pure black */
    --primary-light: #404040;      /* 浅黑 Light black */
    --primary-dark: #0A0A0A;       /* 深黑 Dark black */
    --secondary-color: #737373;    /* 中灰 Medium gray */
    --accent-color: #E5E5E5;       /* 淡灰 Pale gray */
    --background-light: #FAFAFA;   /* 极淡灰背景 Very light gray background */
    --text-primary: #171717;       /* 深灰文本 Dark gray text */
    --text-secondary: #404040;     /* 中灰文本 Medium gray text */
    --border-color: #E5E5E5;       /* 浅灰边框 Light gray border */
    --hover-color: #F5F5F5;        /* 悬停色 Hover color */
    --gradient-start: #171717;     /* 渐变起始 Gradient start */
    --gradient-end: #E5E5E5;       /* 渐变结束 Gradient end */
    --neutral-soft: #FAFAFA;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #FAFAFA;       /* 温暖中性色 Warm neutral */
}

.theme-purple {
    --primary-color: #8B5CF6;      /* 亮紫色 Bright purple */
    --primary-light: #A78BFA;      /* 浅紫色 Light purple */
    --primary-dark: #7C3AED;       /* 深紫色 Dark purple */
    --secondary-color: #6B7280;    /* 中性灰 Neutral gray */
    --accent-color: #DDD6FE;       /* 淡紫色 Pale purple */
    --background-light: #FAF5FF;   /* 极浅紫背景 Very light purple background */
    --text-primary: #1F2937;       /* 深灰文本 Dark gray text */
    --text-secondary: #4B5563;     /* 中灰文本 Medium gray text */
    --border-color: #E9D5FF;       /* 浅紫边框 Light purple border */
    --hover-color: #F5F3FF;        /* 悬停色 Hover color */
    --gradient-start: #8B5CF6;     /* 渐变起始 Gradient start */
    --gradient-end: #DDD6FE;       /* 渐变结束 Gradient end */
    --neutral-soft: #F5F3FF;       /* 柔和中性色 Soft neutral */
    --neutral-warm: #F5F3FF;       /* 温暖中性色 Warm neutral */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background-light);
    color: var(--text-primary);
}

.header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo a {
    color: inherit;  /* 继承原来的文字颜色 */
    text-decoration: none;  /* 移除下划线 */
    transition: color 0.3s ease;  /* 添加颜色过渡效果 */
}

.logo a:hover {
    color: var(--hover-color);  /* 鼠标悬停时变为主题色 */
}

.logo img{
    width: 120px;
}


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

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.search-container {
    background: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255, 127, 107, 0.1);
}

.search-button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.category-nav {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.05);
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    background: var(--neutral-warm);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.category-list a:hover {
    background: var(--background-light);
    color: var(--primary-color);
    transform: translateY(-1px);
    border: 1px solid var(--border-color);
}

.template-grid {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.template-image {
    width: 100%;
    height: 375px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.template-info {
    padding: 1.5rem;
}

.template-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.template-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.template-title a {
    color: inherit;  /* 继承原来的文字颜色 */
    text-decoration: none;  /* 移除下划线 */
    transition: color 0.3s ease;  /* 添加颜色过渡效果 */
}

.template-title a:hover {
    color: var(--primary-color);  /* 鼠标悬停时变为主题色 */
}

/* 图片链接样式 */
.template-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 可选：添加图片悬停效果 */
.template-image a:hover img {
    transform: scale(1.05);
}

.section-title {
    max-width: 1200px;
    margin: 3rem auto 1.5rem;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.more-link:hover {
    background: var(--hover-color);
    transform: translateX(5px);
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: white;
    transition: all 0.3s;
    position: relative;
    transform-origin: 1px;
}

/* 数据统计栏样式 */
.statistics-bar {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto 2rem;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    flex: 1;
    min-width: 140px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 107, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 特色功能区样式 */
.features-section {
    padding: 1rem 1rem;
    background: linear-gradient(to bottom, var(--background-light), white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 127, 107, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 热门标签样式 */
.tags-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: var(--primary-light);
    color: white;
    border-color: transparent;
}

/* 移动端适配补充 */
/* 新闻资讯区域样式 */
.news-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.news-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 127, 107, 0.12);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 1.5rem;
}

.news-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--hover-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: inherit;  /* 继承原来的文字颜色 */
    text-decoration: none;  /* 移除下划线 */
    transition: color 0.3s ease;  /* 添加颜色过渡效果 */
}

.news-title a:hover {
    color: var(--primary-color);  /* 鼠标悬停时变为主题色 */
}

.news-list-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-list-title a {
    color: inherit;  /* 继承原来的文字颜色 */
    text-decoration: none;  /* 移除下划线 */
    transition: color 0.3s ease;  /* 添加颜色过渡效果 */
}

.news-list-title a:hover {
    color: var(--primary-color);  /* 鼠标悬停时变为主题色 */
}

/* 图片链接样式 */
.news-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 可选：添加图片悬停效果 */
.news-image a:hover img {
    transform: scale(1.05);
}



.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.news-sidebar {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-list-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.news-list-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.news-list-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-list-title {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-main {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 180px;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-content {
        padding: 1.2rem;
    }
}
    .statistics-bar {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .stat-item {
        min-width: calc(50% - 0.5rem);
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .tags-container {
        justify-content: center;
    }


@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        max-width: 300px;
        background: var(--primary-color);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        gap: 2rem;
        z-index: 5;
        backdrop-filter: blur(10px);
        background: rgba(255, 127, 107, 0.95);
    }

    .nav-menu.active {
        right: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu a {
        font-size: 1.1rem;
        text-align: center;
        width: 100%;
    }

    /* 当菜单打开时的汉堡按钮样式 */
    .menu-toggle.active span:first-child {
        transform: rotate(45deg);
        top: 2px;
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:last-child {
        transform: rotate(-45deg);
        top: -2px;
    }

    /* 搜索框适配 */
    .search-box {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input, .search-button {
        width: 100%;
    }

    /* 分类导航适配 */
    .category-nav {
        margin: 1rem;
        padding: 1rem;
    }

    .category-list {
        gap: 0.8rem;
    }

    .category-list a {
        width: calc(50% - 0.4rem);
        text-align: center;
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* 标题适配 */
    .section-title {
        margin: 2rem 1rem 1rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }

    /* 模板卡片适配 */
    .template-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem;
    }

    .template-card {
        margin: 0 0 1rem;
    }

    .template-info {
        padding: 1rem;
    }

    /* 遮罩层 */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 4;
    }

    .overlay.active {
        display: block;
        opacity: 1;
    }

    /* 适配搜索容器 */
    .search-container {
        padding: 1.5rem 1rem;
    }

    /* Logo适配 */
    .logo {
        font-size: 1.3rem;
    }

    

    /* 分类标签换行优化 */
    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .category-list a {
        width: 100%;
        margin: 0;
    }
}

/* 较小屏幕的额外适配 */
@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .template-image {
        height: 180px;
    }

    .template-title {
        font-size: 1rem;
    }

    .search-input {
        padding: 0.8rem 1rem;
    }
}


/* Footer Styles */
.footer {
background-color: #1a1a1a;
color: #9ca3af;
font-family: system-ui, -apple-system, sans-serif;
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 48px 24px;
}

.footer-grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 32px;
}

@media (min-width: 768px) {
.footer-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (min-width: 1024px) {
.footer-grid {
grid-template-columns: repeat(4, 1fr);
}
}

/* Brand Section */
.footer-brand {
max-width: 320px;
}

.footer-title {
color: #ffffff;
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 1rem;
}

.footer-desc {
font-size: 0.875rem;
line-height: 1.5;
margin-bottom: 1.5rem;
}

.social-links {
display: flex;
gap: 1rem;
}

.social-link {
color: #9ca3af;
text-decoration: none;
transition: color 0.2s;
}

.social-link:hover {
color: #ffffff;
}

/* Column Styles */
.footer-column {
margin-bottom: 1rem;
}

.footer-subtitle {
color: #ffffff;
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 1rem;
}

.footer-links {
list-style: none;
padding: 0;
margin: 0;
}

.footer-links li {
margin-bottom: 0.5rem;
}

.footer-links a {
color: #9ca3af;
text-decoration: none;
transition: color 0.2s;
}

.footer-links a:hover {
color: #ffffff;
}

/* Contact Info */
.contact-info p {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
}

.contact-icon {
font-size: 1.25rem;
}

/* Footer Bottom */
.footer-bottom {
border-top: 1px solid #2d2d2d;
padding: 1rem 0;
}

.footer-bottom-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}

@media (min-width: 768px) {
.footer-bottom-content {
flex-direction: row;
justify-content: space-between;
}
}

.copyright {
font-size: 0.875rem;
}

.footer-policies {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
}

.footer-policies a {
color: #9ca3af;
text-decoration: none;
transition: color 0.2s;
}

.footer-policies a:hover {
color: #ffffff;
}

.divider {
color: #4a4a4a;
}


/* to top */
.back-to-top {
position: fixed;
right: 20px;
bottom: 20px;
width: 40px;
height: 40px;
background: var(--primary-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 999;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.back-to-top.show {
opacity: 1;
visibility: visible;
}

.back-to-top:hover {
background: var(--primary-dark);
transform: translateY(-3px);
}

/* 箭头样式 */
.back-to-top::after {
content: '↑';
font-size: 20px;
}