/* ========== 全局 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f5f7fa;
    color: #2d3748;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 头部 ========== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #2c7a4b;
    text-decoration: none;
}

.nav a {
    margin-left: 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
}

.nav a:hover {
    color: #2c7a4b;
}

/* ========== 主内容 ========== */
.site-main {
    padding: 30px 0;
    min-height: 60vh;
}

/* ========== Hero ========== */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 32px;
    color: #2c7a4b;
    margin-bottom: 10px;
}

.subtitle {
    color: #718096;
    font-size: 16px;
}

/* ========== 输入表单 ========== */
.input-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.required {
    color: #e53e3e;
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #2c7a4b;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: #2c7a4b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #22543d;
}

/* ========== 结果 ========== */
.result-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 22px;
    color: #2c7a4b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.detected-box {
    background: #ebf8ff;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    margin-bottom: 20px;
}

.prescription-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* 处方思路（复用你现有样式） */
.rx-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed rgba(128,90,213,.3); }
.rx-section:last-of-type { border-bottom: none; }
.rx-label { font-size: 16px; font-weight: bold; color: #553c9a; margin-bottom: 10px; }
.rx-therapy { font-size: 14px; color: #4a5568; margin: 6px 0 10px; }
.rx-herb-list { font-size: 15px; line-height: 2; }
.rx-herb-list strong { color: #c53030; }
.rx-dose { color: #718096; font-size: 13px; }
.rx-add-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.rx-add-table th, .rx-add-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.rx-add-table th { background: #f0fff4; color: #276749; }
.rx-targets { font-size: 13px; color: #553c9a; margin: 8px 0; padding: 6px 12px; background: rgba(128,90,213,.08); border-radius: 6px; }
.rx-target-tag { color: #c53030; font-weight: bold; }
.rx-instruction { background: rgba(255,240,240,.7); padding: 12px 16px; border-radius: 8px; }
.rx-instr-list { font-size: 13px; color: #c53030; }

/* 组合辨证 */
.combo-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.combo-card {
    padding: 15px 20px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #38a169;
    margin-bottom: 15px;
}

.combo-rank {
    display: inline-block;
    background: #38a169;
    color: #fff;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 10px;
}

.combo-card h4 {
    color: #2c7a4b;
    margin-bottom: 10px;
}

.combo-card p {
    font-size: 14px;
    margin: 5px 0;
}

/* 各症状辨证分型 */
.symptom-types-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.symptom-title {
    color: #2b6cb0;
    margin: 20px 0 10px;
    font-size: 16px;
    padding-left: 10px;
    border-left: 4px solid #2b6cb0;
}

.type-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px;
}

.type-table th, .type-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.type-table th {
    background: #edf2f7;
    color: #2d3748;
    white-space: nowrap;
}

.type-table .formula {
    color: #c53030;
    font-weight: bold;
}

/* 错误/成功提示 */
.error-box, .success-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-box {
    background: #fff5f5;
    color: #c53030;
    border-left: 4px solid #c53030;
}

.success-box {
    background: #f0fff4;
    color: #276749;
    border-left: 4px solid #38a169;
}

/* ========== 底部 ========== */
.site-footer {
    background: #2d3748;
    color: #cbd5e0;
    padding: 30px 0 20px;
    margin-top: 50px;
}

.disclaimer {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
    margin-bottom: 20px;
}

.disclaimer strong {
    color: #feb2b2;
    display: block;
    margin-bottom: 8px;
}

.disclaimer p {
    font-size: 13px;
    line-height: 1.7;
}

.footer-links {
    text-align: center;
    margin: 20px 0;
}

.footer-links a {
    color: #a0aec0;
    margin: 0 15px;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: #718096;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== 关于页 ========== */
.about-section, .feedback-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about-section h1, .feedback-section h1 {
    color: #2c7a4b;
    margin-bottom: 20px;
}

.about-section h2 {
    color: #2b6cb0;
    margin: 30px 0 15px;
    font-size: 20px;
}

.legal-box {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #4299e1;
}

.legal-box p {
    margin: 10px 0;
}

.legal-box ul {
    margin-left: 20px;
}

.email-alt {
    text-align: center;
    margin-top: 20px;
    color: #718096;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 24px;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav a {
        margin-left: 0;
        margin-right: 15px;
    }

    .input-section, .about-section, .feedback-section {
        padding: 20px;
    }
}
/* ========== 支持捐赠 ========== */
.support-box {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px dashed rgba(255,255,255,0.2);
}

.support-title {
    font-size: 16px;
    color: #feb2b2;
    margin-bottom: 10px;
    font-weight: bold;
}

.support-text {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.8;
    margin-bottom: 12px;
}

.support-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.support-item {
    text-align: center;
    color: #cbd5e0;
    font-size: 13px;
}

.support-item img {
    display: block;
    margin: 0 auto 8px;
    background: #fff;
    padding: 5px;
    border-radius: 6px;
}

.support-item a {
    color: inherit;
    text-decoration: none;
}

.support-note {
    font-size: 15px;
    color: #e2e8f0;
    margin-top: 12px;
    font-style: normal;
    font-weight: 500;
}

/* 手机端 */
@media (max-width: 768px) {
    .support-methods {
        gap: 15px;
    }
    .support-item img {
        width: 100px;
    }
}
/* ========== 二维码 ========== */
.qr-section {
    text-align: center;
    margin: 40px 0;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.qr-section h3 {
    color: #2c7a4b;
    margin-bottom: 15px;
    font-size: 18px;
}

.qr-section img {
    border: 8px solid #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
}

.qr-section p {
    font-size: 13px;
    color: #718096;
    margin-top: 15px;
}

/* 手机端 */
@media (max-width: 768px) {
    .qr-section {
        padding: 20px;
    }
    .qr-section img {
        width: 160px;
    }
}

/* ========== 防诈骗提示 ========== */
.notice-box {
    background: #fffaf0;
    border-left: 4px solid #ed8936;
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #744210;
    text-align: left;
    line-height: 1.8;
}

.notice-box p {
    margin: 6px 0;
}

.notice-box a {
    color: #c05621;
    text-decoration: underline;
}

/* ========== 银行转账详情 ========== */
.support-item-title {
    font-size: 16px;
    color: #feb2b2;
    font-weight: bold;
    margin-bottom: 8px;
}

.support-item-detail {
    font-size: 15px;
    line-height: 2.2;
    color: #e2e8f0;
}

.support-item-detail strong {
    color: #feb2b2;
    font-weight: 600;
}

.support-account {
    color: #fefcbf;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.5px;
}
