/* ===== 成都高端品茶网 - 黑金风格样式 ===== */
/* 全局变量 */
:root {
    --gold-primary: #d4a853;
    --gold-light: #f0d78c;
    --gold-dark: #b8860b;
    --gold-gradient: linear-gradient(135deg, #d4a853 0%, #f0d78c 50%, #b8860b 100%);
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #141414;
    --bg-hover: #222222;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-gold: #d4a853;
    --border-gold: rgba(212, 168, 83, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 168, 83, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

/* 链接样式 */
a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 168, 83, 0.5);
}

/* ===== 顶部导航栏 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--gold-primary);
    background: rgba(212, 168, 83, 0.1);
}

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

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 60%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition);
}

/* ===== Hero Banner ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 168, 83, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 168, 83, 0.03) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(212, 168, 83, 0.3);
    line-height: 1.3;
    letter-spacing: 3px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.5);
    color: #0a0a0a;
}

.btn-outline {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
    background: rgba(212, 168, 83, 0.1);
    transform: translateY(-3px);
    color: var(--gold-light);
}

/* ===== 内容区域 ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 20px auto;
    border-radius: 3px;
}

/* ===== 卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

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

.card:hover::before {
    transform: scaleX(1);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-gold);
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.card-body h3 a {
    color: inherit;
}

.card-body h3 a:hover {
    color: var(--gold-primary);
}

.card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-tag {
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ===== 服务特色 ===== */
.features {
    background: var(--bg-secondary);
}

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

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(212, 168, 83, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

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

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== 文章详情页 ===== */
.article-page {
    padding-top: 120px;
    min-height: 100vh;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-gold);
}

.article-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-primary);
}

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

.article-content h2 {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin: 40px 0 20px;
    padding-left: 15px;
    border-left: 4px solid var(--gold-primary);
}

.article-content h3 {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin: 30px 0 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid var(--border-gold);
}

.article-content blockquote {
    background: rgba(212, 168, 83, 0.05);
    border-left: 4px solid var(--gold-primary);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* 文章导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-gold);
    gap: 20px;
}

.article-nav a {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.article-nav a:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* ===== 栏目列表页 ===== */
.category-page {
    padding-top: 120px;
    min-height: 100vh;
}

.category-header {
    text-align: center;
    padding: 60px 0;
    background: var(--bg-secondary);
    margin-bottom: 60px;
}

.category-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

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

/* ===== 悬浮联系按钮 ===== */
.floating-contact {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid var(--border-gold);
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(212, 168, 83, 0.4);
}

.float-btn-phone {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.float-btn-qq {
    background: linear-gradient(135deg, #1296db, #3498db);
}

.float-btn-wechat {
    background: linear-gradient(135deg, #07c160, #09bb07);
}

.float-btn-top {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.float-btn-top.visible {
    opacity: 1;
    visibility: visible;
}

.float-btn svg {
    width: 26px;
    height: 26px;
    fill: white;
}

/* 悬浮按钮提示 */
.float-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-gold);
    pointer-events: none;
}

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

.float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--bg-card);
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.modal-icon.phone { background: rgba(39, 174, 96, 0.2); }
.modal-icon.qq { background: rgba(18, 150, 219, 0.2); }
.modal-icon.wechat { background: rgba(7, 193, 96, 0.2); }

.modal h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-value {
    background: var(--bg-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 10px;
    padding: 15px;
    font-size: 1.2rem;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    word-break: break-all;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.modal-btn-primary {
    background: var(--gold-gradient);
    color: #0a0a0a;
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
}

.modal-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-gold);
}

.modal-btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

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

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-gold);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p,
.footer-col li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 2;
}

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

.footer-col ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-gold);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

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

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-secondary);
}

/* ===== 侧边栏 ===== */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 80px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-widget h4 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-gold);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-widget ul li a:hover {
    color: var(--gold-primary);
    padding-left: 8px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--border-gold);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .floating-contact {
        right: 15px;
        bottom: 15px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
    }
    
    .float-tooltip {
        display: none;
    }
    
    .article-nav {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .modal {
        padding: 25px;
    }
}

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

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

/* 金色分割线装饰 */
.gold-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 40px 0;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 金色边框动画 */
@keyframes borderGlow {
    0%, 100% { border-color: rgba(212, 168, 83, 0.3); }
    50% { border-color: rgba(212, 168, 83, 0.8); }
}

.glow-border {
    animation: borderGlow 2s ease-in-out infinite;
}

/* 文字渐变动画 */
@keyframes textShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-shimmer {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s linear infinite;
}
