/* ============================================
   TT Signal · 海龟交易 — 网站样式
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --text-dark: #0f172a;
    --text-mid: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-mid: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --border: #e2e8f0;
    --border-dark: #334155;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-large { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-white);
    box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--primary-dark);
    border: 2px solid var(--primary-light);
}
.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-outline-light {
    background: rgba(255,255,255,0.1);
    color: var(--bg-white);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.8);
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo-sep { color: var(--text-muted); margin: 0 4px; }
.logo-cn { color: var(--text-dark); font-weight: 700; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover { color: var(--primary); }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-menu a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ============================================
   Banner轮播区
   ============================================ */
.banner-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.banner-slides {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-bg-1 {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
}
.banner-bg-1::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(59,130,246,0.3) 0%, transparent 50%);
}

.banner-bg-2 {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
}
.banner-bg-2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(16,185,129,0.2) 0%, transparent 50%);
}

.banner-bg-3 {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
}
.banner-bg-3::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 60% 40%, rgba(245,158,11,0.2) 0%, transparent 50%);
}

.banner-bg-4 {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
}
.banner-bg-4::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(16,185,129,0.25) 0%, transparent 50%);
}

.banner-content {
    position: relative;
    z-index: 3;
    color: var(--bg-white);
    max-width: 700px;
    padding-top: 60px;
}

.banner-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.banner-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.banner-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.95;
}

.banner-desc {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.8;
}

.text-highlight {
    color: var(--accent);
    font-weight: 700;
}

.banner-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Banner指示器 */
.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.banner-dot.active {
    background: var(--bg-white);
    width: 32px;
    border-radius: 6px;
}

/* Banner箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--bg-white);
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.banner-prev { left: 24px; }
.banner-next { right: 24px; }

/* ============================================
   通用Section样式
   ============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* ============================================
   免费使用活动区
   ============================================ */
.free-use-section {
    background: var(--bg-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.step-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 48px;
    font-weight: 800;
    color: var(--bg-mid);
    line-height: 1;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* 扣费说明 */
.deduction-info {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.deduction-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.deduction-desc {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 32px;
}

.deduction-examples {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.deduction-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--bg-light);
    transition: var(--transition);
}

.deduction-item.highlight {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.05));
    border: 2px solid rgba(16,185,129,0.2);
}

.deduction-volume {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.deduction-item.highlight .deduction-volume {
    color: var(--secondary);
}

.deduction-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 12px;
}

