/* ========================================
   南京品茶网 - 黑金风格主样式
   51njpc.cn
   ======================================== */

/* === 全局变量 === */
:root {
    --gold: #D4AF37;
    --gold-light: #F0D060;
    --gold-dark: #B8960C;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --black-card: #141414;
    --gray-dark: #2A2A2A;
    --gray: #888;
    --gray-light: #CCC;
    --white: #F5F5F5;
    --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* === 重置与基础 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}
a { text-decoration: none; color: var(--gold); transition: var(--transition); }
a:hover { color: var(--gold-light); text-shadow: 0 0 8px rgba(212,175,55,0.5); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--gold); font-weight: 600; line-height: 1.4; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 15px; color: var(--gray-light); }

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* === 顶部导航 === */
.top-bar {
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid rgba(212,175,55,0.2);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--gray);
    position: relative;
    z-index: 1001;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--gray); font-size: 0.85rem; }
.top-bar a:hover { color: var(--gold); }
.top-contact span { margin-right: 20px; }

/* === 主导航 === */
header {
    background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(15,15,15,0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(212,175,55,0.15);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img { height: 50px; }
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}
nav ul { display: flex; list-style: none; gap: 5px; }
nav ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    font-size: 0.95rem;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--gold);
    background: rgba(212,175,55,0.1);
}
nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

/* === 移动端菜单按钮 === */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}
.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    border-radius: 1px;
}

/* === 容器 === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* === Hero 区域 === */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1205 50%, #0A0A0A 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.04) 0%, transparent 40%);
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding: 60px 20px; }
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}
.hero p {
    font-size: 1.2rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    letter-spacing: 2px;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.5);
    color: var(--black);
}

/* === 装饰线 === */
.gold-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 40px 0;
    border: none;
}

/* === 区块标题 === */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    margin: 12px auto 0;
    border-radius: 2px;
}
.section-title p { color: var(--gray); font-size: 1rem; }

/* === 卡片网格 === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.card {
    background: var(--black-card);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    opacity: 0;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(212,175,55,0.4);
    box-shadow: var(--shadow-gold);
}
.card:hover::before { opacity: 1; }
.card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--gray-dark), var(--black-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .placeholder-icon {
    font-size: 3rem;
    opacity: 0.3;
}
.card-body { padding: 25px; }
.card-body h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card-body h3 a { color: var(--gold); }
.card-body h3 a:hover { color: var(--gold-light); }
.card-body p { font-size: 0.9rem; color: var(--gray); margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray); }
.card-tag {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(212,175,55,0.15);
    color: var(--gold);
    border-radius: 20px;
    font-size: 0.75rem;
}

/* === 特色服务 === */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 60px 0;
}
.feature-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--black-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    transition: var(--transition);
}
.feature-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-5px);
}
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 2px solid rgba(212,175,55,0.3);
}
.feature-item h3 { margin-bottom: 10px; font-size: 1.1rem; }
.feature-item p { font-size: 0.85rem; color: var(--gray); }

/* === 文章内容页 === */
.article-page {
    padding: 40px 0 80px;
}
.article-breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}
.article-breadcrumb a { color: var(--gray); }
.article-breadcrumb a:hover { color: var(--gold); }
.article-content {
    background: var(--black-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: 40px;
    line-height: 2;
}
.article-content h1 { font-size: 2rem; margin-bottom: 20px; color: var(--gold); }
.article-content h2 { font-size: 1.5rem; margin: 30px 0 15px; color: var(--gold); }
.article-content h3 { font-size: 1.2rem; margin: 25px 0 12px; color: var(--gold-light); }
.article-content p { margin-bottom: 18px; text-indent: 2em; text-align: justify; }
.article-content img { border-radius: 8px; margin: 20px 0; }
.article-content ul, .article-content ol { margin: 15px 0 15px 30px; }
.article-content li { margin-bottom: 8px; color: var(--gray-light); }
.article-meta-info {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(212,175,55,0.1);
    font-size: 0.85rem;
    color: var(--gray);
}
.article-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(212,175,55,0.1); }
.article-tags span {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gold);
    margin: 3px 5px 3px 0;
}

