/* ========================================
   多彩编程 - 全局样式表
   复古胶片风格 | 焦糖棕 + 米黄 + 浅灰
   左右结构设计 | 左侧固定导航
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: #f5f1e8;
    color: #3d3a36;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    display: flex;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/bg-texture.png");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   左侧固定导航栏 - 左右结构
   ======================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #8b6c4c 0%, #6d5438 100%);
    color: #f5f1e8;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    overflow-y: auto;
    border-right: 3px solid #c9a87c;
    transition: transform 0.4s ease;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(201, 168, 124, 0.3);
}

.sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid #c9a87c;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.sidebar-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f5f1e8;
    letter-spacing: 3px;
    font-family: "Courier New", monospace;
}

.sidebar-tagline {
    font-size: 0.85rem;
    color: rgba(245, 241, 232, 0.7);
    margin-top: 0.5rem;
    font-style: italic;
}

.nav-menu-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-link-vertical {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    color: rgba(245, 241, 232, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link-vertical::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #c9a87c;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link-vertical:hover::before,
.nav-link-vertical.active::before {
    transform: scaleY(1);
}

.nav-link-vertical:hover,
.nav-link-vertical.active {
    background: rgba(201, 168, 124, 0.2);
    color: #f5f1e8;
    padding-left: 1.5rem;
}

.nav-link-vertical img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.nav-link-vertical:hover img,
.nav-link-vertical.active img {
    opacity: 1;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid rgba(201, 168, 124, 0.3);
    text-align: center;
}

.sidebar-copyright {
    font-size: 0.8rem;
    color: rgba(245, 241, 232, 0.6);
    line-height: 1.6;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.sidebar-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-social-link:hover {
    background: #c9a87c;
    transform: scale(1.1);
}

.sidebar-social-link img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* 移动端汉堡菜单按钮 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: #8b6c4c;
    border-radius: 10px;
    border: 2px solid #c9a87c;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: #f5f1e8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    position: relative;
}

/* ========================================
   首页 Hero 区域 - 独特布局
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc8 50%, #d4c4a8 100%);
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(201, 168, 124, 0.2) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 20px) rotate(5deg); }
}

.hero-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: #c9a87c;
    color: #f5f1e8;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    color: #3d3a36;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-title span {
    color: #c9a87c;
}

.hero-description {
    font-size: 1.1rem;
    color: #5d5650;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 1px;
}

.btn-primary {
    background: #8b6c4c;
    color: #f5f1e8;
    border: 2px solid #8b6c4c;
}

.btn-primary:hover {
    background: #6d5438;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 108, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #8b6c4c;
    border: 2px solid #8b6c4c;
}

.btn-secondary:hover {
    background: #8b6c4c;
    color: #f5f1e8;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease forwards;
    opacity: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-frame {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid #c9a87c;
    border-radius: 15px;
    pointer-events: none;
}

/* ========================================
   滚动动画类
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   核心优势板块 - 卡片式布局
   ======================================== */
.features-section {
    padding: 6rem 2rem;
    background: #f5f1e8;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: #c9a87c;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    color: #3d3a36;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e8dcc8;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c9a87c, #8b6c4c);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 108, 76, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #c9a87c, #8b6c4c);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.feature-title {
    font-size: 1.4rem;
    color: #3d3a36;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-desc {
    color: #5d5650;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ========================================
   技术分类板块
   ======================================== */
.categories-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #f5f1e8 0%, #e8dcc8 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 108, 76, 0.2);
}

.category-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-content {
    padding: 1.5rem;
}

.category-name {
    font-size: 1.2rem;
    color: #3d3a36;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-count {
    color: #c9a87c;
    font-size: 0.9rem;
}

/* ========================================
   资讯列表板块
   ======================================== */
.news-section {
    padding: 6rem 2rem;
    background: #f5f1e8;
}

