/* ========================================
   成都品茶网 - 黑金风格主题样式
   域名: gdpc66.cn
   ======================================== */

/* CSS变量 - 黑金主题色 */
:root {
    --gold-primary: #d4a853;
    --gold-light: #f0d78c;
    --gold-dark: #b8860b;
    --gold-gradient: linear-gradient(135deg, #d4a853 0%, #f0d78c 50%, #d4a853 100%);
    --black-primary: #0a0a0a;
    --black-secondary: #1a1a1a;
    --black-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-gold: #d4a853;
    --shadow-gold: 0 0 20px rgba(212, 168, 83, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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;
    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);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ========================================
   头部导航
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.3);
    padding: 15px 0;
    transition: var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(212, 168, 83, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

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

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   Banner 轮播区
   ======================================== */
.banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
    z-index: 1;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1545579133-99bb5ab189bd?w=1920&q=80') center/cover no-repeat;
    animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

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

.banner h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 168, 83, 0.3);
    animation: fadeInUp 1s ease;
}

.banner p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.banner-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold-gradient);
    color: var(--black-primary);
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
    box-shadow: var(--shadow-gold);
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.5);
    color: var(--black-primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   通用区块样式
   ======================================== */
.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-secondary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 20px auto 0;
    border-radius: 2px;
}

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

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

.feature-card {
    background: var(--black-tertiary);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

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

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--gold-primary);
}

.feature-card h3 {
    font-size: 22px;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   文章列表
   ======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--black-tertiary);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

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

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(212, 168, 83, 0.2);
    color: var(--gold-primary);
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.article-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more {
    color: var(--gold-primary);
    font-weight: 500;
}

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

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.3);
}

.article-header h1 {
    font-size: 36px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 24px;
    color: var(--gold-primary);
    margin: 30px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--gold-primary);
}

.article-body h3 {
    font-size: 20px;
    color: var(--gold-light);
    margin: 25px 0 15px;
}

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

.article-body img {
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.article-body blockquote {
    background: rgba(212, 168, 83, 0.1);
    border-left: 4px solid var(--gold-primary);
    padding: 20px 25px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

/* ========================================
   关于我们页面
   ======================================== */
.about-section {
    padding-top: 120px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-gold);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    padding: 40px;
    background: var(--black-secondary);
    border-radius: 15px;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

/* ========================================
   联系我们页面
   ======================================== */
.contact-section {
    padding-top: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--black-secondary);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.contact-info h2 {
    font-size: 28px;
    color: var(--gold-primary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--black-tertiary);
    border-radius: 10px;
    transition: var(--transition);
}

.contact-item:hover {
    border: 1px solid var(--gold-primary);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--black-primary);
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--gold-primary);
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form {
    background: var(--black-secondary);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.contact-form h2 {
    font-size: 28px;
    color: var(--gold-primary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--black-tertiary);
    border: 1px solid rgba(212, 168, 83, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 168, 83, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gold-gradient);
    color: var(--black-primary);
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ========================================
   栏目页面
   ======================================== */
.category-header {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
    background: var(--black-secondary);
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
}

.category-header h1 {
    font-size: 36px;
    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);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* ========================================
   悬浮按钮
   ======================================== */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: none;
    position: relative;
}

.float-btn-phone {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.float-btn-qq {
    background: linear-gradient(135deg, #12b7f5 0%, #0099e5 100%);
    color: white;
}

.float-btn-wechat {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: white;
}

.float-btn-top {
    background: var(--gold-gradient);
    color: var(--black-primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

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

.float-btn .tooltip {
    position: absolute;
    right: 70px;
    background: var(--black-tertiary);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid rgba(212, 168, 83, 0.3);
}

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

/* 弹窗 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background: var(--black-secondary);
    border: 1px solid var(--gold-primary);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content h3 {
    color: var(--gold-primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 18px;
}

.popup-content .copy-value {
    background: var(--black-tertiary);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 20px;
    color: var(--gold-primary);
    margin: 20px 0;
    border: 1px solid rgba(212, 168, 83, 0.3);
    word-break: break-all;
}

.popup-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold-gradient);
    color: var(--black-primary);
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
    margin: 5px;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

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

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--black-secondary);
    border-top: 1px solid rgba(212, 168, 83, 0.3);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--gold-primary);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.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 rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

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

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--black-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(212, 168, 83, 0.3);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .banner h1 {
        font-size: 32px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .float-buttons {
        right: 15px;
        bottom: 80px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 26px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* ========================================
   动画效果
   ======================================== */
.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 0%, var(--gold-primary) 50%, transparent 100%);
    margin: 40px 0;
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.loader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 168, 83, 0.3);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
