/* ============================================
   上海品茶网 - 黑蓝风格主样式表
   关键词：上海品茶,上海品茶工作室,上海会所品茶,上海男士会所
   ============================================ */

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

:root {
    --primary-black: #0a0a0f;
    --primary-dark: #0d1117;
    --secondary-dark: #141b27;
    --primary-blue: #1a6bff;
    --secondary-blue: #0044cc;
    --accent-blue: #3b82f6;
    --light-blue: #60a5fa;
    --gold: #d4a843;
    --gold-light: #f0d68a;
    --gold-dark: #b8922e;
    --text-white: #e6edf3;
    --text-gray: #8b949e;
    --text-light: #c9d1d9;
    --border-color: #1e2a3a;
    --card-bg: rgba(13, 17, 23, 0.85);
    --gradient-blue: linear-gradient(135deg, #1a6bff, #0044cc);
    --gradient-gold: linear-gradient(135deg, #d4a843, #f0d68a, #b8922e);
    --gradient-dark: linear-gradient(180deg, #0a0a0f, #0d1117);
    --shadow-blue: 0 0 30px rgba(26, 107, 255, 0.3);
    --shadow-gold: 0 0 20px rgba(212, 168, 67, 0.3);
}

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: var(--primary-black);
    color: var(--text-white);
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--light-blue); text-shadow: 0 0 10px rgba(96, 165, 250, 0.5); }

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

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

/* === 背景粒子动画 === */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 107, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(26, 107, 255, 0.06) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* === 顶部导航 === */
.top-bar {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-gray);
    backdrop-filter: blur(10px);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--text-gray); font-size: 13px; }
.top-bar a:hover { color: var(--gold); }
.top-contact span { margin-right: 20px; }

/* === 主导航 === */
.main-header {
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98), rgba(13, 17, 23, 0.95));
    border-bottom: 2px solid var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-black);
    border: 2px solid var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 168, 67, 0.5);
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}
.logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(212, 168, 67, 0.1) 50%, transparent 60%);
    animation: logoShine 3s infinite;
}
@keyframes logoShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 2px;
}
.logo-text p {
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* 导航菜单 */
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a {
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(26, 107, 255, 0.15);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 1px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-white);
    margin: 5px 0;
    transition: 0.3s;
}

/* === 头部Banner === */
.hero-banner {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(13, 17, 23, 0.8)),
                linear-gradient(135deg, #0d1117, #1a2332);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 30% 50%, rgba(26, 107, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 1; }
.hero-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff, var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 25px;
    line-height: 1.8;
}
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
    background: var(--gradient-blue);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 107, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 107, 255, 0.5);
    color: #fff;
}
.btn-gold {
    background: var(--gradient-gold);
    color: var(--primary-black);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.5);
    color: var(--primary-black);
}

/* === 内容区域通用 === */
.main-content { padding: 50px 0; }

.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-white);
}
.section-title .subtitle {
    color: var(--primary-blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}
.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--gradient-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}
.section-title p {
    color: var(--text-gray);
    margin-top: 12px;
    font-size: 15px;
}

/* === 特色服务卡片 === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-blue);
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(26, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.feature-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--text-white);
}
.feature-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* === 文章列表 === */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-blue);
}
.article-thumb {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.article-thumb::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(26, 107, 255, 0.3);
    border-radius: 50%;
}
.article-thumb svg { width: 40px; height: 40px; opacity: 0.5; }
.article-info { padding: 20px; }
.article-info .category {
    display: inline-block;
    background: rgba(26, 107, 255, 0.15);
    color: var(--accent-blue);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}
.article-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-white);
}
.article-info h3 a:hover { color: var(--light-blue); }
.article-info .excerpt {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-gray);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* === 文章详情页 === */
.article-detail {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px;
}
.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.article-header h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-white);
}
.article-breadcrumb {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
}
.article-breadcrumb a { color: var(--accent-blue); }
.article-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-gray);
}
.article-body {
    font-size: 16px;
    line-height: 2;
    color: var(--text-light);
}
.article-body h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--text-white);
    padding-left: 15px;
    border-left: 3px solid var(--primary-blue);
}
.article-body h3 {
    font-size: 18px;
    margin: 25px 0 12px;
    color: var(--text-white);
}
.article-body p {
    margin-bottom: 18px;
    text-indent: 2em;
}
.article-body ul, .article-body ol {
    margin: 15px 0 15px 30px;
}
.article-body li {
    margin-bottom: 8px;
    text-indent: 0;
}
.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.article-tags span {
    display: inline-block;
    background: rgba(26, 107, 255, 0.1);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin: 5px 5px 5px 0;
}

/* === 侧边栏 === */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}
.sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 42, 58, 0.5);
}
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget li a {
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}
.sidebar-widget li a:hover { color: var(--light-blue); }

/* 热门文章 */
.hot-article {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(30, 42, 58, 0.5);
}
.hot-article:last-child { border-bottom: none; }
.hot-num {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}
.hot-num.top { background: var(--gold-dark); }
.hot-article a {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.5;
}
.hot-article a:hover { color: var(--light-blue); }

