/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-light: #f1f5f9;
    --text-dark: #1e293b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.nav-brand i {
    color: var(--primary-color);
}

.brand-logo {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 首页横幅 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--text-light);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,100 Q300,50 600,100 T1200,100 L1200,600 L0,600 Z" fill="rgba(0,0,0,0.1)"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* 首页大LOGO */
.hero-logo {
    margin-bottom: 2rem;
    animation: float 4s ease-in-out infinite;
}

.hero-logo svg {
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-version {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.version-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.update-date {
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 章节样式 */
.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--dark-bg);
    color: var(--text-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* 功能特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.section-dark .feature-card {
    background: var(--dark-card);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-dark .feature-card h3 {
    color: var(--text-light);
}

.feature-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: var(--success);
}

/* 截图展示 */
.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.screenshot-placeholder {
    background: var(--dark-card);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 1rem;
}

.screenshot-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

/* 下载卡片 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.download-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.download-version {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.download-info {
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.download-size {
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.download-link:hover {
    text-decoration: underline;
}

/* 系统要求 */
.system-requirements {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
}

.system-requirements h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.requirement-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.requirement-item strong {
    color: var(--primary-color);
}

/* 教程步骤 */
.tutorial-steps {
    max-width: 800px;
    margin: 3rem auto;
}

.tutorial-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.tutorial-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-note {
    background: rgba(37, 99, 235, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-note.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--warning);
}

.step-note.success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
}

.step-code {
    background: var(--dark-card);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
}

.step-tips {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.step-tips strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-tips ul {
    margin-left: 1.5rem;
}

/* 视频教程 */
.video-tutorial {
    margin-top: 4rem;
}

.video-tutorial h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.video-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.video-card h4 {
    padding: 1rem;
    font-size: 1.1rem;
}

.video-card p {
    padding: 0 1rem 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 3rem auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question i:first-child {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.faq-question span {
    flex: 1;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-toggle {
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer p, .faq-answer ul {
    padding: 0 1.5rem 1.5rem;
    opacity: 0.8;
}

.faq-answer ul {
    margin-left: 2rem;
}

/* 更新日志 */
.changelog {
    max-width: 800px;
    margin: 3rem auto;
}

.changelog-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.changelog-version {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.changelog-date {
    opacity: 0.7;
}

.changelog-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.changelog-badge.new {
    background: var(--success);
    color: white;
}

.changelog-content h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-light);
}

.changelog-content ul {
    margin-left: 1.5rem;
    opacity: 0.9;
}

.changelog-content li {
    margin-bottom: 0.5rem;
}

/* 联系卡片 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin: 0 auto 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* 免责声明 */
.disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.disclaimer h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    margin-bottom: 1rem;
}

.disclaimer-content {
    color: #856404;
}

.disclaimer-content strong {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.disclaimer-content ul {
    margin-left: 1.5rem;
}

.disclaimer-content li {
    margin-bottom: 0.5rem;
}

/* 页脚 */
.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* 语言选择器 */
.language-selector {
    margin-left: auto;
    padding-left: 2rem;
}

.language-dropdown {
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.language-dropdown:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.language-dropdown:focus {
    border-color: var(--primary-color);
}

.language-dropdown option {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 0.5rem;
}

/* RTL语言支持(阿拉伯语) */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-selector {
    margin-left: 0;
    margin-right: auto;
    padding-left: 0;
    padding-right: 2rem;
}

html[dir="rtl"] .feature-list li {
    flex-direction: row-reverse;
}

html[dir="rtl"] .footer-content {
    direction: rtl;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

html[dir="rtl"] .back-to-top {
    right: auto;
    left: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .features-grid,
    .download-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tutorial-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tutorial-step::after {
        display: none;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   合约小助手工具样式
   ======================================== */

#contract-helper {
    background: linear-gradient(135deg, #0f1115 0%, #1a1d24 100%);
    color: #e5e9ef;
}

#contract-helper .section-title {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contract-helper .section-subtitle {
    color: #9aa4af;
}

.helper-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.helper-card {
    background: #181b20;
    border: 1px solid #2a2f37;
    border-radius: 12px;
    padding: 24px;
}

.helper-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.helper-card-title i {
    color: #3d6bff;
}

/* 表单样式 - 使用CSS Grid确保布局正确 */
.helper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.helper-grid-item {
    display: flex;
    flex-direction: column;
}

.helper-grid-item label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #9aa4af;
    font-weight: 500;
}

.helper-form input,
.helper-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #2a3139;
    border-radius: 8px;
    background: #121418;
    color: #e5e9ef;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.helper-form input:focus,
.helper-form select:focus {
    outline: none;
    border-color: #3d6bff;
    box-shadow: 0 0 0 2px rgba(61, 107, 255, 0.2);
}

.helper-form select#h_symbol {
    min-height: 120px;
    margin-top: 8px;
}

/* 响应式Grid布局 */
@media (max-width: 900px) {
    .helper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .helper-grid {
        grid-template-columns: 1fr;
    }
}

.helper-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    width: 100%;
}

.helper-col {
    flex: 1 1 280px;
    min-width: 250px;
    max-width: 100%;
}

/* 确保表单项在一行内正确显示 */
#contract-helper .helper-form .helper-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
}

#contract-helper .helper-form .helper-col {
    display: flex;
    flex-direction: column;
}

/* 按钮区域 */
.helper-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
}

.helper-status {
    font-size: 12px;
    color: #7b858f;
    margin-left: auto;
}

/* 消息提示 */
#h_msg .alert {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
}

#h_msg .alert.error {
    background: #3a1e21;
    color: #ffb4b8;
    border: 1px solid #632b32;
}

#h_msg .alert.success {
    background: #1e3323;
    color: #b4ffc4;
    border: 1px solid #2b5a39;
}

