:root {
    /* 青瓷主题色彩 */
    --celadon-primary: #77AAA3;
    --celadon-secondary: #9BC0B8;
    --celadon-light: #E6EFEE;
    --celadon-dark: #5C8A83;
    --celadon-accent: #C4DDD9;
    /* 宋朝风格色彩 */
    --song-white: #f7f7f2;
    --song-black: #333333;
    --song-gold: #d4af37;
    --song-gray: #8a8a8a;
    --song-red: #c14953;
    --song-brown: #8b4513;
    /* 字体 */
    --font-primary: 'Noto Serif SC', 'SimSun', serif;
    --font-secondary: 'Noto Serif SC', 'SimHei', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--song-black);
    background-color: var(--song-white);
    background-repeat: repeat;
    background-size: 300px;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: var(--celadon-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 150px;
    height: 80px;
    background-image: url('../images/logo-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logo a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--song-white);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: var(--font-primary);
}

.logo-subtext {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 2px;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--song-white);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--song-gold);
    background-color: rgba(255, 255, 255, 0.1);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--song-white);
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(rgba(119, 170, 163, 0.05), rgba(119, 170, 163, 0.1)), url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.decoration-line {
    width: 60px;
    height: 1px;
    background-color: var(--celadon-primary);
}

.decoration-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--celadon-primary);
    margin: 0 15px;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--celadon-primary);
    margin: 0 15px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--song-black);
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--celadon-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--song-gray);
    margin-bottom: 40px;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.primary-btn {
    background-color: var(--celadon-primary);
    color: var(--song-white);
}

.primary-btn:hover {
    background-color: var(--celadon-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(119, 170, 163, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: var(--celadon-primary);
    border-color: var(--celadon-primary);
}

.secondary-btn:hover {
    background-color: var(--celadon-primary);
    color: var(--song-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(119, 170, 163, 0.3);
}

/* 通用章节样式 */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--song-black);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--song-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我们 */
.about {
    background-color: var(--song-white);
}

.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-left {
    flex: 1;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-right {
    flex: 1;
}

.about-right h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--song-black);
}

.about-right p {
    margin-bottom: 25px;
    color: var(--song-gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--celadon-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--celadon-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--song-white);
    font-size: 1.2rem;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--song-black);
}

.feature-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--song-gray);
}

/* 小程序介绍 */
.app {
    background-color: var(--celadon-light);
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.app-showcase {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}

.app-device {
    flex: 2;
}

.app-device img {
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.app-qrcode {
    flex: 1;
    text-align: center;
    background-color: var(--song-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-qrcode h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--song-black);
}

.qrcode-container {
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--song-white);
    border: 1px solid var(--celadon-light);
    border-radius: 8px;
    display: inline-block;
}

.qrcode-container img {
    width: 200px;
    height: 200px;
    display: block;
}

.app-qrcode p {
    color: var(--song-gray);
    font-size: 0.95rem;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.app-feature-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--song-white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.app-feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.app-feature-item .feature-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
}

.app-feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--song-black);
}

.app-feature-item p {
    color: var(--song-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 文化传承 */
.culture {
    background-color: var(--song-white);
}

.culture-content {
    display: flex;
    gap: 60px;
}

.timeline {
    flex: 1;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--celadon-light);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--celadon-primary);
    border: 3px solid var(--celadon-light);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--celadon-primary);
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--song-black);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--song-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.culture-gallery {
    flex: 1;
}

.gallery-title {
    margin-bottom: 30px;
}

.gallery-title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--song-black);
    margin-bottom: 20px;
}

.gallery-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

/* 联系我们 */
.contact {
    background-color: var(--celadon-light);
}

.contact-content {
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
    background-color: var(--song-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--celadon-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--celadon-primary);
    font-size: 1.2rem;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--song-black);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--song-gray);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--celadon-light);
    color: var(--celadon-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--celadon-primary);
    color: var(--song-white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(119, 170, 163, 0.3);
}

.contact-form {
    flex: 1;
    background-color: var(--song-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--song-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--celadon-light);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--song-black);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--celadon-primary);
    box-shadow: 0 0 0 3px rgba(119, 170, 163, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--song-red);
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--song-white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 页脚 */
footer {
    background-color: var(--celadon-dark);
    color: var(--song-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--song-white);
}

.footer-logo p {
    color: rgba(247, 247, 242, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--song-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(247, 247, 242, 0.8);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--song-gold);
}

.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--song-white);
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 10px;
    color: rgba(247, 247, 242, 0.8);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(247, 247, 242, 0.2);
}

.footer-decoration {
    margin-bottom: 20px;
}

.footer-bottom p {
    color: rgba(247, 247, 242, 0.8);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* 滚动到顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--celadon-primary);
    color: var(--song-white);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 9999;
}

.scroll-to-top:hover {
    background-color: var(--celadon-dark);
    transform: translateY(-5px);
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-left,
    .about-right {
        flex: none;
        width: 100%;
    }
    
    .app-showcase {
        flex-direction: column;
        text-align: center;
    }
    
    .app-device,
    .app-qrcode {
        flex: none;
        width: 100%;
    }
    
    .culture-content {
        flex-direction: column;
    }
    
    .timeline,
    .culture-gallery {
        flex: none;
        width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        background-color: var(--celadon-primary);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--celadon-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .app-feature-item {
        padding: 30px 20px;
    }
    
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-subtext {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .feature-item,
    .app-feature-item,
    .gallery-item {
        touch-action: manipulation;
    }
    
    .btn {
        padding: 14px 30px;
    }
    
    .nav-links a {
        padding: 10px 15px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --song-white: #2c2c2c;
        --song-black: #f7f7f2;
        --song-gray: #b0b0b0;
    }
    
    .about,
    .culture {
        background-color: var(--song-white);
    }
    
    .app,
    .contact {
        background-color: #3a3a3a;
    }
    
    .about-image,
    .app-feature-item,
    .contact-info,
    .contact-form {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

/* 打印样式 */
@media print {
    header,
    footer,
    .hamburger,
    .scroll-to-top {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
}