/*
Theme Name: Forex Rebate
Theme URI: https://example.com
Author: Your Name
Version: 1.0
Text Domain: forexrebate
*/

/* =========================
CSS Variables
========================= */

:root{

```
--primary:#3897e6;
--primary-hover:#2f86d2;

--success:#22c55e;
--warning:#f59e0b;
--danger:#ef4444;

--text:#1e293b;
--text-light:#64748b;
--text-muted:#94a3b8;

--bg:#ffffff;
--bg-light:#f8fafc;
--bg-gray:#f1f5f9;

--border:#e2e8f0;

--radius:12px;
--radius-sm:8px;
--radius-lg:18px;

--shadow:
0 4px 20px rgba(0,0,0,.05);

--container:1280px;

--transition:.3s ease;
```

}

/* =========================
Reset
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
background:var(--bg);
color:var(--text);
font-size:16px;
line-height:1.8;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Arial,
sans-serif;
}

ul,
ol{
list-style:none;
}

img{
max-width:100%;
height:auto;
display:block;
}

a{
color:var(--primary);
text-decoration:none;
transition:var(--transition);
}

a:hover{
color:var(--primary-hover);
}

button,
input,
textarea,
select{
font:inherit;
}

/* =========================
Layout
========================= */

.container{
width:100%;
max-width:var(--container);
margin:auto;
padding:0 20px;
}

.section{
padding:80px 0;
}

.section-title{
font-size:36px;
margin-bottom:15px;
text-align:center;
}

.section-desc{
color:var(--text-light);
text-align:center;
margin-bottom:40px;
}

/* =========================
Typography
========================= */

h1,h2,h3,h4,h5,h6{
font-weight:700;
line-height:1.4;
margin-bottom:15px;
}

h1{
font-size:42px;
}

h2{
font-size:32px;
}

h3{
font-size:24px;
}

h4{
font-size:20px;
}

p{
margin-bottom:20px;
}

strong{
font-weight:700;
}

/* =========================
Buttons
========================= */

.btn{
display:inline-flex;
align-items:center;
justify-content:center;

```
padding:12px 24px;

border:none;

border-radius:10px;

cursor:pointer;

transition:var(--transition);
```

}

.btn-primary{
background:var(--primary);
color:#fff;
}

.btn-primary:hover{
background:var(--primary-hover);
color:#fff;
}

.btn-outline{
border:1px solid var(--primary);
color:var(--primary);
background:#fff;
}

.btn-outline:hover{
background:var(--primary);
color:#fff;
}

/* =========================
Cards
========================= */

.card{
background:#fff;
border:1px solid var(--border);
border-radius:var(--radius);
padding:24px;
box-shadow:var(--shadow);
}

.card-title{
font-size:20px;
margin-bottom:10px;
}

/* =========================
Grid
========================= */

.grid{
display:grid;
gap:24px;
}

.grid-2{
grid-template-columns:repeat(2,1fr);
}

.grid-3{
grid-template-columns:repeat(3,1fr);
}

.grid-4{
grid-template-columns:repeat(4,1fr);
}

/* =========================
Tables
========================= */

table{
width:100%;
border-collapse:collapse;
}

table th{
background:var(--primary);
color:#fff;
padding:14px;
}

table td{
border:1px solid var(--border);
padding:14px;
}

table tr:nth-child(even){
background:var(--bg-light);
}

/* =========================
Forms
========================= */

input,
textarea,
select{
width:100%;
padding:12px 15px;
border:1px solid var(--border);
border-radius:8px;
background:#fff;
}

input:focus,
textarea:focus,
select:focus{
outline:none;
border-color:var(--primary);
}

/* =========================
Header
========================= */

