
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #17a2b8;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
    display: flex;
    align-items: center;
}

.card h2 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

input[type="number"], input[type="text"], select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-container input[type="range"] {
    flex: 1;
}

.slider-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
}

.btn {
    padding: 12px 25px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn i {
    margin-right: 8px;
}

.btn-block {
    width: 100%;
}

.result-section {
    text-align: center;
    padding: 2rem;
}

.value-display {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--primary-color);
}

.value-grade {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.grade-A { color: var(--success-color); }
.grade-B { color: #27ae60; }
.grade-C { color: var(--warning-color); }
.grade-D { color: #e67e22; }
.grade-E { color: var(--accent-color); }

.chart-container {
    height: 300px;
    margin-top: 2rem;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.indicator-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

.indicator-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.method-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.method-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.method-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.method-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.sensitivity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.sensitivity-table th, .sensitivity-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #eaeaea;
}

.sensitivity-table th {
    background: #f8f9fa;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

.tab-container {
    margin-top: 2rem;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    border-bottom: 3px solid var(--secondary-color);
    font-weight: 600;
    color: var(--secondary-color);
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* 新增：付费报告入口样式 */
.paid-report-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff8f7;
    border-radius: 8px;
    border: 1px solid #fadbd8;
}

#buyReportBtn {
    background: var(--accent-color);
    padding: 14px 32px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

#buyReportBtn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* 新增：支付弹窗样式 */
#paymentModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-bottom: 1.8rem;
    padding-left: 1.2rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    color: #444;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.payment-btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.payment-btn.wechat {
    background: #07c160;
    border: 1px solid #06ad56;
}

.payment-btn.alipay {
    background: #1677ff;
    border: 1px solid #0e63e6;
}

.payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cancel-btn {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #ebebeb;
}

/* 新增：解锁报告样式 */
.unlocked-report {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f9f4;
    border-radius: 8px;
    border: 1px solid #d4edda;
}

.unlocked-report h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn {
    background: var(--success-color);
    margin-top: 1rem;
}

.download-btn:hover {
    background: #27ae60;
}