/* ===== 公共样式 - 所有页面共享 ===== */

/* 字体：macOS苹方优先，统一回退链 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, 'PingFang SC', 'Segoe UI', 'Microsoft YaHei', system-ui, sans-serif;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #e07be0 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #3b8fd4 0%, #00d4e0 100%);
    --success-gradient: linear-gradient(135deg, #30c96a 0%, #20d4b0 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --dark-bg: #0f0f23;
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --accent-purple: #667eea;
    --accent-pink: #f5576c;
    --accent-cyan: #00f2fe;
    --accent-green: #43e97b;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body {
    background: var(--dark-bg);
    background-image: 
        radial-gradient(ellipse at top left, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(245, 87, 108, 0.2) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.8;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 ===== */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-icon i {
    color: white;
    font-size: 1.5rem;
}

.logo-text h1 {
    font-size: 1.4rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav a {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition);
    background: transparent;
}

nav a:hover, nav a.active {
    color: white;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

nav a.active {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--secondary-gradient);
}

/* ===== 页面标题 ===== */
.page-header {
    background: linear-gradient(180deg, 
        rgba(102, 126, 234, 0.2) 0%, 
        rgba(245, 87, 108, 0.1) 50%,
        transparent 100%);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

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

.breadcrumb a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ===== 返回首页按钮 ===== */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 24px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.back-home:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* ===== 统一链接按钮样式 ===== */
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-pink);
    transition: var(--transition);
    border: 1px solid rgba(245, 87, 108, 0.3);
    cursor: pointer;
}

.link-btn:hover {
    background: var(--secondary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
}

.link-btn i {
    transition: transform 0.3s ease;
}

.link-btn:hover i {
    transform: translateX(4px);
}

.link-btn--secondary {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--accent-purple);
}

.link-btn--secondary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

.link-btn--cyan {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
}

.link-btn--cyan:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

.link-btn--green {
    background: rgba(67, 233, 123, 0.1);
    border-color: rgba(67, 233, 123, 0.3);
    color: var(--accent-green);
}

.link-btn--green:hover {
    background: var(--success-gradient);
    border-color: transparent;
}

/* ===== 页脚 ===== */
footer {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4fc3f7 0%, #00e5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    position: relative;
}

.footer-column ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--secondary-gradient);
    transition: width 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-pink);
    transform: translateX(6px);
}

.footer-column ul li a:hover::before {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-gradient);
    border-color: transparent;
    transform: translateY(-4px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== 通用卡片样式 ===== */
.detail-section, .content-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 36px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.warning-box {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 24px 0;
}

.warning-box h4 {
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.warning-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.success-box {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.15) 0%, rgba(56, 249, 215, 0.15) 100%);
    border: 1px solid rgba(67, 233, 123, 0.3);
    border-radius: var(--border-radius);
    padding: 24px;
    margin: 24px 0;
}

.success-box h4 {
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.success-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ===== 评测文章页面样式 ===== */
.article-header {
    padding: 140px 0 40px;
    text-align: center;
    background: linear-gradient(180deg,
        rgba(102, 126, 234, 0.2) 0%,
        rgba(245, 87, 108, 0.1) 50%,
        transparent 100%);
}

.article-header .brand-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 16px;
}

.article-meta i {
    margin-right: 6px;
    color: var(--accent-purple);
}

.article-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    color: #00e5ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 32px 0 14px;
    color: white;
}

.article-body p {
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 18px;
    font-size: 1.02rem;
}

.article-body ul, .article-body ol {
    color: var(--text-muted);
    padding-left: 24px;
    margin-bottom: 18px;
    line-height: 2;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-purple);
    background: rgba(102, 126, 234, 0.08);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--text-muted);
}

.article-body blockquote p {
    margin-bottom: 0;
}

.spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.spec-table th, .spec-table td {
    padding: 14px 20px;
    text-align: left;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-table th {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(102, 126, 234, 0.15);
}

.spec-table td {
    color: var(--text-muted);
}

.spec-table td:last-child {
    font-weight: 600;
    color: white;
}

.pros-cons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.pros-cons .pros, .pros-cons .cons {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
}

.pros-cons .pros h4 { color: var(--accent-green); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pros-cons .cons h4 { color: #ff6b6b; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.pros-cons ul {
    padding-left: 20px;
    margin: 0;
}

.pros-cons li {
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.7;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.score-bar .label {
    min-width: 80px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.score-bar .bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.score-bar .bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
}

.score-bar .value {
    min-width: 40px;
    font-weight: 700;
    font-size: 0.9rem;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.article-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.article-nav a:hover {
    background: var(--secondary-gradient);
    color: white;
    border-color: transparent;
}

@media (max-width: 768px) {
    .article-header h1 { font-size: 2rem; }
    .pros-cons { grid-template-columns: 1fr; }
    .article-nav { flex-direction: column; gap: 12px; }
}

/* ===== 广告位样式 ===== */
.ad-slot {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.ad-slot::before {
    content: '广告';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
    z-index: 2;
    padding: 2px 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}

.ad-slot:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

/* 横幅广告 - 页面顶部/底部 */
.ad-banner {
    width: 100%;
    max-width: 728px;
    margin: 24px auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 90px;
    text-decoration: none;
    transition: var(--transition);
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 2px);
}

/* 文中插入广告 */
.ad-inline {
    margin: 32px 0;
    max-width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-inline a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100px;
    text-decoration: none;
}

.ad-inline img {
    max-width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 2px);
}

/* 侧边栏广告 */
.ad-sidebar {
    width: 300px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 250px;
    text-decoration: none;
}

.ad-sidebar img {
    max-width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 2px);
}

/* 广告占位符 - 无广告时显示 */
.ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.25);
    font-size: 0.85rem;
    width: 100%;
    min-height: inherit;
    padding: 20px;
}

.ad-placeholder i {
    font-size: 1.8rem;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .ad-banner { max-width: 100%; min-height: 60px; }
    .ad-banner img { max-height: 60px; }
    .ad-sidebar { width: 100%; min-height: 200px; }
}

/* ===== AI 智能客服 ===== */
.ai-chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(245, 87, 108, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fabPulse 3s ease-in-out infinite;
}

.ai-chat-fab:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(245, 87, 108, 0.6);
}

.ai-chat-fab.active {
    transform: rotate(90deg) scale(0.9);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: none;
}

.ai-chat-fab i {
    font-size: 1.6rem;
    color: white;
    transition: transform 0.3s ease;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(245, 87, 108, 0.5); }
    50% { box-shadow: 0 6px 36px rgba(245, 87, 108, 0.7), 0 0 0 8px rgba(245, 87, 108, 0.12); }
}

/* 聊天窗口 */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 9998;
    width: 390px;
    max-height: 560px;
    border-radius: var(--border-radius);
    background: rgba(15, 15, 35, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-window.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

/* 聊天头部 */
.ai-chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(245, 87, 108, 0.2) 100%);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-chat-header-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.ai-chat-header-info p {
    font-size: 0.75rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-chat-header-info p::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 消息区域 */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    max-height: 360px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* 单条消息 */
.ai-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    animation: msgIn 0.3s ease-out;
}

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

.ai-msg.bot {
    align-self: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-bottom-left-radius: 4px;
}

.ai-msg.user {
    align-self: flex-end;
    background: var(--secondary-gradient);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-msg.bot a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 快捷问题 */
.ai-quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ai-quick-btn {
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ai-quick-btn:hover {
    background: var(--secondary-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
}

/* 输入区域 */
.ai-chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 15, 35, 0.5);
}

.ai-chat-input input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.ai-chat-input input::placeholder {
    color: rgba(255,255,255,0.35);
}

.ai-chat-input input:focus {
    border-color: var(--accent-purple);
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ai-chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.ai-chat-send i {
    color: white;
    font-size: 0.9rem;
}

/* 正在输入动画 */
.ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
}

.ai-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
    animation: typingDot 1.4s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1.1); }
}

