/* ============================================
   西安品茶 - 黄金风格主题样式表
   网站: https://51xapc.cn
   ============================================ */

/* CSS Variables - 黄金配色 */
:root {
    --gold-primary: #C9A959;
    --gold-light: #F5E6A3;
    --gold-dark: #8B7332;
    --gold-gradient: linear-gradient(135deg, #C9A959 0%, #F5E6A3 50%, #C9A959 100%);
    --gold-text-gradient: linear-gradient(135deg, #B8860B, #FFD700, #DAA520);
    --black-primary: #1A1A1A;
    --black-secondary: #2A2A2A;
    --black-tertiary: #333333;
    --white-primary: #F5F5F5;
    --white-secondary: #E0E0E0;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #999999;
    --success: #4CAF50;
    --shadow-gold: 0 4px 20px rgba(201, 169, 89, 0.3);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--black-primary);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: linear-gradient(180deg, var(--black-secondary) 0%, var(--black-primary) 100%);
    border-bottom: 2px solid var(--gold-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-gold);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--gold-primary);
    background: rgba(201, 169, 89, 0.1);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gold-gradient);
    border-radius: 1px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition);
    border-radius: 1px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a1a1a"/><circle cx="200" cy="300" r="150" fill="%23222" opacity="0.5"/><circle cx="800" cy="200" r="200" fill="%23222" opacity="0.3"/><circle cx="1000" cy="400" r="100" fill="%23222" opacity="0.4"/></svg>');
    background-size: cover;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(201, 169, 89, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 2.5rem;
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gold-gradient);
    color: var(--black-primary);
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    letter-spacing: 1px;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 169, 89, 0.5);
    color: var(--black-primary);
}

/* ============================================
   Section & Cards
   ============================================ */
.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--black-secondary);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(201, 169, 89, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   Category Header & Breadcrumb
   ============================================ */
.category-header {
    background: linear-gradient(135deg, var(--black-secondary) 0%, var(--black-tertiary) 100%);
    padding: 50px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(201, 169, 89, 0.2);
}

.category-header h1 {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb a {
    color: var(--gold-primary);
}

.breadcrumb span {
    margin: 0 8px;
}

/* ============================================
   Article List
   ============================================ */
.article-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.article-item {
    background: var(--black-secondary);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(201, 169, 89, 0.15);
    transition: var(--transition);
}

.article-item:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(201, 169, 89, 0.15);
}

.article-item h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-item h2 a {
    color: var(--text-primary);
}

.article-item h2 a:hover {
    color: var(--gold-primary);
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    color: var(--gold-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-link:hover {
    color: var(--gold-light);
}

/* ============================================
   Article Detail
   ============================================ */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.article-detail h1 {
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-detail .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201, 169, 89, 0.15);
}

.article-detail .content {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 1rem;
}

.article-detail .content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-detail .content h2 {
    color: var(--gold-primary);
    font-size: 1.3rem;
    margin: 35px 0 20px;
    padding-left: 15px;
    border-left: 3px solid var(--gold-primary);
}

/* ============================================
   About & Contact Pages
   ============================================ */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-content h1 {
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 30px;
    text-align: center;
}

.page-content h2 {
    color: var(--gold-primary);
    font-size: 1.3rem;
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--gold-primary);
}

.page-content p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 15px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: var(--black-secondary);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(201, 169, 89, 0.2);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--gold-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gold-gradient);
    color: var(--black-primary);
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
    color: var(--black-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--black-secondary);
    border-top: 2px solid var(--gold-primary);
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
}

.footer-section a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(201, 169, 89, 0.2);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   Floating Contact Buttons
   ============================================ */
.float-contact {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-dark);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.float-btn:hover {
    transform: scale(1.15);
}

.float-btn.phone {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    animation: pulse-phone 2s infinite;
}

.float-btn.wechat {
    background: linear-gradient(135deg, #07C160, #06AD56);
}

.float-btn.qq {
    background: linear-gradient(135deg, #12B7F5, #0D9BD5);
}

.float-btn .tooltip {
    position: absolute;
    right: 65px;
    background: var(--black-primary);
    color: var(--gold-primary);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--gold-primary);
}

.float-btn:hover .tooltip {
    opacity: 1;
}

@keyframes pulse-phone {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--gold-primary);
    color: var(--black-primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background: var(--gold-primary);
    color: var(--black-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 998;
    box-shadow: var(--shadow-gold);
}

.back-to-top.show {
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ============================================
   Xi'an Decorative Elements
   ============================================ */
.xian-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 15 L30 12 L25 15 Z' fill='%23C9A959' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--black-secondary);
        flex-direction: column;
        padding: 15px;
        border-bottom: 2px solid var(--gold-primary);
        gap: 0;
    }

    .nav.show {
        display: flex;
    }

    .nav a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(201, 169, 89, 0.1);
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .article-detail h1 {
        font-size: 1.4rem;
    }

    .float-contact {
        right: 10px;
        bottom: 70px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .float-btn .tooltip {
        display: none;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .article-item {
        padding: 20px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header, .footer, .float-contact, .back-to-top {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
