/* ====================
   基础样式
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff9f7c;
    --accent-color: #ffd166;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-color: #fff8f0;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
    --shadow-hover: 0 8px 30px rgba(255, 107, 53, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================
   顶部导航栏
   ==================== */
.top-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left span {
    margin-right: 20px;
}

.header-right .social-link {
    color: var(--white);
    margin-left: 20px;
    opacity: 0.9;
}

.header-right .social-link:hover {
    opacity: 1;
}

/* ====================
   主导航
   ==================== */
.main-nav {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.site-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.site-slogan {
    font-size: 12px;
    color: var(--text-light);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.search-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ====================
   搜索遮罩
   ==================== */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.search-box input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    background: var(--white);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.search-close {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

/* ====================
   Hero 区域
   ==================== */
.hero-section {
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 209, 102, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 20px;
    border-radius: 12px;
    background: var(--bg-color);
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ====================
   专注领域
   ==================== */
.focus-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.focus-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.focus-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.focus-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.focus-item h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.focus-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ====================
   最新文章
   ==================== */
.articles-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
}

.view-all:hover {
    color: var(--primary-dark);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-box {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.article-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-thumb {
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-cat {
    background: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: var(--shadow);
}

.article-body {
    padding: 24px;
}

.article-body h3 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
    font-size: 13px;
    color: var(--text-light);
}

/* ====================
   热门标签
   ==================== */
.tags-section {
    padding: 60px 0;
    background: var(--white);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.tags-cloud a {
    padding: 10px 24px;
    background: var(--bg-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.tags-cloud a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ====================
   关于部分
   ==================== */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.about-content p {
    margin-bottom: 16px;
    opacity: 0.95;
    font-size: 16px;
}

.about-content .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    margin-top: 20px;
}

.about-content .btn-primary:hover {
    background: var(--bg-color);
    color: var(--primary-dark);
    border-color: var(--bg-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.about-num {
    display: block;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 8px;
}

.about-text {
    font-size: 14px;
    opacity: 0.9;
}

/* ====================
   订阅区域
   ==================== */
.subscribe-section {
    padding: 80px 0;
    background: var(--white);
}

.subscribe-box {
    background: linear-gradient(135deg, var(--bg-color), #ffe8d6);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.subscribe-box h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 12px;
}

.subscribe-box p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.subscribe-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.subscribe-form button {
    padding: 16px 32px;
}

/* ====================
   友情链接
   ==================== */
.links-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.links-list a {
    padding: 12px 28px;
    background: var(--white);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.links-list a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ====================
   页脚
   ==================== */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom .beian a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .beian a:hover {
    color: var(--primary-color);
}

/* ====================
   返回顶部
   ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: none;
    z-index: 99;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ====================
   响应式设计
   ==================== */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-card {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .top-header {
        display: none;
    }

    .nav-wrapper {
        flex-wrap: wrap;
    }

    .nav-list {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .card-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        margin-bottom: 10px;
    }
}
