/* 移动端网站基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 中国风配色方案 */
    --primary-color: #8B0000;    /* 暗红色 */
    --secondary-color: #E8C59E;  /* 米黄色 */
    --text-color: #333333;       /* 深灰色文字 */
    --bg-color: #FFFFFF;         /* 白色背景 */
    --accent-color: #D4AF37;     /* 金色点缀 */
}

html {
    font-size: 16px;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 移动端视口适配 */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: var(--primary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #6B0000;
}

/* 页面标题 */
.page-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin: 2rem 0;
    font-weight: bold;
}

/* 中国风装饰元素 */
.chinese-border {
    border: 2px solid var(--primary-color);
    padding: 1rem;
    position: relative;
}

.chinese-border::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--accent-color);
}

/* Hero区域样式 */
.hero {
    padding-top: 60px; /* 为固定导航栏留出空间 */
    background-color: var(--secondary-color);
    padding-bottom: 2rem;
}

.hero-content {
    text-align: center;
    margin-top: 2rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--text-color);
}

/* 特色内容网格 */
.featured-section {
    padding: 3rem 0;
}

.featured-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.featured-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.featured-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 最新活动样式 */
.latest-events {
    background-color: var(--secondary-color);
    padding: 3rem 0;
}

.latest-events h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.event-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-info {
    padding: 1.5rem;
}

.event-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-info p {
    margin-bottom: 0.5rem;
}

/* 页脚样式 */
.footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--bg-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--bg-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .nav-list {
        flex-wrap: wrap;
    }

    .nav-item {
        width: 25%; /* 在移动端每行显示4个导航项 */
        text-align: center;
    }

    .hero-content {
        margin-top: 1rem;
    }

    .featured-grid {
        grid-template-columns: 1fr; /* 移动端单列显示 */
    }

    .event-item img {
        height: 150px; /* 移动端减小图片高度 */
    }

    .footer-content {
        grid-template-columns: 1fr; /* 移动端单列显示 */
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        padding-top: 4rem;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }
}

/* 页面头部样式 */
.page-header {
    background-color: var(--secondary-color);
    padding: 80px 0 40px;
    text-align: center;
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: 1rem;
}

/* 文化页面样式 */
.culture-section {
    padding: 4rem 0;
}

.culture-item {
    display: flex;
    margin-bottom: 3rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.culture-item img {
    width: 40%;
    object-fit: cover;
}

.culture-content {
    padding: 2rem;
    flex: 1;
}

.culture-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.culture-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* 引用部分样式 */
.quote-section {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}

.chinese-quote {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    padding: 2rem;
    position: relative;
}

.chinese-quote::before,
.chinese-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
}

.chinese-quote::before {
    top: 0;
    left: 0;
}

.chinese-quote::after {
    bottom: 0;
    right: 0;
}

.chinese-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .culture-item {
        flex-direction: column;
    }

    .culture-item img {
        width: 100%;
        height: 200px;
    }

    .culture-content {
        padding: 1.5rem;
    }

    .chinese-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }

    .chinese-quote::before,
    .chinese-quote::after {
        font-size: 3rem;
    }
}

/* 艺术页面样式 */
.art-categories {
    padding: 4rem 0;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.art-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.art-item:hover {
    transform: translateY(-5px);
}

.art-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.art-content {
    padding: 2rem;
}

.art-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.art-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.art-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 艺术特色部分 */
.art-features-section {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .art-grid {
        grid-template-columns: 1fr;
    }

    .art-item img {
        height: 200px;
    }

    .art-content {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 1.5rem;
    }
}

/* 工艺页面样式 */
.crafts-showcase {
    padding: 4rem 0;
}

.crafts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1rem;
}

.craft-item {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.craft-image {
    position: relative;
    overflow: hidden;
}

.craft-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.craft-item:hover .craft-image img {
    transform: scale(1.05);
}

.craft-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.craft-item:hover .craft-overlay {
    opacity: 1;
}

.craft-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.craft-details {
    padding: 2rem;
    flex: 1;
}

.craft-details h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.craft-details p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.craft-features {
    list-style: none;
    padding: 0;
}

.craft-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.craft-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* 工艺传承部分 */
.crafts-heritage {
    background-color: var(--secondary-color);
    padding: 4rem 0;
}

.heritage-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.heritage-text {
    flex: 1;
}

.heritage-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.heritage-list {
    list-style: none;
    padding: 0;
}

.heritage-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.heritage-list i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.heritage-image {
    flex: 1;
}

.heritage-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .craft-image img {
        height: 200px;
    }

    .craft-details {
        padding: 1.5rem;
    }

    .heritage-content {
        flex-direction: column;
        gap: 2rem;
    }

    .heritage-image {
        order: -1;
    }
}

/* 活动页面样式 */
.events-calendar {
    padding: 4rem 0;
}

.calendar-wrapper {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.calendar-nav:hover {
    color: var(--accent-color);
}

.calendar-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    text-align: center;
}

