/* * PG电子风格 - v4.1 精调版
 * Theme: PG Soft Cyber-Immersive (Refined)
 * Updates: Normalized Line-height, Sharp Thin Lines
 */

:root {
    /* --- 核心调色板 --- */
    --bg-deep: #090510;       
    --bg-card: #1c122e;       
    
    /* 品牌色：PG标志性的活力红粉色 */
    --primary-gradient: linear-gradient(135deg, #ff0055 0%, #ff3366 100%);
    --primary-glow: rgba(255, 0, 85, 0.5);
    
    /* 金色：财富与赢家 */
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --gold-text: #ffcc00;
    
    /* 文字颜色 */
    --text-white: #ffffff;
    --text-gray: #a8a0b5; 
    
    /* 界面参数 */
    --radius-box: 16px; 
    --radius-btn: 50px;
    --header-height: 76px;
    --max-width: 1200px;
    
    /* 动效 */
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --glass: blur(20px);
}

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

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 50% 0%, #2a0e38 0%, transparent 40%),
        radial-gradient(circle at 0% 50%, rgba(20, 10, 40, 0.5) 0%, transparent 20%);
    background-attachment: fixed;
    color: var(--text-gray);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, li { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* === 布局容器 === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === 头部导航 === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(9, 5, 16, 0.9);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.logo-icon { 
    margin-right: 8px; 
    font-size: 1.6rem; 
    filter: drop-shadow(0 0 5px rgba(255,215,0,0.6));
}

/* 桌面导航 */
.desktop-nav { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}

.desktop-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.desktop-nav a:not(.nav-highlight):hover, 
.desktop-nav a.active { 
    color: var(--text-white); 
    background: rgba(255,255,255,0.05);
}

.desktop-nav .nav-highlight {
    background: var(--primary-gradient);
    color: white !important;
    padding: 10px 24px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    box-shadow: 0 4px 15px var(--primary-glow);
    margin-right: 10px;
}
.desktop-nav .nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
    filter: brightness(1.1);
}

/* === 移动端菜单 === */
.mobile-menu-trigger {
    display: none; 
    font-size: 1.6rem;
    color: var(--text-white);
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(9, 5, 16, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9999;
    flex-direction: column;
    padding: 24px;
    justify-content: flex-start; 
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
}
.logo-mobile { 
    font-size: 1.4rem; font-weight: 800; color: var(--text-white); 
}
.close-btn { 
    font-size: 2rem; cursor: pointer; color: var(--text-gray); 
}

.mobile-nav-links { display: flex; flex-direction: column; gap: 15px; }
.mobile-nav-links a {
    font-size: 1.1rem;
    color: var(--text-white);
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
}
.mobile-nav-links .mobile-cta {
    background: var(--primary-gradient);
    font-weight: 700;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.mobile-nav-links .mobile-cta-sub {
    border: 1px solid var(--gold-text);
    color: var(--gold-text);
    background: transparent;
}

/* === Hero Section === */
.hero-section {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden; 
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-white);
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 48px;
    letter-spacing: 1px;
}

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

.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
}
.primary-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px var(--primary-glow);
}

.secondary-btn {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}
.secondary-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--text-white);
}