.deduction-bar {
    height: 8px;
    background: var(--bg-mid);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.deduction-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.deduction-item.highlight .deduction-fill {
    background: linear-gradient(90deg, var(--secondary), #34d399);
}

/* 经纪商折叠 */
.broker-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-trigger:hover {
    border-color: var(--primary-light);
}

.accordion-trigger.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-icon {
    transition: var(--transition);
    font-size: 20px;
    color: var(--primary);
}

.accordion-trigger.active .accordion-icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.broker-table {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.broker-table table {
    width: 100%;
    border-collapse: collapse;
}

.broker-table th {
    background: var(--bg-light);
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.broker-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
}

.broker-table tr:last-child td {
    border-bottom: none;
}

.broker-highlight td {
    background: rgba(59,130,246,0.05);
    font-weight: 600;
}

/* ============================================
   系统详细介绍区
   ============================================ */
.system-detail-section {
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* 使用步骤 */
.usage-steps {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-bottom: 60px;
}

.usage-steps h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.usage-step {
    text-align: center;
}

.usage-step-num {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.usage-step-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.usage-step-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.screenshot-placeholder {
    background: var(--bg-mid);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.screenshot-placeholder span {
    font-size: 14px;
    font-weight: 500;
}

/* 视频区 */
.video-section h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.video-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.video-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   量化跟单区
   ============================================ */
.copytrading-section {
    background: var(--bg-light);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.plan-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-popular {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(59,130,246,0.1);
}

.plan-popular::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.plan-header {
    margin-bottom: 20px;
}

.plan-header h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

.plan-tag-hot {
    background: var(--accent);
    color: var(--bg-white);
}

.plan-price {
    margin-bottom: 24px;
}

.plan-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 15px;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* ============================================
   免费工具区
   ============================================ */
.free-tools-section {
    background: var(--bg-white);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tool-card {
    background: linear-gradient(135deg, var(--bg-light), var(--bg-mid));
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tool-card:hover {
    background: var(--bg-white);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.tool-icon {
    font-size: 44px;
    margin-bottom: 16px;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.tool-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============================================
   FAQ折叠区
   ============================================ */
.faq-section {
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--primary);
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer.active {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-mid);
    line-height: 1.8;
    font-size: 15px;
}

.faq-answer a {
    color: var(--primary);
    font-weight: 600;
}

.faq-contact-link {
    margin-top: 8px;
    padding: 12px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--primary) !important;
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--bg-white);
}
.footer-brand .logo-cn { color: var(--bg-white); }
.footer-brand .logo-sep { color: var(--text-muted); }

.footer-brand p {
    opacity: 0.7;
    margin-top: 6px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    opacity: 0.7;
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover { opacity: 1; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 13px;
    margin: 4px 0;
}

/* ============================================
   FAQ浮窗
   ============================================ */
.faq-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.faq-float-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59,130,246,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--bg-white);
}

.faq-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(59,130,246,0.5);
}

.faq-float-icon {
    font-size: 24px;
    line-height: 1;
}

.faq-float-label {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
}

/* FAQ浮窗面板 */
.faq-float-panel {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.faq-float-panel.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-white);
}

.faq-panel-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.faq-panel-close {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: var(--transition);
}

.faq-panel-close:hover { opacity: 1; }

.faq-panel-search {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.faq-panel-search input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.faq-panel-search input:focus {
    border-color: var(--primary);
}

.faq-panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.faq-tab {
    flex: 1;
    padding: 12px 8px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.faq-tab:hover {
    color: var(--primary);
}

.faq-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.faq-panel-body {
    flex: 1;
    overflow-y: auto;
    max-height: 380px;
}

.faq-tab-content {
    display: none;
    padding: 12px;
}

.faq-tab-content.active {
    display: block;
}

.faq-quick-item {
    margin-bottom: 8px;
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-quick-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    border-radius: var(--radius);
}

.faq-quick-q:hover {
    background: var(--bg-mid);
}

.faq-quick-q .faq-icon {
    font-size: 18px;
}

.faq-quick-q.active .faq-icon {
    transform: rotate(45deg);
}

.faq-quick-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-quick-a.active {
    max-height: 200px;
}

.faq-quick-a p {
    padding: 12px 16px;
    color: var(--text-mid);
    font-size: 13px;
    line-height: 1.7;
}

.faq-quick-a a {
    color: var(--primary);
    font-weight: 600;
}

.faq-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.faq-panel-footer p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .deduction-examples {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-subtitle {
        font-size: 18px;
    }
    
    .banner-desc {
        font-size: 14px;
    }
    
    .banner-buttons {
        flex-direction: column;
    }
    
    .banner-buttons .btn {
        width: 100%;
    }
    
    .banner-arrow {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .steps-grid,
    .features-grid,
    .tools-grid,
    .video-grid,
    .plans-grid,
    .steps-row {
        grid-template-columns: 1fr;
    }
    
    .deduction-examples {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .usage-steps {
        padding: 28px 20px;
    }
    
    .deduction-info {
        padding: 28px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* FAQ浮窗在手机上全宽 */
    .faq-float-panel {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        bottom: 90px;
        max-height: 70vh;
    }
    
    .faq-float {
        bottom: 20px;
        right: 20px;
    }
    
    .faq-float-btn {
        width: 56px;
        height: 56px;
    }
    
    .broker-table {
        overflow-x: auto;
    }
    
    .broker-table table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 22px;
    }
    
    .deduction-examples {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
}
