* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0f4c75;
    --secondary: #3282b8;
    --accent: #00adb5;
    --dark: #1b262c;
    --darker: #0d1b23;
    --light: #bbe1fa;
    --success: #00c896;
    --danger: #ff6b6b;
}

body {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航 */
header {
    background-color: rgba(11, 19, 30, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(50, 130, 184, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.logo i {
    color: #f7931a;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(50, 130, 184, 0.1), transparent 40%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 173, 181, 0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #a0c5e8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0, 173, 181, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 10px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 173, 181, 0.6);
}

.cta-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    box-shadow: none;
}

/* 内容部分 */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(to right, var(--light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* 卡片布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: rgba(27, 38, 44, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(50, 130, 184, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 173, 181, 0.2);
    border-color: rgba(0, 173, 181, 0.5);
}

.card-header {
    background: rgba(15, 76, 117, 0.5);
    padding: 20px;
    border-bottom: 1px solid rgba(50, 130, 184, 0.3);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.card-body {
    padding: 25px;
}

.card-body ul {
    list-style-type: none;
    padding-left: 0;
}

.card-body li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(187, 225, 250, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card-body li:last-child {
    border-bottom: none;
}

.card-body li i {
    color: var(--accent);
    margin-top: 5px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* 模拟器 & 计算器 */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.tool-box {
    background: rgba(27, 38, 44, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(50, 130, 184, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tool-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.tool-title i {
    font-size: 2rem;
    color: var(--accent);
}

.tool-title h3 {
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0c5e8;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 14px;
    background: rgba(15, 76, 117, 0.3);
    border: 1px solid rgba(50, 130, 184, 0.5);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
}

.input-group input:focus, .input-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.result-box {
    margin-top: 25px;
    padding: 20px;
    background: rgba(15, 76, 117, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(50, 130, 184, 0.5);
}

.result-box h4 {
    margin-bottom: 10px;
    color: var(--accent);
}

/* 图表容器 */
.chart-container {
    height: 250px;
    background: rgba(15, 76, 117, 0.2);
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.price-line {
    position: absolute;
    height: 2px;
    background: var(--success);
    width: 100%;
    top: 50%;
    left: 0;
}

.price-movement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 页脚 */
footer {
    background: rgba(11, 19, 30, 0.9);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(50, 130, 184, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0c5e8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(50, 130, 184, 0.2);
    color: var(--light);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(50, 130, 184, 0.2);
    color: #a0c5e8;
    font-size: 0.9rem;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    color: #a0c5e8;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 8px;
    color: #5d7a8c;
}

/* 计算器弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 27, 35, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.calculator-modal {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .calculator-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(187, 225, 250, 0.2);
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent);
}

.modal-body {
    margin-bottom: 25px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.result-item {
    background: rgba(15, 76, 117, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.result-item .label {
    font-size: 0.9rem;
    color: #a0c5e8;
    margin-bottom: 8px;
}

.result-item .value {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-close {
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 173, 181, 0.4);
}

.risk-indicator {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
    position: relative;
}

.risk-level {
    position: absolute;
    height: 100%;
    background: linear-gradient(to right, var(--success), var(--danger));
    width: 35%;
    border-radius: 5px;
}

.risk-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #a0c5e8;
}

/* FAQ 可折叠区域 */
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(50, 130, 184, 0.3);
}

.faq-question {
    background: rgba(15, 76, 117, 0.3);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(15, 76, 117, 0.5);
}

.faq-question h4 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(27, 38, 44, 0.5);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 0;
    line-height: 1.7;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tools-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .cta-button {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
}