/* 响应式 */
@media (max-width: 480px) {
    .ai-chat-window {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 90px;
        max-height: 70vh;
    }
    .ai-chat-fab {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .ai-chat-fab i { font-size: 1.3rem; }
}

/* ===== 首页用户登录卡片 ===== */
.user-login-card {
    position: relative;
    margin-left: auto;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--secondary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
}

/* 登录面板 */
.login-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.close-btn:hover {
    color: white;
}

.login-panel-body {
    padding: 20px;
}

.oauth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.oauth-btn:hover {
    transform: translateY(-2px);
}

.oauth-btn.btn-github:hover { background: #333; border-color: #333; }
.oauth-btn.btn-google:hover { background: #ea4335; border-color: #ea4335; }

.divider {
    text-align: center;
    position: relative;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--glass-border);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.login-panel-body input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
    outline: none;
}

.login-panel-body input:focus {
    border-color: var(--accent-purple);
}

/* 用户已登录状态 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
}

.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
}

.user-info span {
    font-weight: 600;
    font-size: 0.9rem;
}

.logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 8px;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: var(--accent-pink);
}

/* 响应式 */
@media (max-width: 768px) {
    .user-login-card {
        position: absolute;
        top: 16px;
        right: 70px;
    }
    .login-panel {
        width: 280px;
        right: -10px;
    }
    .user-info span {
        display: none;
    }
}

/* ===== 评论区样式 ===== */
.comments-section {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.comments-section h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-section h2 i {
    color: var(--accent-purple);
}

.comment-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
}

/* 评论认证区域 */
.comment-auth {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

.comment-auth-tip {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.comment-auth-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.comment-auth-buttons button {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-auth-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-github { border-color: #333; }
.btn-github:hover { background: #333; }

.btn-google { border-color: #ea4335; }
.btn-google:hover { background: #ea4335; }

.btn-email { border-color: var(--accent-purple); }
.btn-email:hover { background: var(--accent-purple); }

.comment-auth-form {
    margin-top: 16px;
}

.comment-auth-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
    outline: none;
}

.comment-auth-form input:focus {
    border-color: var(--accent-purple);
}

.auth-form-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.auth-form-btns button {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
}

.comment-user-info span {
    flex: 1;
    font-weight: 600;
}

.btn-logout {
    padding: 6px 16px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* 评论表单 */
.comment-form {
    display: none;
    margin: 20px 0;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
    margin-bottom: 12px;
}

.comment-form textarea:focus {
    border-color: var(--accent-purple);
}

.comment-form button {
    padding: 12px 32px;
    border-radius: 50px;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 评论列表 */
.comments-list {
    margin-top: 24px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--accent-cyan);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 16px;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-action-btn:hover {
    color: var(--accent-cyan);
}

.comment-action-btn.delete:hover {
    color: var(--accent-pink);
}

/* 回复表单 */
.reply-form {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.reply-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: white;
    font-size: 0.85rem;
    resize: vertical;
    margin-bottom: 8px;
}

.reply-form button {
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--accent-purple);
    border: none;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
}

/* 评论状态 */
.comment-loading, .comment-empty, .comment-error {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.comment-loading i {
    color: var(--accent-purple);
    font-size: 1.5rem;
}

.comment-error {
    color: var(--accent-pink);
}

/* 消息提示 */
.comment-message {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

.comment-message.success {
    background: rgba(67, 233, 123, 0.15);
    border: 1px solid rgba(67, 233, 123, 0.3);
    color: var(--accent-green);
}

.comment-message.error {
    background: rgba(245, 87, 108, 0.15);
    border: 1px solid rgba(245, 87, 108, 0.3);
    color: var(--accent-pink);
}

.comment-message.info {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-cyan);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式 */
@media (max-width: 768px) {
    .comment-auth-buttons {
        flex-direction: column;
    }
    .auth-form-btns {
        flex-wrap: wrap;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 24px;
        top: 16px;
    }
    
    nav {
        width: 100%;
        display: none;
        margin-top: 16px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 8px;
    }
    
    nav ul li a {
        display: block;
        padding: 14px 20px;
        border-radius: 12px;
        background: var(--card-bg);
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== 语言切换链接 ===== */
#langSwitchBtn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

#langSwitchBtn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 性能优化 ===== */

/* 字体加载优化：使用系统字体无需额外加载，添加font-display */
@font-face {
    font-family: 'system-ui-fallback';
    src: local('PingFang SC'), local('Microsoft YaHei'), local('Segoe UI');
    font-display: swap;
}

/* 图片渲染优化 */
img {
    content-visibility: auto;
    contain-intrinsic-size: auto 300px;
}

/* 减少不必要的重绘 */
.card, .review-card, .content-card, .brand-section, .detail-section {
    will-change: transform;
    contain: layout style;
}

/* 长列表内容延迟渲染 */
.review-list > .review-card:nth-child(n+4),
.news-list > *:nth-child(n+6) {
    content-visibility: auto;
    contain-intrinsic-size: auto 200px;
}

/* 降低动画偏好用户的动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .review-card:hover, .card:hover, .brand-section:hover {
        transform: none !important;
    }
}

/* 打印样式优化 */
@media print {
    header, footer, .ai-chat-fab, .ad-slot, .ad-banner, .ad-inline, .ad-sidebar {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