.news-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.news-tab {
    padding: 0.8rem 2rem;
    background: #fff;
    border: 2px solid #c9a87c;
    border-radius: 50px;
    color: #8b6c4c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tab.active,
.news-tab:hover {
    background: #c9a87c;
    color: #f5f1e8;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 108, 76, 0.15);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #c9a87c;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: block;
}

.news-title {
    font-size: 1.15rem;
    color: #3d3a36;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-weight: 600;
}

.news-excerpt {
    color: #5d5650;
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    display: inline-block;
    margin-top: 1rem;
    color: #8b6c4c;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-link:hover {
    color: #c9a87c;
}

/* ========================================
   快速入口板块
   ======================================== */
.quick-access-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #8b6c4c 0%, #6d5438 100%);
    color: #f5f1e8;
}

.quick-access-section .section-subtitle {
    color: #c9a87c;
}

.quick-access-section .section-title {
    color: #f5f1e8;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.access-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.access-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.access-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.access-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.access-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: #2d2a26;
    color: #d4c4a8;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
    color: #f5f1e8;
}

.footer-desc {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #c9a87c;
    transform: translateY(-3px);
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-title {
    color: #f5f1e8;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #c9a87c;
    padding-left: 5px;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.8;
}

.footer-contact img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ========================================
   内页通用样式
   ======================================== */
.page-header {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(135deg, #f5f1e8 0%, #e8dcc8 100%);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    color: #3d3a36;
    margin-bottom: 1rem;
    font-weight: bold;
}

.page-subtitle {
    color: #5d5650;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-section {
    padding: 4rem 2rem;
    background: #f5f1e8;
}

/* ========================================
   文章列表页样式
   ======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 108, 76, 0.15);
}

.article-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #8b6c4c;
}

.article-title {
    font-size: 1.2rem;
    color: #3d3a36;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-weight: 600;
}

.article-excerpt {
    color: #5d5650;
    font-size: 0.95rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-tag {
    background: #f5f1e8;
    color: #8b6c4c;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ========================================
   文章详情页样式
   ======================================== */
.article-detail-section {
    padding: 4rem 2rem;
    background: #f5f1e8;
}

.article-detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e8dcc8;
}

.article-detail-title {
    font-size: 2.2rem;
    color: #3d3a36;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    gap: 2rem;
    color: #8b6c4c;
    font-size: 0.9rem;
}

.article-detail-content {
    line-height: 2;
    color: #3d3a36;
    font-size: 1.05rem;
}

.article-detail-content p {
    margin-bottom: 1.5rem;
}

.article-detail-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-detail-content h2 {
    color: #8b6c4c;
    margin: 2.5rem 0 1rem;
    font-size: 1.6rem;
}

.article-detail-content h3 {
    color: #6d5438;
    margin: 2rem 0 1rem;
    font-size: 1.3rem;
}

.article-detail-content pre {
    background: #2d2a26;
    color: #f5f1e8;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
}

.article-detail-content code {
    background: #f5f1e8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
}

.article-detail-content pre code {
    background: transparent;
    padding: 0;
}

.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e8dcc8;
}

.related-title {
    font-size: 1.5rem;
    color: #3d3a36;
    margin-bottom: 2rem;
}

/* ========================================
   关于我们页面
   ======================================== */
.about-intro-section {
    padding: 4rem 2rem;
    background: #f5f1e8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-text h3 {
    font-size: 2rem;
    color: #3d3a36;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #5d5650;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    color: #c9a87c;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #5d5650;
    font-size: 0.95rem;
}

/* ========================================
   联系我们页面
   ======================================== */
.contact-section {
    padding: 4rem 2rem;
    background: #f5f1e8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c9a87c, #8b6c4c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon img {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
}

.contact-detail h4 {
    color: #3d3a36;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-detail p {
    color: #5d5650;
    line-height: 1.7;
}

.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #3d3a36;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e8dcc8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9a87c;
    box-shadow: 0 0 0 3px rgba(201, 168, 124, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ========================================
   响应式设计 - 左右结构适配
   ======================================== */
@media (max-width: 1200px) {
    .features-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 移动端：侧边栏隐藏，显示汉堡菜单 */
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid,
    .categories-grid,
    .news-grid,
    .articles-grid,
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-detail-container {
        padding: 2rem;
    }
    
    .article-detail-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .sidebar-logo-text {
        font-size: 1.4rem;
    }
    
    .nav-link-vertical {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