.site-header{
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #eef1f5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.site-header .container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.header-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* =========================
Logo
========================= */
.site-branding{
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 220px;
}

.site-logo{
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text{
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.site-tagline{
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* =========================
Navigation Layout
========================= */
.main-navigation{
    flex: 1;
    display: flex;
    justify-content: center;
}

/* WP menu root */
.main-menu{
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 22px;
}

/* =========================
Top Level Item
========================= */
.main-menu > li{
    position: relative;
}

.main-menu > li > a{
    display: inline-flex;
    align-items: center;

    padding: 10px 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;

    position: relative;
    transition: all 0.2s ease;
}

/* hover underline */
.main-menu > li > a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #2563eb;
    transition: 0.25s ease;
}

.main-menu > li > a:hover{
    color: #111827;
}

.main-menu > li > a:hover::after{
    width: 100%;
}

/* active menu */
.current-menu-item > a,
.current_page_item > a{
    color: #111827;
}

.current-menu-item > a::after,
.current_page_item > a::after{
    width: 100%;
}

/* =========================
Dropdown Level 2
========================= */
.main-menu li ul{
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 220px;
    background: #ffffff;

    border: 1px solid #eef1f5;
    border-radius: 10px;

    padding: 8px 0;
    margin: 10px 0 0;

    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.2s ease;
    z-index: 999;
}

/* show dropdown */
.main-menu li:hover > ul{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* dropdown item */
.main-menu li ul li a{
    display: block;
    padding: 10px 14px;

    font-size: 13px;
    color: #374151;
    text-decoration: none;

    transition: 0.2s ease;
}

.main-menu li ul li a:hover{
    background: #f3f4f6;
    color: #111827;
}

/* =========================
Level 3 (flyout menu)
========================= */
.main-menu li ul li{
    position: relative;
}

.main-menu li ul li ul{
    top: 0;
    left: 100%;

    margin-left: 6px;
}

/* =========================
CTA Button
========================= */
.header-action{
    display: flex;
    align-items: center;
}

.header-btn{
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;

    padding: 10px 16px;
    border-radius: 10px;

    text-decoration: none;
    transition: all 0.2s ease;

    white-space: nowrap;
}

.header-btn:hover{
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.25);
}

/* =========================
Mobile
========================= */
@media (max-width: 1024px){

    .site-tagline{
        display: none;
    }

    .main-menu{
        gap: 14px;
    }
}

@media (max-width: 768px){

    .main-navigation{
        display: none; /* 后续可升级汉堡菜单 */
    }

    .header-inner{
        height: 64px;
    }

    .header-btn{
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* =========================
Hero
========================= */

.hero{
padding:100px 0;
background:var(--bg-light);
}

.hero h1{
margin-bottom:20px;
}

.hero p{
max-width:700px;
color:var(--text-light);
}

/* =========================
Broker Cards
========================= */

.broker-card{
background:#fff;
border:1px solid var(--border);
border-radius:12px;
padding:20px;
transition:var(--transition);
}

.broker-card:hover{
transform:translateY(-3px);
box-shadow:var(--shadow);
}

/* =========================
Rankings
========================= */

.rank-badge{
display:inline-block;
padding:4px 10px;
border-radius:999px;
background:var(--primary);
color:#fff;
font-size:12px;
}

/* =========================
FAQ
========================= */

.faq-item{
border:1px solid var(--border);
border-radius:12px;
margin-bottom:15px;
overflow:hidden;
}

.faq-question{
padding:20px;
font-weight:600;
cursor:pointer;
}

.faq-answer{
padding:0 20px 20px;
color:var(--text-light);
}

/* =========================
Article
========================= */

.entry-content{
max-width:860px;
margin:auto;
}

.entry-content h2{
margin-top:50px;
}

.entry-content ul{
list-style:disc;
padding-left:20px;
margin-bottom:20px;
}

.entry-content ol{
list-style:decimal;
padding-left:20px;
margin-bottom:20px;
}

/* =========================
Sidebar
========================= */

.sidebar-widget{
background:#fff;
border:1px solid var(--border);
border-radius:12px;
padding:20px;
margin-bottom:20px;
}

/* =========================
Footer
========================= */

.site-footer{
background:#0f172a;
color:#fff;
padding:60px 0;
}

.site-footer a{
color:#cbd5e1;
}

.site-footer a:hover

/* =========================
Utility Classes
========================= */

.text-center{
text-align:center;
}

.mb-20{
margin-bottom:20px;
}

.mb-30{
margin-bottom:30px;
}

.mb-40{
margin-bottom:40px;
}

.mt-40{
margin-top:40px;
}

.bg-light{
background:var(--bg-light);
}

/* =========================
Responsive
========================= */

@media(max-width:1024px){

```
.grid-4{
    grid-template-columns:repeat(2,1fr);
}

.grid-3{
    grid-template-columns:repeat(2,1fr);
}
```

}

@media(max-width:768px){

```
h1{
    font-size:32px;
}

h2{
    font-size:26px;
}

.section{
    padding:60px 0;
}

.grid-2,
.grid-3,
.grid-4{
    grid-template-columns:1fr;
}

.header-inner{
    flex-direction:column;
    padding:15px 0;
}

.main-menu{
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}
```

}

/*
=================================
Header
=================================
*/

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid #e8eef5;
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/*
Logo
*/

.site-branding {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #3897e6;
}

.site-tagline {
    font-size: 12px;
    color: #777;
}

/*
Navigation
*/

.main-navigation ul {
    display: flex;
    align-items: left;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #333;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    transition: .2s;
}

.main-navigation a:hover {
    color: #3897e6;
}

/*
CTA
*/

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 46px;
    padding: 0 24px;

    background: #3897e6;
    color: #fff;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: .2s;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56,151,230,.25);
}

/*
Mobile
*/

@media (max-width: 992px) {

    .header-inner {
        height: auto;
        padding: 15px 0;
        flex-wrap: wrap;
        gap: 15px;
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        gap: 15px;
    }

}

/*==================================================
FOOTER
==================================================*/

/* =========================
Footer CTA（顶部引导区）
========================= */
.footer-cta{
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.footer-cta h2{
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-cta p{
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 20px;
}

.footer-cta-btn{
    display: inline-block;
    background: #fff;
    color: #1e40af;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.footer-cta-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* =========================
Footer Base
========================= */
.site-footer{
    background: #0b1220;
    color: #fff;
    padding: 60px 0 30px;
}

.site-footer .container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
Grid Layout
========================= */
.footer-grid{
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* =========================
Brand Column
========================= */
.footer-about h3{
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-about p{
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}

/* =========================
WordPress Footer Menu
========================= */
.footer-menu{
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.footer-menu li a{
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;

    transition: 0.2s ease;
    position: relative;
    padding-left: 0;
}

/* hover effect */
.footer-menu li a:hover{
    color: #fff;
    padding-left: 6px;
}

/* =========================
Risk Section
========================= */
.footer-risk{
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-risk h4{
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.85);
}

.footer-risk p{
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
}

/* =========================
Copyright
========================= */
.footer-bottom{
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
}

/* =========================
Responsive
========================= */
@media (max-width: 768px){

    .footer-grid{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-cta h2{
        font-size: 20px;
    }

    .footer-cta{
        padding: 40px 20px;
    }
}
