/* GPX Data Analyzer - 港美股开户指南 - 深色金融主题 */
:root {
  --bg-primary: #0b1120;
  --bg-secondary: #111d32;
  --bg-card: #162033;
  --bg-sidebar: #131b2c;
  --text-primary: #e8eaed;
  --text-secondary: #8b95a5;
  --text-muted: #5e6a7a;
  --gold: #d4a843;
  --gold-light: #e8c35a;
  --gold-dark: #b08c2a;
  --border: #1e2d45;
  --link: #5b9dd9;
  --link-hover: #7db5ef;
  --green: #34d399;
  --red: #f87171;
  --tag-bg: #1a2a42;
  --shadow: rgba(0,0,0,0.3);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;background:var(--bg-primary);color:var(--text-primary);line-height:1.8;font-size:16px}
a{color:var(--link);text-decoration:none;transition:color .2s}
a:hover{color:var(--link-hover)}
img{max-width:100%;height:auto}
/* Header */
.site-header{background:var(--bg-secondary);border-bottom:2px solid var(--gold-dark);padding:0;position:sticky;top:0;z-index:100}
.header-inner{max-width:1200px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between}
.site-logo{font-size:22px;font-weight:700;color:var(--gold)}
.site-logo span{color:var(--text-primary);font-weight:400}
.site-nav{display:flex;gap:24px;align-items:center}
.site-nav a{color:var(--text-secondary);font-size:15px;padding:6px 0;border-bottom:2px solid transparent;transition:all .2s}
.site-nav a:hover,.site-nav a.active{color:var(--gold);border-bottom-color:var(--gold)}
.nav-toggle{display:none;background:none;border:none;color:var(--text-primary);font-size:24px;cursor:pointer}
/* Breadcrumb */
.breadcrumb{max-width:1200px;margin:0 auto;padding:14px 20px;font-size:13px;color:var(--text-muted)}
.breadcrumb a{color:var(--text-secondary)}
.breadcrumb a:hover{color:var(--gold)}
.breadcrumb span{margin:0 6px}
/* Layout */
.container{max-width:1200px;margin:0 auto;padding:0 20px 40px}
.content-wrapper{display:flex;gap:30px;align-items:flex-start}
.main-content{flex:1;min-width:0}
.sidebar{width:320px;flex-shrink:0;position:sticky;top:80px}
/* Article */
.article-header{margin-bottom:30px}
.article-header h1{font-size:28px;line-height:1.4;color:var(--text-primary);margin-bottom:12px}
.article-meta{display:flex;gap:16px;font-size:13px;color:var(--text-muted);flex-wrap:wrap}
.article-meta .tag{background:var(--tag-bg);color:var(--gold);padding:2px 10px;border-radius:3px;font-size:12px}
.article-body{background:var(--bg-card);border-radius:8px;padding:32px;border:1px solid var(--border)}
.article-body h2{font-size:22px;color:var(--gold);margin:28px 0 16px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.article-body h2:first-child{margin-top:0}
.article-body h3{font-size:18px;color:var(--text-primary);margin:22px 0 12px}
.article-body p{margin-bottom:16px;color:var(--text-secondary);line-height:1.9}
.article-body ul,.article-body ol{margin:12px 0 16px 24px;color:var(--text-secondary)}
.article-body li{margin-bottom:8px;line-height:1.7}
.article-body strong{color:var(--text-primary)}
.article-body em{color:var(--gold-light);font-style:normal}
/* Tables */
.article-body table{width:100%;border-collapse:collapse;margin:16px 0 24px;font-size:14px}
.article-body th{background:var(--bg-secondary);color:var(--gold);padding:12px 14px;text-align:left;border:1px solid var(--border);font-weight:600}
.article-body td{padding:10px 14px;border:1px solid var(--border);color:var(--text-secondary)}
.article-body tr:hover td{background:rgba(212,168,67,0.05)}
/* Highlight Box */
.highlight-box{background:rgba(212,168,67,0.08);border-left:4px solid var(--gold);padding:16px 20px;margin:20px 0;border-radius:0 6px 6px 0}
.highlight-box p{margin-bottom:8px}
.highlight-box p:last-child{margin-bottom:0}
.warning-box{background:rgba(248,113,113,0.08);border-left:4px solid var(--red);padding:16px 20px;margin:20px 0;border-radius:0 6px 6px 0}
.tip-box{background:rgba(52,211,153,0.08);border-left:4px solid var(--green);padding:16px 20px;margin:20px 0;border-radius:0 6px 6px 0}
/* Sidebar */
.sidebar-widget{background:var(--bg-sidebar);border:1px solid var(--border);border-radius:8px;padding:20px;margin-bottom:20px}
.sidebar-widget h3{font-size:16px;color:var(--gold);margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.sidebar-widget ul{list-style:none}
.sidebar-widget li{padding:8px 0;border-bottom:1px solid rgba(30,45,69,0.5)}
.sidebar-widget li:last-child{border-bottom:none}
.sidebar-widget li a{color:var(--text-secondary);font-size:14px;display:block;transition:all .2s}
.sidebar-widget li a:hover{color:var(--gold);padding-left:6px}
.sidebar-widget .hot-tag{display:inline-block;background:var(--tag-bg);color:var(--text-secondary);padding:4px 10px;margin:3px;border-radius:3px;font-size:13px;transition:all .2s}
.sidebar-widget .hot-tag:hover{background:var(--gold-dark);color:#fff}
/* Related Articles */
.related-section{margin-top:40px}
.related-section h2{font-size:20px;color:var(--gold);margin-bottom:20px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.related-card{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:20px;transition:all .2s}
.related-card:hover{border-color:var(--gold-dark);transform:translateY(-2px);box-shadow:0 4px 12px var(--shadow)}
.related-card h3{font-size:15px;color:var(--text-primary);margin-bottom:8px}
.related-card h3 a{color:var(--text-primary)}
.related-card h3 a:hover{color:var(--gold)}
.related-card p{font-size:13px;color:var(--text-muted);line-height:1.6}
/* Footer */
.site-footer{background:var(--bg-secondary);border-top:1px solid var(--border);padding:40px 20px 24px;margin-top:60px}
.footer-inner{max-width:1200px;margin:0 auto}
.footer-links{display:flex;flex-wrap:wrap;gap:40px;margin-bottom:30px}
.footer-col h4{color:var(--gold);font-size:15px;margin-bottom:12px}
.footer-col a{display:block;color:var(--text-muted);font-size:13px;padding:3px 0;transition:color .2s}
.footer-col a:hover{color:var(--gold)}
.footer-bottom{border-top:1px solid var(--border);padding-top:20px;text-align:center;font-size:12px;color:var(--text-muted)}
/* Home Page */
.hero{text-align:center;padding:50px 20px;background:linear-gradient(180deg,var(--bg-secondary) 0%,var(--bg-primary) 100%)}
.hero h1{font-size:32px;color:var(--text-primary);margin-bottom:12px}
.hero h1 em{color:var(--gold);font-style:normal}
.hero p{font-size:16px;color:var(--text-secondary);max-width:680px;margin:0 auto 24px}
.hero-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.hero-tags a{background:var(--tag-bg);color:var(--gold);padding:6px 16px;border-radius:20px;font-size:14px;border:1px solid var(--border);transition:all .2s}
.hero-tags a:hover{background:var(--gold-dark);color:#fff;border-color:var(--gold-dark)}
.section-title{font-size:22px;color:var(--text-primary);margin:40px 0 20px;padding-left:14px;border-left:4px solid var(--gold)}
.article-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:20px;margin-bottom:30px}
.article-card{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:24px;transition:all .2s}
.article-card:hover{border-color:var(--gold-dark);transform:translateY(-2px);box-shadow:0 6px 16px var(--shadow)}
.article-card .card-tag{font-size:12px;color:var(--gold);background:var(--tag-bg);padding:2px 8px;border-radius:3px;display:inline-block;margin-bottom:10px}
.article-card h3{font-size:17px;margin-bottom:10px}
.article-card h3 a{color:var(--text-primary)}
.article-card h3 a:hover{color:var(--gold)}
.article-card p{font-size:14px;color:var(--text-muted);line-height:1.6}
/* Category Page */
.category-header{padding:30px 0;margin-bottom:20px;border-bottom:1px solid var(--border)}
.category-header h1{font-size:28px;color:var(--text-primary);margin-bottom:8px}
.category-header p{color:var(--text-secondary)}
/* FAQ */
.faq-item{background:var(--bg-card);border:1px solid var(--border);border-radius:8px;padding:20px;margin-bottom:12px}
.faq-item h3{color:var(--gold);font-size:16px;margin-bottom:10px}
.faq-item p{color:var(--text-secondary);font-size:14px}
/* Steps */
.step-list{counter-reset:step}
.step-item{counter-increment:step;padding:16px 16px 16px 56px;position:relative;margin-bottom:12px;background:var(--bg-card);border-radius:6px;border:1px solid var(--border)}
.step-item::before{content:counter(step);position:absolute;left:16px;top:16px;width:28px;height:28px;background:var(--gold);color:var(--bg-primary);border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.step-item h4{color:var(--text-primary);margin-bottom:6px}
.step-item p{color:var(--text-secondary);font-size:14px;margin:0}
/* Responsive */
@media(max-width:900px){
  .content-wrapper{flex-direction:column}
  .sidebar{width:100%;position:static}
  .article-grid{grid-template-columns:1fr}
  .related-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .site-nav{display:none;position:absolute;top:56px;left:0;right:0;background:var(--bg-secondary);flex-direction:column;padding:16px 20px;border-bottom:2px solid var(--gold-dark);gap:12px}
  .site-nav.open{display:flex}
  .nav-toggle{display:block}
  .article-header h1{font-size:22px}
  .article-body{padding:20px}
  .hero h1{font-size:24px}
  .header-inner{flex-wrap:wrap}
}
