/* 
 * 维拓商网 - 书画艺术风全站样式
 * 宣纸白 + 墨黑 + 朱砂红配色体系
 */

/* ========== 全局重置与基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "SimSun", serif;
    background-color: #f5f3ef;
    color: #2c2c2c;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== 色彩变量 ========== */
:root {
    --xuanzhi-white: #f5f3ef;
    --mo-black: #2c2c2c;
    --zhusha-red: #c43c3c;
    --ink-light: #5a5a5a;
    --paper-beige: #e8e4d9;
    --border-ink: #d4cfc4;
}

/* ========== 顶部导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.header.scrolled {
    background: rgba(245, 243, 239, 0.98);
    box-shadow: 0 2px 20px rgba(44, 44, 44, 0.1);
    padding: 15px 0;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: var(--mo-black);
    letter-spacing: 3px;
    font-family: "Kaiti", "STKaiti", serif;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu li a {
    font-size: 16px;
    color: var(--mo-black);
    position: relative;
    padding: 8px 0;
    display: inline-block;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--zhusha-red);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--zhusha-red);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--mo-black);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== 移动端导航 ========== */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--xuanzhi-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 30px;
        transition: left 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li a {
        font-size: 20px;
    }
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========== 按钮样式 ========== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--zhusha-red);
    color: #fff;
    font-size: 16px;
    border-radius: 3px;
    border: 2px solid var(--zhusha-red);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.btn:hover {
    background: transparent;
    color: var(--zhusha-red);
}

.btn-outline {
    background: transparent;
    color: var(--mo-black);
    border: 2px solid var(--mo-black);
}

.btn-outline:hover {
    background: var(--mo-black);
    color: #fff;
}

/* ========== 页面过渡动画 ========== */
.page-fade {
    animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 滚动渐入动画 ========== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 页脚样式 ========== */
.footer {
    background: var(--mo-black);
    color: var(--xuanzhi-white);
    padding: 60px 0 30px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--xuanzhi-white);
    position: relative;
    padding-bottom: 12px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--zhusha-red);
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(245, 243, 239, 0.7);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--zhusha-red);
    padding-left: 8px;
}

.footer-contact p {
    color: rgba(245, 243, 239, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 243, 239, 0.15);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(245, 243, 239, 0.5);
    font-size: 13px;
}

/* ========== 章节标题样式 ========== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--mo-black);
    margin-bottom: 15px;
    font-family: "Kaiti", "STKaiti", serif;
    letter-spacing: 5px;
}

.section-title p {
    color: var(--ink-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.title-decoration {
    width: 80px;
    height: 3px;
    background: var(--zhusha-red);
    margin: 20px auto 0;
    position: relative;
}

.title-decoration::before,
.title-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--zhusha-red);
    border-radius: 50%;
}

.title-decoration::before {
    left: -15px;
}

.title-decoration::after {
    right: -15px;
}
