/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5f2d;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2c5f2d;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f5efe0 0%, #ede4c8 55%, #d9ceaf 100%);
}

/* 前景内容：纭向堆叠居中 --*/
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 20px;
    width: 100%;
}

/* 诗文容器：在按鈕下方，轻度虚化 */
.poem-vertical-wrap {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.45rem;
    height: 48vh;
    margin-top: 1.8rem;
    filter: blur(0.5px);
    opacity: 0.88;
}

/* 题目列（最右） */
.poem-vert-title-col {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 0.3rem 0;
}

.vert-title {
    font-family: 'Ma Shan Zheng', 'STXingkai', 'STKaiti', 'KaiTi', '华文行楷', '楷体', serif;
    font-size: 2.6rem;
    color: #120800;
    letter-spacing: 8px;
    font-weight: bold;
    line-height: 1.5;
}

.vert-author {
    font-family: 'Ma Shan Zheng', 'STXingkai', 'STKaiti', 'KaiTi', serif;
    font-size: 1.25rem;
    color: #3d2000;
    letter-spacing: 5px;
    margin-top: 0.6rem;
    opacity: 0.82;
}

/* 分隔线 */
.poem-vert-sep {
    width: 1px;
    height: 44vh;
    background: linear-gradient(to bottom, transparent 5%, #8b6020 25%, #8b6020 75%, transparent 95%);
    opacity: 0.28;
    flex-shrink: 0;
    margin: 0 0.3rem;
}

/* 诗句列 */
.poem-vert-col {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Ma Shan Zheng', 'STXingkai', 'STKaiti', 'KaiTi', '华文行楷', '楷体', serif;
    font-size: 1.55rem;
    color: #160a00;
    line-height: 1.5;
    letter-spacing: 4px;
    white-space: nowrap;
    padding: 0.2rem 0;
}

/* 印章 */
.poem-seal {
    position: absolute;
    font-family: 'STKaiti', 'KaiTi', '华文楷体', serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: #c0392b;
    width: 46px;
    height: 46px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    text-align: center;
    opacity: 0.85;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    z-index: 3;
}
.poem-seal-tr { top: 55px; right: 60px; }
.poem-seal-br { bottom: 55px; right: 60px; }
.poem-seal-bl { bottom: 55px; left: 60px; }

.hero::before, .hero::after { display: none; }

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: #1a0a00;
    text-shadow: 0 2px 12px rgba(255,255,255,0.6);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
    color: #2d1a00;
    text-shadow: 0 1px 8px rgba(255,255,255,0.5);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #5a3010;
    color: #f5efe0;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
}

.btn:hover {
    background: #3d1f08;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(80, 40, 0, 0.25);
}

/* 通用章节样式 */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5f2d;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

section {
    padding: 5rem 0;
}

/* 轮播图区域 */
.carousel-section {
    background: white;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.slide-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.slide-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
}

.slide-tag {
    display: inline-block;
    background: rgba(44, 95, 45, 0.85);
    color: #fff;
    font-size: 0.85rem;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    text-align: center;
    padding: 1.5rem 0;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2c5f2d;
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: #2c5f2d;
}

/* 图片墙区域 */
.gallery-section {
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
    transition: bottom 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 关于我们 */
.about-section {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: #2c5f2d;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
}

/* 联系我们 */
.contact-section {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    color: #2c5f2d;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2c5f2d;
}

/* 书法图片区域 */
.calligraphy-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f0e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 4px 4px 20px rgba(0,0,0,0.12);
}

.calligraphy-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .slide img {
        height: 300px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }
}