/* 近期活动样式 */
.upcoming-events {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.event-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-info {
    padding: 2rem;
    position: relative;
}

.event-date {
    position: absolute;
    top: -30px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-align: center;
}

.event-date .date {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
}

.event-date .month {
    font-size: 0.9rem;
}

.event-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.event-location,
.event-time {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.event-location i,
.event-time i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.event-description {
    margin: 1rem 0;
    line-height: 1.6;
}

/* 活动订阅样式 */
.events-subscribe {
    padding: 4rem 0;
}

.subscribe-content {
    text-align: center;
    padding: 3rem;
    background-color: var(--bg-color);
    border-radius: 8px;
}

.subscribe-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.subscribe-content p {
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 1rem;
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .calendar-grid {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .event-card {
        margin-bottom: 2rem;
    }

    .event-info {
        padding: 1.5rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }
}

/* 日历样式 */
.calendar-weekday {
    font-weight: bold;
    color: var(--primary-color);
    padding: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.calendar-day {
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.calendar-day:hover:not(.empty) {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.calendar-day.empty {
    background-color: transparent;
    cursor: default;
}

.calendar-day.current {
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: bold;
}

.calendar-day.has-event {
    color: var(--primary-color);
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

.calendar-day.has-event:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* 图库页面样式 */
.gallery-filter {
    padding: 2rem 0;
    background-color: var(--secondary-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* 图片网格样式 */
.gallery-grid {
    padding: 4rem 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    color: var(--bg-color);
    margin-bottom: 0.5rem;
}

.item-overlay p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.preview-btn {
    background: none;
    border: 2px solid var(--bg-color);
    color: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

/* 预览模态框样式 */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    padding: 2rem;
}

.preview-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--bg-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
}

.modal-info {
    padding: 1.5rem;
    background-color: var(--bg-color);
}

.modal-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modal-info p {
    color: var(--text-color);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
    }
}

/* 关于页面样式 */
.mission-vision {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.mission-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
}

.mission-text,
.vision-text {
    padding: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.mission-text h2,
.vision-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mission-text p,
.vision-text p {
    line-height: 1.8;
    color: var(--text-color);
}

.mission-image {
    grid-column: 1 / -1;
    text-align: center;
}

.mission-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 核心价值观样式 */
.core-values {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item p {
    line-height: 1.6;
    color: var(--text-color);
}

/* 团队介绍样式 */
.team-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-info p {
    color: var(--text-color);
    line-height: 1.6;
}

/* ��展历程样式 */
.history-section {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 50%;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: -6px;
}

.timeline-content {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 2rem;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        padding-left: 2rem;
    }

    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: -6px;
    }
}

/* 联系页面样式 */
.contact-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* 联系信息样式 */
.contact-info {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.info-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--text-color);
    line-height: 1.6;
}

.social-media {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* 联系表单样式 */
.contact-form {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--accent-color);
}

/* 地图部分样式 */
.map-section {
    padding: 4rem 0;
    background-color: var(--secondary-color);
}

.map-container {
    margin-top: 2rem;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#baiduMap {
    width: 100%;
    height: 100%;
}

/* FAQ部分样式 */
.faq-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.6;
}

/* 表单验证样式 */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #ff4444;
}

.form-group input:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .map-container {
        height: 300px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        width: 100%;
    }
}

/* 表单验证提示样式 */
.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease-out;
}

.success-message::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 表单验证状态样式 */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ff4444;
    background-color: #fff8f8;
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    border-color: #ff4444;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #4CAF50;
}

.form-group input:valid:not(:placeholder-shown):focus,
.form-group textarea:valid:not(:placeholder-shown):focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* 提交按钮加载状态 */
.submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--bg-color);
    border-right-color: var(--bg-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #fff;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .carousel {
        height: 300px;
    }

    .carousel-control {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* 导航栏选中状态 */
.nav-item a.active {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
}

.nav-item a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* 文化资讯 */
.news-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    min-width: 80px;
}

.news-date .day {
    font-size: 24px;
    font-weight: bold;
}

.news-date .month {
    font-size: 14px;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.news-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* 数据统计 */
.stats-section {
    padding: 80px 0;
    background: url('../images/stats-bg.jpg') center/cover;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.stat-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
}

/* 用户评价 */
.testimonials-section {
    padding: 60px 0;
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-item {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    position: relative;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: bold;
    color: var(--text-dark);
}

.author-title {
    color: var(--text-gray);
    font-size: 14px;
}

/* 合作伙伴 */
.partners-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.partner-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-item img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.partner-item p {
    color: var(--text-gray);
    font-size: 16px;
}

/* 快速导航 */
.quick-nav-section {
    padding: 60px 0;
    background-color: #fff;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.quick-nav-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
}

.quick-nav-item:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: #fff;
}

.quick-nav-item i {
    font-size: 36px;
    margin-bottom: 15px;
}

.quick-nav-item h3 {
    margin-bottom: 10px;
}

.quick-nav-item p {
    color: var(--text-gray);
}

.quick-nav-item:hover p {
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-date {
        align-self: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid,
    .partners-grid,
    .quick-nav-grid {
        grid-template-columns: 1fr;
    }
}

/* 中国风边框 */
.chinese-border {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chinese-border::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
} 