/* 结果占位符 */
.helper-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #6d7780;
    font-size: 14px;
}

.helper-placeholder i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* 结果表格 */
.helper-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.helper-results-table th,
.helper-results-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #2a2f37;
    font-size: 13px;
}

.helper-results-table th {
    background: #1c1f24;
    color: #9aa4af;
    font-weight: 600;
}

.helper-results-table td {
    color: #e5e9ef;
}

.helper-results-table tr:hover {
    background: rgba(61, 107, 255, 0.05);
}

/* 结果信息头 */
.helper-results-header {
    font-size: 14px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2f37;
}

.helper-results-header strong {
    color: #6fb1ff;
}

/* 公式说明 */
.helper-formula .formula-content {
    font-size: 13px;
    line-height: 1.8;
    color: #c2c8ce;
}

.helper-formula .formula-content p {
    margin: 12px 0 8px;
}

.helper-formula .formula-content ul {
    margin: 0 0 12px 20px;
    padding: 0;
}

.helper-formula .formula-content li {
    margin: 6px 0;
}

.helper-formula code {
    font-family: 'Monaco', 'Consolas', monospace;
    background: #121418;
    padding: 2px 8px;
    border-radius: 4px;
    color: #6fb1ff;
    font-size: 12px;
}

/* 加载动画 */
.helper-spinner {
    width: 16px;
    height: 16px;
    border: 3px solid #3d6bff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: helper-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes helper-spin {
    to { transform: rotate(360deg); }
}

/* 目标R表格 */
.helper-targets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.helper-targets-table th,
.helper-targets-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #2a2f37;
    font-size: 12px;
}

.helper-targets-table th {
    background: #1c1f24;
    color: #9aa4af;
    font-weight: 600;
}

.helper-targets-table td {
    color: #e5e9ef;
}

.helper-targets-table .positive {
    color: #39d98a;
}

.helper-targets-table .negative {
    color: #ff6b6b;
}

/* 高亮数值 */
.helper-highlight {
    color: #6fb1ff;
    font-weight: 600;
}

.helper-warn {
    color: #f0b90b;
}

/* 响应式 */
@media (max-width: 768px) {
    .helper-row {
        flex-direction: column;
    }
    
    .helper-col {
        min-width: 100%;
    }
    
    .helper-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .helper-status {
        margin-left: 0;
        text-align: center;
    }
    
    .helper-results-table,
    .helper-targets-table {
        font-size: 11px;
    }
    
    .helper-results-table th,
    .helper-results-table td,
    .helper-targets-table th,
    .helper-targets-table td {
        padding: 8px 6px;
    }
}

