/*
Theme Name: 正大国际期货主题
Theme URI: https://les-vitraux-de-caro.com
Description: 正大国际期货香港持牌期货经纪商
Version: 1.0
Author: zhengda
*/

/* Reset */
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Microsoft YaHei','PingFang SC',sans-serif;color:#333;line-height:1.6;font-size:15px}
a{text-decoration:none;color:#003399}
a:hover{color:#ff6600}
img{max-width:100%;height:auto}

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

/* Header */
.site-header{background:linear-gradient(135deg,#001a4d 0%,#003399 100%);color:#fff;position:sticky;top:0;z-index:1000;box-shadow:0 2px 10px rgba(0,0,0,0.3)}
.top-bar{background:rgba(0,0,0,0.2);padding:6px 0;font-size:13px;border-bottom:1px solid rgba(255,255,255,0.1)}
.top-bar .container{display:flex;justify-content:space-between;align-items:center}
.top-bar-info span{margin-right:20px;opacity:0.8}
.top-bar-info i{margin-right:4px}
.top-bar-license{color:#ffcc00;font-weight:bold;font-size:13px}
.main-nav{background:#002d6e;border-bottom:2px solid #ffcc00}
.main-nav .container{display:flex;justify-content:space-between;align-items:center;height:58px}
.logo{font-size:22px;font-weight:800;color:#fff}
.logo span{color:#ffcc00}
.nav-menu{display:flex;list-style:none;gap:0}
.nav-menu li{position:relative}
.nav-menu li a{display:block;padding:18px 16px;color:#fff;font-size:14px;font-weight:600;transition:background 0.3s;white-space:nowrap}
.nav-menu li a:hover,.nav-menu li.current-menu-item a{background:#ff6600;color:#fff}
.nav-menu li ul{display:none;position:absolute;top:100%;left:0;background:#fff;min-width:200px;box-shadow:0 8px 24px rgba(0,0,0,0.15);z-index:999;border-top:3px solid #ff6600}
.nav-menu li:hover ul{display:block}
.nav-menu li ul li a{padding:12px 16px;color:#333;font-weight:400;border-bottom:1px solid #eee}
.nav-menu li ul li a:hover{background:#f5f5f5;color:#ff6600}

/* Hero Banner */
.hero-banner{background:linear-gradient(135deg,#001a4d 0%,#003399 50%,#001a4d 100%);padding:80px 0;text-align:center;color:#fff;position:relative;overflow:hidden}
.hero-banner::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:url('data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22 opacity=%220.05%22>◈</text></svg>') repeat;pointer-events:none}
.hero-banner h1{font-size:2.5rem;margin-bottom:16px;font-weight:800}
.hero-banner p{font-size:1.1rem;opacity:0.9;max-width:800px;margin:0 auto 30px;line-height:1.8}
.hero-banner .license-badge{display:inline-block;background:#ffcc00;color:#001a4d;padding:6px 20px;border-radius:20px;font-weight:700;font-size:14px;margin-bottom:20px}
.hero-btn{display:inline-block;background:#ff6600;color:#fff;padding:14px 40px;border-radius:4px;font-size:16px;font-weight:700;transition:all 0.3s}
.hero-btn:hover{background:#e55a00;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,102,0,0.4)}
.hero-btn-outline{display:inline-block;border:2px solid #fff;color:#fff;padding:14px 40px;border-radius:4px;font-size:16px;font-weight:700;transition:all 0.3s;margin-left:12px}
.hero-btn-outline:hover{background:#fff;color:#003399}
.hero-stats{display:flex;justify-content:center;gap:60px;margin-top:40px;padding-top:30px;border-top:1px solid rgba(255,255,255,0.15)}
.hero-stat{text-align:center}
.hero-stat-num{font-size:2rem;font-weight:800;color:#ffcc00}
.hero-stat-label{font-size:13px;opacity:0.8;margin-top:4px}

/* Section */
.section{padding:60px 0}
.section-title{text-align:center;font-size:1.8rem;font-weight:800;color:#001a4d;margin-bottom:10px}
.section-subtitle{text-align:center;color:#666;font-size:15px;margin-bottom:40px;max-width:700px;margin-left:auto;margin-right:auto}
.section-bg{background:#f8f9fa}

/* Features */
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.feature-card{background:#fff;padding:30px;border-radius:8px;text-align:center;box-shadow:0 2px 12px rgba(0,0,0,0.06);transition:all 0.3s;border-bottom:3px solid transparent}
.feature-card:hover{border-bottom-color:#ff6600;transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.1)}
.feature-icon{width:64px;height:64px;margin:0 auto 16px;background:linear-gradient(135deg,#003399,#001a4d);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:28px;color:#fff}
.feature-card h3{font-size:16px;color:#001a4d;margin-bottom:8px}
.feature-card p{font-size:13px;color:#666;line-height:1.6}

/* Products */
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.product-card{background:#fff;padding:25px;border-radius:8px;border:1px solid #e8e8e8;transition:all 0.3s}
.product-card:hover{box-shadow:0 4px 16px rgba(0,0,0,0.1);border-color:#ff6600}
.product-card h3{color:#003399;font-size:16px;margin-bottom:10px;padding-bottom:10px;border-bottom:2px solid #ff6600;display:inline-block}
.product-card ul{list-style:none}
.product-card ul li{padding:6px 0;font-size:13px;color:#555;position:relative;padding-left:16px}
.product-card ul li::before{content:'▸';position:absolute;left:0;color:#ff6600}

/* Processes */
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.process-step{text-align:center;position:relative}
.process-step::after{content:'→';position:absolute;right:-15px;top:30px;font-size:24px;color:#ffcc00;font-weight:bold}
.process-step:last-child::after{display:none}
.process-num{width:50px;height:50px;background:linear-gradient(135deg,#ff6600,#ff9933);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;font-size:20px;font-weight:800;color:#fff}
.process-step h4{font-size:15px;color:#001a4d;margin-bottom:6px}
.process-step p{font-size:13px;color:#666}

/* About */
.about-content{background:#fff;padding:40px;border-radius:8px;border-left:4px solid #ff6600;box-shadow:0 2px 12px rgba(0,0,0,0.06)}
.about-content p{margin-bottom:16px;line-height:1.8;font-size:14px;color:#555}
.about-highlights{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}
.about-highlight{display:flex;align-items:center;gap:8px;font-size:14px;color:#001a4d;font-weight:600}
.about-highlight::before{content:'✓';display:inline-flex;width:22px;height:22px;background:#ff6600;color:#fff;border-radius:50%;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}

/* Footer */
.site-footer{background:#001a4d;color:#ccc;padding:50px 0 0;font-size:13px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px;margin-bottom:30px}
.footer-col h4{color:#fff;font-size:15px;margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid #ffcc00;display:inline-block}
.footer-col p{line-height:1.8;font-size:13px}
.footer-col ul{list-style:none}
.footer-col ul li{padding:5px 0}
.footer-col ul li a{color:#aaa;font-size:13px;transition:color 0.3s}
.footer-col ul li a:hover{color:#ffcc00}
.footer-bottom{background:rgba(0,0,0,0.3);padding:20px 0;margin-top:30px;text-align:center;font-size:12px;color:#888}
.footer-bottom a{color:#ffcc00}
.footer-bottom a:hover{color:#fff}
.risk-warning{background:#fff3e0;border:1px solid #ffcc02;padding:16px 20px;border-radius:4px;margin-bottom:20px;font-size:12px;color:#666;line-height:1.7}

/* Posts */
/* Page */
.page-content{padding:40px 20px}
.page-content h1{font-size:2rem;color:#001a4d;margin-bottom:20px;text-align:center}
.page-content .entry-content{max-width:900px;margin:0 auto;line-height:1.8}
.page-content .entry-content p{margin-bottom:16px}

/* Utils */
.text-center{text-align:center}
.mt-20{margin-top:20px}
.mb-20{margin-bottom:20px}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.post-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.post-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}
.post-card-body h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}
.post-card-body h3 a {
    color: #003399;
    font-weight: 700;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-body h3 a:hover {
    color: #ff6600;
}
.post-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.post-excerpt, .read-more {
    display: none;
}

/* Post excerpt preview */
.post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 39px;
}
.read-more {
    display: inline-block;
    margin-top: 8px;
    color: #ff6600;
    font-size: 13px;
    font-weight: 600;
}

/* Single post / article page */
.page-content {
    padding: 40px 0;
}
.page-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.post-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.post-header h1 {
    font-size: 1.8rem;
    color: #001a4d;
    line-height: 1.3;
    margin-bottom: 8px;
}
.post-meta {
    font-size: 13px;
    color: #999;
}
.entry-content {
    line-height: 1.8;
    font-size: 15px;
    color: #333;
    max-width: 900px;
}
.entry-content p {
    margin-bottom: 16px;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