/* === 侧边栏 === */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 40px 0;
}
.sidebar { }
.sidebar-widget {
    background: var(--black-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}
.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212,175,55,0.2);
}
.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(--gray-light); font-size: 0.9rem; }
.sidebar-widget ul li a:hover { color: var(--gold); padding-left: 5px; }

/* === 联系我们页面 === */
.contact-section {
    padding: 60px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}
.contact-card {
    background: var(--black-card);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
}
.contact-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}
.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--black);
}
.contact-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.contact-card p { color: var(--gray-light); font-size: 0.95rem; }

/* === 关于我们页面 === */
.about-hero {
    background: linear-gradient(135deg, #0A0A0A, #1a1205, #0A0A0A);
    padding: 80px 0;
    text-align: center;
}
.about-content {
    padding: 60px 0;
}
.about-text {
    background: var(--black-card);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: 40px;
    line-height: 2;
}

/* === 页脚 === */
footer {
    background: linear-gradient(180deg, var(--black) 0%, #050505 100%);
    border-top: 2px solid var(--gold);
    padding: 50px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}
.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}
.footer-col p { font-size: 0.9rem; color: var(--gray); line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { color: var(--gray); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--gray);
}

/* === 悬浮按钮 === */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    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;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}
.float-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}
.float-btn:hover::before {
    width: 100%;
    height: 100%;
}
.float-btn:hover {
    transform: scale(1.15);
}
.float-btn .tooltip {
    position: absolute;
    right: 65px;
    background: var(--black-card);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: var(--shadow-card);
}
.float-btn:hover .tooltip {
    opacity: 1;
    right: 68px;
}
.float-btn .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(212,175,55,0.3);
}

/* 电话按钮 */
.float-phone {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    border-color: #27AE60;
    color: white;
    animation: pulse-green 2s infinite;
}
.float-phone:hover { box-shadow: 0 0 30px rgba(46,204,113,0.5); }

/* QQ按钮 */
.float-qq {
    background: linear-gradient(135deg, #4A90D9, #357ABD);
    border-color: #357ABD;
    color: white;
}
.float-qq:hover { box-shadow: 0 0 30px rgba(74,144,217,0.5); }

/* 微信按钮 */
.float-wechat {
    background: linear-gradient(135deg, #07C160, #06AD56);
    border-color: #06AD56;
    color: white;
}
.float-wechat:hover { box-shadow: 0 0 30px rgba(7,193,96,0.5); }

/* 添加QQ按钮 */
.float-addqq {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold-dark);
    color: var(--black);
}
.float-addqq:hover { box-shadow: 0 0 30px rgba(212,175,55,0.5); }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
    70% { box-shadow: 0 0 0 15px rgba(46,204,113,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* === Toast 提示 === */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10,10,10,0.95);
    color: var(--gold);
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 1rem;
    z-index: 99999;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-gold);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* === 面包屑导航 === */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* === 栏目列表页 === */
.category-header {
    background: linear-gradient(135deg, #0A0A0A, #1a1205, #0A0A0A);
    padding: 50px 0;
    text-align: center;
    border-bottom: 1px solid rgba(212,175,55,0.1);
}
.category-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.category-header p { color: var(--gray); font-size: 1rem; }

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--black-card);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 8px;
    color: var(--gray-light);
    font-size: 0.9rem;
    transition: var(--transition);
}
.pagination a:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.pagination .active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border-color: var(--gold);
    font-weight: 600;
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
}
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    nav ul {
        display: none;
        position: fixed;
        top: 80px;
        left: 0; right: 0;
        background: rgba(10,10,10,0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--gold);
        gap: 0;
    }
    nav ul.show { display: flex; }
    nav ul li a { padding: 15px 20px; border-radius: 8px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .features { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar { display: none; }
    .article-content { padding: 25px; }
    .floating-buttons { right: 10px; bottom: 10px; }
    .float-btn { width: 48px; height: 48px; font-size: 1.1rem; }
    .float-btn .tooltip { display: none; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .section-title h2 { font-size: 1.4rem; }
    .header-inner { height: 65px; }
    .logo-text { font-size: 1.2rem; }
}

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

/* === 统计信息 === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 0;
    text-align: center;
}
.stat-item {
    padding: 20px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: var(--gray); font-size: 0.9rem; margin-top: 5px; }
@media (max-width: 768px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
