/*
Theme Name: IC 官方仿站主题
Theme URI: https://icmarostica.org
Description: IC Markets 中文站一比一仿制 (v2 - 精确还原头部尾部)
Version: 2.0
*/

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'DM Sans','Geist',-apple-system,sans-serif;color:#101828;background:#fff;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* === Header - ICMarkets 官方深蓝 === */
.site-header{background:#0b1426;position:sticky;top:0;z-index:1000}

/* Top bar - 细条 */
.top-bar{background:#0d1730;border-bottom:1px solid rgba(255,255,255,.06);padding:5px 0;font-size:11px}
.top-bar .container{display:flex;justify-content:space-between;padding:0 20px;margin:0 auto}
.top-left,.top-right{display:flex;align-items:center;gap:6px}
.top-bar a{color:rgba(255,255,255,.5);padding:3px 10px;transition:color .2s;border-right:1px solid rgba(255,255,255,.08)}
.top-bar a:last-child{border-right:none}
.top-bar a:hover{color:#fff}
.top-bonus{color:#73E355!important}
.top-lang{color:rgba(255,255,255,.5);font-size:11px;cursor:default;padding-left:6px;border-left:1px solid rgba(255,255,255,.15);margin-left:4px}
.top-cta{background:#73E355;color:#fff!important;border-radius:3px;padding:3px 12px!important;border-right:none!important}
.top-cta:hover{background:#5cbf44!important}

/* Main nav row */
.header-main{background:#0b1426;border-bottom:1px solid rgba(255,255,255,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:64px;padding:0 20px;margin:0 auto}
.header-logo{display:flex;align-items:center}
.header-logo svg{height:48px;width:auto}

/* Navigation */
.nav-main{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0}
.nav-main li{position:relative}
.nav-main a{display:block;padding:10px 14px;color:rgba(255,255,255,.85);font-size:13px;font-weight:500;transition:all .2s;white-space:nowrap}
.nav-main a:hover{color:#fff}
.nav-main .menu-item-has-children>a::after{content:"▾";margin-left:3px;font-size:9px;opacity:.6}
.nav-main .sub-menu{display:none;position:absolute;top:100%;left:0;background:#0d1730;border-radius:6px;padding:4px;min-width:160px;box-shadow:0 8px 24px rgba(0,0,0,.4);z-index:999}
.nav-main .menu-item-has-children:hover>.sub-menu{display:block}
.nav-main .sub-menu a{padding:8px 14px;font-size:12px;color:rgba(255,255,255,.7)}
.nav-main .sub-menu a:hover{color:#fff;background:rgba(255,255,255,.06);border-radius:4px}

/* Header buttons */
.header-actions{display:flex;align-items:center;gap:8px}
.btn-login{padding:7px 18px;border-radius:3px;font-size:12px;font-weight:600;color:#fff;border:1px solid rgba(255,255,255,.2);transition:all .2s}
.btn-login:hover{background:rgba(255,255,255,.08)}
.btn-start{background:#73E355;color:#fff!important;padding:8px 20px;border-radius:3px;font-size:12px;font-weight:700;transition:all .2s;letter-spacing:.3px}
.btn-start:hover{background:#5cbf44}

/* === Hero Section === */
.hero{background:#0b1426;padding:80px 0 60px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;top:0;right:0;width:50%;height:100%;background:linear-gradient(90deg,transparent,rgba(26,155,94,.03));pointer-events:none}
.hero .container{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.hero h1{font-size:40px;font-weight:700;color:#fff;margin-bottom:20px;line-height:1.2}
.hero p{font-size:16px;color:rgba(255,255,255,.6);margin-bottom:28px;max-width:480px;line-height:1.7}
.hero .features{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:28px}
.hero .features li{color:rgba(255,255,255,.8);font-size:14px;list-style:none;display:flex;align-items:center;gap:8px}
.hero .features li::before{content:"✓";color:#73E355;font-weight:700}
.hero .btn-group{display:flex;gap:14px}
.hero .btn-primary{background:#73E355;color:#fff;padding:14px 32px;border-radius:4px;font-size:15px;font-weight:700;transition:all .2s;display:inline-block}
.hero .btn-primary:hover{background:#5cbf44;transform:translateY(-1px)}
.hero .btn-secondary{background:transparent;color:#fff;padding:14px 28px;border-radius:4px;font-size:15px;font-weight:600;border:1px solid rgba(255,255,255,.2);transition:all .2s;display:inline-block}
.hero .btn-secondary:hover{background:rgba(255,255,255,.08)}
.hero .live-prices{margin-top:24px;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:rgba(255,255,255,.04);border-radius:8px;padding:16px}
.hero .price-item{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-radius:4px;font-size:13px;color:rgba(255,255,255,.7)}
.hero .price-item .pair{font-weight:600;color:#fff}
.hero .price-item .bid{color:rgba(255,255,255,.6)}
.hero .price-item .ask{color:#16a34a;font-weight:500}
.hero .price-item .spread{color:#73E355;font-weight:500}

/* Advantages */
.advantages{background:#fff;padding:80px 0}
.advantages .container{max-width:1000px;text-align:center}
.advantages h2{font-size:32px;font-weight:700;color:#0b1426;margin-bottom:16px}
.advantages>p{font-size:16px;color:#475467;max-width:600px;margin:0 auto 48px;line-height:1.7}
.adv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;text-align:left}
.adv-card{padding:24px;border-radius:8px;border:1px solid #eaecf0;transition:all .3s}
.adv-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.06);border-color:#d0d5dd}
.adv-card h3{font-size:18px;color:#0b1426;margin-bottom:8px;font-weight:600}
.adv-card p{font-size:14px;color:#475467;line-height:1.6}
.adv-card .tag{display:inline-block;background:rgba(26,155,94,.08);color:#73E355;font-size:12px;font-weight:600;padding:3px 10px;border-radius:4px;margin-bottom:12px}

/* Stats */
.stats{background:#0b1426;padding:60px 0;color:#fff}
.stats .container{max-width:1000px;display:grid;grid-template-columns:repeat(4,1fr);gap:32px;text-align:center}
.stat-item h2{font-size:36px;font-weight:800;color:#73E355;margin-bottom:6px}
.stat-item p{color:rgba(255,255,255,.5);font-size:14px}

/* Platforms */
.platforms{padding:80px 0;background:#f8f9fc}
.platforms .container{max-width:1000px;text-align:center}
.platforms h2{font-size:32px;font-weight:700;color:#0b1426;margin-bottom:48px}
.plat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.plat-card{background:#fff;border-radius:12px;padding:32px 24px;border:1px solid #eaecf0;transition:all .3s;text-align:center}
.plat-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.06);transform:translateY(-3px)}
.plat-card .logo-icon{font-size:40px;margin-bottom:12px}
.plat-card h3{font-size:17px;color:#0b1426;margin-bottom:8px;font-weight:600}
.plat-card p{font-size:13px;color:#475467;margin-bottom:16px;line-height:1.6}
.plat-card a{color:#73E355;font-weight:600;font-size:13px}

/* Markets */
.markets{padding:80px 0;background:#fff}
.markets .container{max-width:1000px;text-align:center}
.markets h2{font-size:32px;font-weight:700;color:#0b1426;margin-bottom:48px}
.mkt-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.mkt-item{padding:20px;border-radius:8px;border:1px solid #eaecf0;text-align:center;transition:all .2s}
.mkt-item:hover{border-color:#73E355;box-shadow:0 0 0 1px #73E355}
.mkt-item .icon{font-size:28px;margin-bottom:8px}
.mkt-item h4{font-size:14px;color:#0b1426;font-weight:600}

/* Steps */
.steps{padding:80px 0;background:#f8f9fc}
.steps .container{max-width:900px;text-align:center}
.steps h2{font-size:32px;font-weight:700;color:#0b1426;margin-bottom:48px}
.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.step-item{padding:24px 16px;background:#fff;border-radius:10px;border:1px solid #eaecf0}
.step-item .num{width:36px;height:36px;background:#73E355;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;margin:0 auto 12px}
.step-item h4{font-size:15px;color:#0b1426;margin-bottom:6px;font-weight:600}
.step-item p{font-size:13px;color:#475467;line-height:1.5}

/* CTA */
.cta-section{background:#0b1426;padding:60px 0;text-align:center;color:#fff}
.cta-section h2{font-size:28px;font-weight:700;margin-bottom:12px}
.cta-section p{color:rgba(255,255,255,.5);margin-bottom:28px;font-size:15px}
.cta-section .btn-group{display:flex;gap:14px;justify-content:center}
.cta-section .btn-primary{background:#73E355;color:#fff;padding:14px 36px;border-radius:4px;font-size:15px;font-weight:700;transition:all .2s}
.cta-section .btn-primary:hover{background:#5cbf44}
.cta-section .btn-secondary{background:transparent;color:#fff;padding:14px 36px;border-radius:4px;font-size:15px;font-weight:600;border:1px solid rgba(255,255,255,.2);transition:all .2s}
.cta-section .btn-secondary:hover{background:rgba(255,255,255,.08)}

/* === Footer - IC Markets 精确还原 === */
.site-footer{background:#0b1426;color:rgba(255,255,255,.5);padding:48px 0 0;font-size:13px;line-height:1.7;border-top:1px solid rgba(255,255,255,.06)}
.footer-inner{max-width:1280px;margin:0 auto;padding:0 20px}
.footer-grid{display:grid;grid-template-columns:1.8fr repeat(3,1fr);gap:32px;padding-bottom:32px;border-bottom:1px solid rgba(255,255,255,.06)}
.footer-col h4{color:#fff;font-size:13px;font-weight:600;margin-bottom:14px;text-transform:uppercase;letter-spacing:.5px}
.footer-col a{display:block;color:rgba(255,255,255,.4);margin-bottom:7px;transition:color .2s;font-size:13px}
.footer-col a:hover{color:#73E355}
.footer-disclaimer{max-width:1280px;margin:0 auto;padding:24px 0 32px;text-align:left;font-size:11px;color:rgba(255,255,255,.3);line-height:1.8}
.footer-disclaimer p{margin-bottom:8px;max-width:1000px}
.footer-disclaimer p:last-child{margin-bottom:0;text-align:center;margin-top:16px;color:rgba(255,255,255,.2)}

/* Page content */
.page-content{min-height:400px;padding:40px 0}
.cta-box{margin:20px 0;padding:20px;background:#0b1426;border-radius:10px;text-align:center}
.cta-box a{display:inline-block;background:#73E355;color:#fff;padding:14px 36px;border-radius:4px;font-size:15px;font-weight:700;text-decoration:none;transition:all .25s}
.cta-box a:hover{background:#5cbf44;transform:translateY(-2px)}

/* ========== 文章样式 ========== */

/* 文章页面 - 纯白背景 */
.page-content {
  min-height: 400px;
  background: #fff;
}

/* 文章容器 - 白底深字窄栏 */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  line-height: 1.75;
  color: #333;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
}

.entry-content h1 {
  font-size: 26px;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.entry-content h2 {
  font-size: 20px;
  color: #73E355;
  margin: 28px 0 12px;
  line-height: 1.35;
  font-weight: 600;
}

.entry-content h3 {
  font-size: 16px;
  color: #444;
  margin: 22px 0 10px;
  font-weight: 600;
}

.entry-content p {
  margin-bottom: 14px;
  color: #444;
}

.entry-content ul, .entry-content ol {
  margin: 10px 0 18px;
  padding-left: 0;
  list-style: none;
}
.entry-content ul li, .entry-content ol li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: #444;
}
.entry-content li strong {
  color: #73E355;
  font-weight: 600;
}

.entry-content a {
  color: #73E355;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover {
  color: #5cbf44;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 13px;
  border: 1px solid #e0e0e0;
}
.entry-content thead th {
  background: #73E355;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.entry-content tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  color: #444;
}
.entry-content tbody tr:nth-child(even) td {
  background: #f8fbf9;
}
.entry-content tbody tr:last-child td {
  border-bottom: none;
}

.entry-content blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 3px solid #73E355;
  background: #f8fbf9;
  border-radius: 0 6px 6px 0;
  color: #666;
}

/* ========== 文章列表页 ========== */

.articles-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.articles-page h1 {
  font-size: 24px;
  color: #222;
  margin-bottom: 24px;
  font-weight: 700;
}

.article-item {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  transition: all 0.2s ease;
}
.article-item:hover {
  border-color: #73E355;
  box-shadow: 0 2px 12px rgba(26,155,94,0.1);
}

.article-item h2 {
  margin: 0 0 6px;
}
.article-item h2 a {
  color: #222;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: block;
}
.article-item h2 a:hover {
  color: #73E355;
}

.article-item .excerpt {
  color: #888;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.article-item .meta {
  color: #aaa;
  font-size: 12px;
  margin-top: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
  .entry-content {
    padding: 16px 16px 40px;
    font-size: 14px;
  }
  .entry-content h1 { font-size: 22px; }
  .entry-content h2 { font-size: 18px; }
}

/* 文章样式结束 */

/* 文章样式结束 */

/* 首页响应式 */
@media(max-width:768px){
.top-bar{display:none}
.header-inner{height:56px;padding:0 12px}
.nav-main{display:none}
.header-actions{gap:6px}
.btn-login,.btn-start{padding:6px 12px;font-size:11px}
.hero .container{grid-template-columns:1fr}
.hero h1{font-size:28px}
.hero .features{grid-template-columns:1fr}
.adv-grid,.plat-grid,.steps-grid,.stats .container{grid-template-columns:1fr 1fr}
.footer-grid{grid-template-columns:1fr 1fr;gap:20px}
}
