/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 头部和导航栏 */
.header-container {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 500px;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
}

.navbar {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    padding: 15px 0;
    margin-top: -50px; /* 使导航栏与背景图重叠 */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #f8c146;
}

.nav-link.active {
    color: #f8c146;
    border-bottom: 2px solid #f8c146;
}

.language-toggle {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-toggle:hover {
    background: white;
    color: black;
}

/* 主要内容区域 */
.main-content {
    padding: 60px 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f3eb; /* 改为米色背景 */
}

.main-content {
    background-color: #f9f7f0; /* 主要内容区域也改为浅米色 */
    min-height: calc(100vh - 60px - 100px);
    padding: 20px 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #444;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #555;
}

p {
    margin-bottom: 1rem;
}

/* 首页演出卡片 */
.featured-shows {
    margin-top: 40px;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.show-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.show-card:hover {
    transform: translateY(-5px);
}

.show-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.show-card h3 {
    padding: 15px 15px 5px;
}

.show-card p {
    padding: 0 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.show-date {
    color: #e74c3c;
    font-weight: 500;
}

.show-venue {
    color: #666;
}

.book-btn {
    display: inline-block;
    margin: 10px 15px 15px;
    padding: 8px 20px;
    background-color: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.book-btn:hover {
    background-color: #c0392b;
}

/* 特别为金面王朝添加的样式 */
.featured-show {
    display: flex;
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: visible; /* 修改为visible，允许内容溢出 */
}
/* 修改海报容器样式 */
.show-poster {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 20px;
    height: auto; /* 确保高度自适应 */
}

.show-poster img {
    width: 100%;
    max-height: 800px;  /* 增加最大高度 */
    object-fit: contain;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 二维码基础样式 */
.wechat-code {
    text-align: center;
    margin-top: 20px;
}

.wechat-code img {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 4px;
}

/* 移动端二维码默认隐藏 */
.mobile-qrcode {
    display: none;
    margin: 20px auto;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .desktop-qrcode {
        display: none; /* 隐藏左侧二维码 */
    }
    
    .mobile-qrcode {
        display: block; /* 显示票价区域的二维码 */
    }
    
    .wechat-code img {
        width: 180px;
        height: 180px;
    }
}

.show-title {
    font-size: 2.2rem;
    color: #c0932b;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.show-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.show-text {
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.ticket-heading {
    margin-top: 30px;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.ticket-table th, .ticket-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.ticket-table th {
    background-color: #c0932b;
    color: white;
}

.ticket-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.ticket-table tr:hover {
    background-color: #e9e9e9;
}

.discount-price {
    color: #e74c3c;
    font-weight: bold;
}

/* 关于我们页面 */
.about-content {
    margin-top: 20px;
}

.about-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.about-section {
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 图片视频页面 */
.gallery-tabs {
    display: flex;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.3s;
}

.tab.active {
    background-color: #e74c3c;
    color: white;
}

.gallery-content {
    display: none;
}

.gallery-content.active {
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border-radius: 4px;
}

.video-item h3 {
    margin-top: 10px;
    font-size: 16px;
}

/* 灯箱效果 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* 创作团队页面 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-title {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 10px;
}

.member-bio {
    font-size: 14px;
    color: #666;
}

/* 演出信息页面 */
.shows-filter {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.shows-filter select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.shows-list .show-card {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
}

.shows-list .show-image {
    flex: 0 0 200px;
}

.shows-list .show-info {
    flex: 1;
    padding: 15px;
}

.show-price {
    font-weight: 500;
    color: #e74c3c;
}

/* 门票预订页面 */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.booking-form {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.booking-summary {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.summary-details {
    margin: 20px 0;
}

.summary-details p {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #c0392b;
}

.checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    
    .booking-container {
        grid-template-columns: 1fr;
    }
    
    .shows-list .show-card {
        flex-direction: column;
    }
    
    .shows-list .show-image {
        flex: auto;
    }
    
    .featured-show {
        flex-direction: column;
    }
    
    .show-poster {
        flex: auto;
        max-width: 100%;
    }
    
    .show-description {
        flex: auto;
     
    }
    
    .team-grid,
    .shows-grid,
    .gallery-grid,
    .video-grid,
    .about-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .navbar {
        margin-top: -30px;
    }
}

/* 演出信息框 */
.show-info-box {
    background-color: #f5f5f5;
    border-left: 4px solid #c0932b;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.time-icon {
    background-image: url('../images/icons/time.png');
}

.phone-icon {
    background-image: url('../images/icons/phone.png');
}

.location-icon {
    background-image: url('../images/icons/location.png');
}

.metro-icon {
    background-image: url('../images/icons/metro.png');
}

/* 预订选项 */
.booking-options {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

/* 价格区域布局 */
.price-section {
    display: flex;
    margin: 30px 0;
    align-items: flex-start;
}

/* 
.wechat-code {
    flex: 0 0 150px;
    margin-right: 30px;
    text-align: center;
}

.wechat-code img {
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    padding: 5px;
    background: white;
    border-radius: 4px;
}
*/

.price-table-container {
    flex: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .price-section {
        flex-direction: column;
    }
    
    .wechat-code {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* 座位图 */
.seat-map {
    margin: 30px 0;
}

.seat-map img {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
}

/* 订票流程 */
.booking-process {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.booking-process ol {
    padding-left: 20px;
    margin: 15px 0;
}

.booking-process li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.special-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 4px 4px 0;
}

.special-notice h4 {
    color: #856404;
    margin-bottom: 10px;
}

.special-notice p {
    color: #856404;
    margin-bottom: 5px;
}

/* 页脚联系信息 */
.contact-info {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-info p {
    margin: 0 10px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .booking-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wechat-code {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-info p {
        margin: 5px 0;
    }
}

/* 首页紧凑型资讯样式 */
.news-section {
    margin: 25px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #c0932b;
}

.news-list-compact {
    margin: 15px 0;
}

.news-item-compact {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.news-item-compact:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-date-compact {
    flex: 0 0 90px;
    color: #888;
    font-size: 14px;
}

.news-link {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}

.news-link:hover {
    color: #c0932b;
}

.view-more-link {
    text-align: right;
    margin-top: 10px;
}

.view-more-link a {
    color: #c0932b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-more-link a:hover {
    text-decoration: underline;
}