/* === 关于我们页面 === */
.about-section {
    padding: 50px 0;
}
.about-header {
    text-align: center;
    margin-bottom: 40px;
}
.about-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-white), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
}
.about-content h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--gold);
    padding-left: 15px;
    border-left: 3px solid var(--gold);
}
.about-content p {
    font-size: 15px;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 15px;
    text-indent: 2em;
}
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}
.about-feature {
    background: rgba(26, 107, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}
.about-feature h4 {
    font-size: 16px;
    color: var(--accent-blue);
    margin-bottom: 10px;
}
.about-feature p {
    font-size: 13px;
    color: var(--text-gray);
    text-indent: 0 !important;
}

/* === 联系我们页面 === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}
.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(26, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-item h4 {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 4px;
}
.contact-item p {
    font-size: 16px;
    color: var(--text-white);
    font-weight: 500;
}
.contact-item .copy-btn {
    background: rgba(26, 107, 255, 0.15);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}
.contact-item .copy-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* === 页脚 === */
.main-footer {
    background: linear-gradient(180deg, var(--primary-dark), #050508);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}
.footer-col p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col li a {
    color: var(--text-gray);
    font-size: 13px;
}
.footer-col li a:hover { color: var(--light-blue); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-gray);
}
.footer-bottom a { color: var(--accent-blue); }

/* === 悬浮按钮 === */
.float-buttons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    position: relative;
}
.float-btn:hover {
    transform: scale(1.1);
}
.float-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}
.float-btn-qq {
    background: linear-gradient(135deg, #4a9eff, #0066ff);
}
.float-btn-qq:hover { box-shadow: 0 4px 25px rgba(74, 158, 255, 0.5); }
.float-btn-phone {
    background: linear-gradient(135deg, #00c853, #009624);
    animation: phoneRing 2s infinite;
}
.float-btn-phone:hover { box-shadow: 0 4px 25px rgba(0, 200, 83, 0.5); }
.float-btn-weixin {
    background: linear-gradient(135deg, #07c160, #06ad56);
}
.float-btn-weixin:hover { box-shadow: 0 4px 25px rgba(7, 193, 96, 0.5); }
.float-btn-qq-hint {
    position: fixed;
    right: 80px;
    bottom: 100px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.float-btn-qq-hint.show { display: block; }
.float-btn-qq-hint .hint-text {
    font-size: 13px;
    color: var(--text-white);
    margin-bottom: 8px;
}
.float-btn-qq-hint .hint-qq {
    display: flex;
    align-items: center;
    gap: 8px;
}
.float-btn-qq-hint .qq-num {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
}
@keyframes phoneRing {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(-8deg); }
    20% { transform: rotate(8deg); }
    30% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    50% { transform: rotate(0); }
}

/* 底部悬浮条 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid var(--border-color);
    z-index: 9998;
    backdrop-filter: blur(20px);
    display: none;
}
.bottom-bar-inner {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}
.bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: var(--text-gray);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}
.bottom-bar a:hover { color: var(--light-blue); }
.bottom-bar a svg { width: 20px; height: 20px; }

/* === 面包屑导航 === */
.breadcrumb {
    background: var(--secondary-dark);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb-inner {
    font-size: 13px;
    color: var(--text-gray);
}
.breadcrumb-inner a { color: var(--accent-blue); }
.breadcrumb-inner span { margin: 0 5px; }

/* === 栏目页头部 === */
.category-header {
    background: linear-gradient(135deg, var(--secondary-dark), var(--primary-dark));
    padding: 35px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.category-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-white);
}
.category-header p {
    color: var(--text-gray);
    font-size: 14px;
}

/* === 分页 === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination a {
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-gray);
    font-size: 14px;
}
.pagination a:hover, .pagination a.active {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* === 回到顶部 === */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 42px;
    height: 42px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9997;
    opacity: 0;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(26, 107, 255, 0.3);
}
.back-to-top.show { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); }

/* === Toast提示 === */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--primary-blue);
    border-radius: 10px;
    padding: 20px 30px;
    z-index: 99999;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.toast p { color: var(--text-white); font-size: 14px; }

/* === 响应式 === */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        border-bottom: 1px solid var(--border-color);
        padding: 15px;
    }
    .features-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 24px; }
    .header-inner { padding: 0 15px; }
    .float-buttons { right: 15px; bottom: 80px; }
    .float-btn { width: 46px; height: 46px; }
    .bottom-bar { display: block; }
    .float-buttons { bottom: 100px; }
    .article-detail { padding: 20px 15px; }
    .article-header h1 { font-size: 22px; }
    .about-content { padding: 20px; }
    .top-bar { display: none; }
}

/* === 动画 === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* === 统计数据 === */
.stats-section {
    background: linear-gradient(135deg, rgba(26, 107, 255, 0.05), rgba(212, 168, 67, 0.03));
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    text-align: center;
}
.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}
.stat-item p {
    color: var(--text-gray);
    font-size: 14px;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
