/*
Theme Name: 广德楼主题
Theme URI: https://bjguangdelou.com
Description: 广德楼相声文化传承网站主题 - 基于WordPress独立网站设计
Version: 1.0.0
Author: 广德楼技术团队
Author URI: https://bjguangdelou.com
Tags: 相声, 传统文化, 票务, 响应式, 红色, 金色
Text Domain: guangdelou-theme
*/

/* ============================================
   广德楼WordPress主题样式
   设计规范参考：《广德楼_综合网站建设方案_V3.0.md》
   ============================================ */

/* CSS变量定义 - 配色方案 */
:root {
    /* 主色调 - 中国红 */
    --primary-red: #C41E3A;
    --primary-red-dark: #A01930;
    --primary-red-light: #E0485E;
    
    /* 辅助色 - 金色 */
    --gold: #F5DEB0;
    --gold-dark: #D4AF37;
    --gold-light: #FFF8E7;
    
    /* 背景色 */
    --bg-warm: #FFF8F0;
    --bg-cream: #FFFDF5;
    --bg-dark: #1A1A1A;
    
    /* 文字色 */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #FFFFFF;
    
    /* 功能色 */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* 字体 */
    --font-heading: 'STXingkai', 'STKaiti', 'KaiTi', serif;
    --font-body: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-number: 'DIN Alternate', 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-warm);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: var(--spacing-xs) auto 0;
}

/* ============================================
   1. 顶部导航栏
   ============================================ */
.header {
    background-color: var(--primary-red);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary-red);
    font-weight: 700;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--gold);
    font-weight: 700;
}

.main-nav {
    display: flex;
    gap: var(--spacing-lg);
}

.main-nav a {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: var(--gold);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-btn, .login-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.search-btn:hover, .login-btn:hover {
    background: var(--gold);
    color: var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   2. Hero Banner
   ============================================ */
.hero {
    background: linear-gradient(rgba(164, 30, 48, 0.8), rgba(196, 30, 58, 0.9)), url('<?php echo get_template_directory_uri(); ?>/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: var(--text-light);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-red);
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid var(--gold);
    cursor: pointer;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--primary-red);
}

/* ============================================
   3. 演出预告区
   ============================================ */
.yanchu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.yanchu-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.yanchu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.yanchu-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.yanchu-card-content {
    padding: var(--spacing-sm);
}

.yanchu-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.yanchu-card-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.yanchu-card-price {
    font-family: var(--font-number);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: var(--spacing-sm);
}

.yanchu-card-btn {
    display: block;
    width: 100%;
    background: var(--primary-red);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.yanchu-card-btn:hover {
    background: var(--primary-red-dark);
}

/* ============================================
   4. 演员风采区
   ============================================ */
.yanyuan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.yanyuan-card {
    text-align: center;
}

.yanyuan-card-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-sm);
    border: 3px solid var(--gold);
    transition: transform 0.3s;
}

.yanyuan-card:hover .yanyuan-card-avatar {
    transform: scale(1.05);
}

.yanyuan-card-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.yanyuan-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   6. 热门商品区
   ============================================ */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--text-light);
    border: 1px solid var(--gold);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card-content {
    padding: var(--spacing-sm);
}

.product-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.product-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.product-card-price {
    font-family: var(--font-number);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

/* ============================================
   7. 文章列表样式 - WordPress经典版
   ============================================ */
.article-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.article-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-thumbnail {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-item:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.article-title a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--primary-red);
}

.article-meta {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.article-category a {
    color: var(--primary-red);
    font-weight: 500;
}

.article-category a:hover {
    text-decoration: underline;
}

.article-excerpt {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    flex: 1;
}

.article-readmore {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 700;
    font-size: 14px;
    transition: color 0.3s;
    align-self: flex-start;
}

.article-readmore:hover {
    color: var(--primary-red-dark);
    text-decoration: underline;
}

.article-pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    background: var(--text-light);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.page-numbers:hover {
    background: var(--primary-red);
    color: var(--text-light);
}

.page-numbers.current {
    background: var(--primary-red);
    color: var(--text-light);
}

/* ============================================
   8. 底部Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--spacing-sm);
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 767px) {
    /* 移动端：< 768px */
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .yanchu-list, .product-list {
        grid-template-columns: 1fr;
    }
    
    .yanyuan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .article-meta {
        flex-wrap: wrap;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* 平板端：768px - 1024px */
    .yanchu-list, .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yanyuan-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    /* 桌面端：> 1024px */
    .container {
        max-width: 1200px;
    }
}

/* WordPress 核心样式支持 */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

.sticky {
    display: block;
}

.bypostauthor {
    display: block;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