/* === Info Section === */
.info-section { margin-bottom: 80px; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-box);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.info-card:hover {
    transform: translateY(-5px);
    border-color: #ff0055;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.info-card h3 {
    color: var(--text-white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.info-card p { color: var(--text-gray); font-size: 1rem; }

/* === Main Content === */
.section-header {
    margin: 40px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 5px solid #ff0055;
    padding-left: 20px;
}
.section-header h2 { font-size: 2rem; color: var(--text-white); line-height: 1; margin-bottom: 8px;}
.cat-desc { color: var(--gold-text); font-size: 0.9rem; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.grid-card {
    background: var(--bg-card);
    border-radius: var(--radius-box);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.grid-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 85, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.card-cover {
    height: 190px;
    background: #000;
    position: relative;
    overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.grid-card:hover .card-cover img { transform: scale(1.1); }

.card-cover.no-img {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2a0e38, #000);
}
.card-cover.no-img span {
    font-weight: 900; font-style: italic; font-size: 2rem; color: rgba(255,255,255,0.08);
}

.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta {
    display: flex; justify-content: space-between;
    font-size: 0.85rem; color: #666; margin-bottom: 12px; font-weight: 600;
}
.cat-tag { color: var(--gold-text); }

.grid-card h3 { font-size: 1.25rem; margin-bottom: 12px; line-height: 1.4; }
.grid-card h3 a { color: var(--text-white); }
.grid-card h3 a:hover { color: #ff0055; }

.excerpt { font-size: 0.95rem; color: var(--text-gray); margin-bottom: 20px; flex-grow: 1; }

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px;}
.tag-badge {
    font-size: 0.75rem; background: rgba(255,255,255,0.08); color: #aaa;
    padding: 4px 10px; border-radius: 4px;
}

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.page-btn {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border-radius: 8px;
    color: #fff; font-weight: 700;
}
.page-btn:hover { background: var(--primary-gradient); }
.page-current { display: flex; align-items: center; color: var(--gold-text); font-weight: 800; padding: 0 10px; }

/* === 文章详情页 === */
.single-post {
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius-box);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.single-header { text-align: center; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 30px; }
.single-header h1 { font-size: 2.4rem; color: var(--text-white); margin-bottom: 15px; }
.breadcrumb { font-size: 0.9rem; color: #666; margin-bottom: 20px; }

/* * Markdown Content - 修正版
 * 1. 行距改回 1.8 (Standard)
 * 2. 线条改为 1px Solid 实线，低透明度
 */
.markdown-body { 
    color: #d0d0d0; 
    font-size: 1.05rem; 
    line-height: 1.8;   /* 修正：调回正常阅读比例 */
    font-weight: 300;
}

/* 标题设置 */
.markdown-body h2 { 
    color: var(--gold-text); 
    margin-top: 2em;       /* 修正：距离适中 */
    margin-bottom: 1.2em;   
    font-size: 1.6rem; 
    
    /* 核心修改：完全参考截图，使用极淡的实线 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    padding-bottom: 15px; 
}

/* 段落设置 */
.markdown-body p { 
    margin-bottom: 1.6em; /* 修正：段落间距也收回一点 */
}

/* 分割线 HR 设置 */
.markdown-body hr {
    height: 1px;
    border: none;
    /* 核心修改：纯色实线，不再用渐变，透明度 8% */
    background: rgba(255, 255, 255, 0.08); 
    margin: 40px 0; 
}

/* 链接样式 */
.markdown-body a { 
    color: #ff0055; 
    /* 链接下划线也改为实线 */
    border-bottom: 1px solid rgba(255, 0, 85, 0.3); 
    padding-bottom: 1px;
    transition: all 0.2s;
}
.markdown-body a:hover { 
    color: white; 
    background: #ff0055; 
    border-bottom-color: transparent; 
}

.markdown-body ul, .markdown-body ol { margin-bottom: 1.6em; padding-left: 1.5em; }
.markdown-body li { margin-bottom: 0.5em; }
.markdown-body strong { color: white; font-weight: 600; }

.markdown-body img { 
    border-radius: 8px; 
    margin: 40px auto; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.markdown-body blockquote {
    border-left: 3px solid #ff0055;
    background: rgba(255, 0, 85, 0.05); /* 改回纯色背景，更干净 */
    padding: 20px 25px;
    color: #eee;
    font-style: italic;
    margin: 30px 0;
    line-height: 1.7;
}

/* Post CTA */
.post-cta {
    margin-top: 50px;
    padding: 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,0,85,0.1), transparent);
    border: 1px solid rgba(255,0,85,0.3);
    border-radius: var(--radius-box);
}
.post-cta p { font-size: 1.3rem; color: white; font-weight: 700; margin-bottom: 24px; }

.post-navigation { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.nav-prev span, .nav-next span { color: white; font-weight: 700; font-size: 1.1rem; }

/* === FAQ & Footer === */
.faq-section { margin-top: 80px; }
.faq-item { background: var(--bg-card); border-radius: 12px; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.05); }
.faq-question { padding: 20px; cursor: pointer; color: #eee; font-weight: 600; display: flex; justify-content: space-between; }
.faq-question:hover { color: var(--gold-text); }
.faq-answer { max-height: 0; overflow: hidden; background: rgba(0,0,0,0.2); transition: max-height 0.3s; }
.faq-answer p { padding: 20px; color: #bbb; }

.site-footer {
    background: #050308;
    padding: 60px 0 30px;
    margin-top: 100px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-cta { margin-bottom: 30px; display: flex; justify-content: center; gap: 20px; }
.footer-btn { padding: 12px 30px; background: #222; color: white; border-radius: 30px; font-weight: 600; }
.footer-btn:hover { background: white; color: black; }
.disclaimer { color: #444; font-size: 0.85rem; max-width: 700px; margin: 0 auto; }

/* === 响应式适配 === */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-trigger { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { flex-direction: column; padding: 0 40px; }
    .btn-glow { width: 100%; }
    .post-grid, .info-grid { grid-template-columns: 1fr; }
    .single-post { padding: 25px; }
    .single-header h1 { font-size: 1.8rem; }
    .footer-cta { flex-direction: column; padding: 0 40px; }
}

/* 404 專屬樣式 */
.error-404-container {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    margin: 40px 0;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(to bottom, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.error-animation {
    font-size: 40px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slot-icon {
    animation: bounce 2s infinite ease-in-out;
}

.slot-icon:nth-child(2) { animation-delay: 0.2s; }
.slot-icon:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.error-content h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.error-message {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.suggested-links {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.suggested-links p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 讓按鈕在手機端垂直排列 */
@media (max-width: 480px) {
    .error-actions {
        flex-direction: column;
    }
    .error-code { font-size: 80px; }
}
/* 專家評論區塊樣式 */
.vuaboss-auth-box {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.auth-header { display: flex; align-items: center; margin-bottom: 10px; }
.auth-badge { background: #f39c12; color: #000; padding: 2px 8px; font-size: 11px; font-weight: bold; border-radius: 4px; margin-right: 12px; }
.tag-intro-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed #f39c12;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 8px;
    color: #bbb;
    font-size: 14px;
    line-height: 1.6;
}