:root {
    --primary-color: #8B4513;
    --primary-light: #D2691E;
    --primary-dark: #654321;
    --secondary-color: #2E8B57;
    --accent-color: #CD853F;
    --bg-color: #FDF5E6;
    --bg-light: #FFF8DC;
    --card-bg: #FFFFFF;
    --text-primary: #3E2723;
    --text-secondary: #5D4037;
    --text-light: #8D6E63;
    --border-color: #D7CCC8;
    --border-light: #EFEBE9;
    --shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
    --shadow-hover: 0 4px 16px rgba(139, 69, 19, 0.15);
    --shadow-deep: 0 8px 24px rgba(139, 69, 19, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-deep);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 帮助按钮样式 */
.help-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.help-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.help-icon {
    font-size: 1.2rem;
}

.help-text {
    font-weight: 500;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-info {
    text-align: right;
}

.report-id {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.version-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.diagnosis-flow {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    min-width: 100px;
    cursor: pointer;
    position: relative;
}

.flow-step:hover {
    background: var(--bg-light);
}

.flow-step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.flow-step.completed {
    background: var(--secondary-color);
    color: white;
}

.step-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.flow-step.active .step-badge {
    background: white;
    color: var(--primary-color);
}

.step-icon {
    font-size: 2rem;
}

.step-text {
    text-align: center;
}

.step-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.step-desc {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.flow-line {
    width: 30px;
    height: 2px;
    background: var(--border-color);
    flex-shrink: 0;
}

.content-panel {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
    overflow: hidden;
}

.section {
    padding: 2.5rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 1rem;
    position: relative;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-en {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.report-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-icon-only {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-icon-only:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.group-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.label-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.option-group.vertical {
    flex-direction: column;
    gap: 0.5rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 120px;
}

.option-item:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.option-text {
    font-weight: 500;
    color: var(--text-primary);
}

.option-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: 0.25rem;
}

.symptom-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.symptom-category {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.symptom-category h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.symptom-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.symptom-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.symptom-tag:hover {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.symptom-tag input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.pulse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.pulse-category {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.pulse-category h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.text-input, .textarea-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.text-input {
    min-height: auto;
}

.textarea-input {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

.text-input:focus, .textarea-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.text-input::placeholder, .textarea-input::placeholder {
    color: var(--text-light);
}

#female-section {
    transition: all 0.3s ease;
}

#female-section label {
    color: var(--accent-color);
}

.form-grid {
    gap: 1.25rem;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

.btn-icon {
    font-size: 1.2rem;
}

.analysis-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.analysis-loading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.diagnosis-analysis, .treatment-content, .report-content {
    animation: fadeIn 0.5s ease;
}

.diagnosis-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.diagnosis-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.syndrome-result {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.syndrome-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.syndrome-desc {
    opacity: 0.95;
    line-height: 1.7;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.analysis-table th,
.analysis-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.analysis-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--primary-color);
}

.score-bar {
    background: var(--bg-light);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.score-fill {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.score-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 移动端底部安全区域支持 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .container {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .main-content {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
    
    .nav-buttons {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 触摸反馈优化 */
.flow-step, .option-item, .btn-primary, .btn-secondary {
    -webkit-tap-highlight-color: transparent;
}

.flow-step:active, .option-item:active {
    transform: scale(0.98);
}

/* 滚动提示 */
.scroll-hint {
    display: none;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-hint span {
    background: var(--bg-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* 只在移动端显示滚动提示 */
@media (max-width: 768px) {
    .scroll-hint {
        display: block;
    }
}

@media (max-width: 480px) {
    .scroll-hint {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

.recipe-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.recipe-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.recipe-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.recipe-origin {
    color: var(--text-light);
    font-size: 0.85rem;
    background: var(--bg-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.drug-structure {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.drug-role {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

.drug-role.jun {
    border-left-color: #e74c3c;
}

.drug-role.chen {
    border-left-color: #f39c12;
}

.drug-role.zuo {
    border-left-color: #3498db;
}

.drug-role.shi {
    border-left-color: #2ecc71;
}

.drug-role h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.drug-role ul {
    list-style: none;
}

.drug-role li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.modification-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
}

.modification-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modification-item {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
}

.modification-item:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.warning-box.warning {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.warning-icon {
    font-size: 1.5rem;
}

.report-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.report-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.report-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.report-qr-section {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px dashed var(--border-color);
}

.qr-container {
    text-align: center;
}

.qr-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.qr-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.report-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.report-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.report-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 1rem 0 0.5rem;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}

.report-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.report-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 120px;
}

.footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 平板设备 */
@media (max-width: 992px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .header-content {
        padding: 0 0.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .diagnosis-flow {
        gap: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .logo-text h1 {
        font-size: 1.35rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
    }
    
    .header-info {
        text-align: center;
    }
    
    .report-id {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    /* 诊断流程优化 - 手机版 */
    .diagnosis-flow {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0;
        gap: 0.75rem;
        scroll-snap-type: x mandatory;
    }
    
    .diagnosis-flow::-webkit-scrollbar {
        height: 4px;
    }
    
    .diagnosis-flow::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }
    
    .flow-line {
        display: none;
    }
    
    .flow-step {
        min-width: 70px;
        padding: 0.6rem 0.5rem;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    .step-badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .step-icon {
        font-size: 1.35rem;
    }
    
    .step-label {
        font-size: 0.78rem;
    }
    
    .step-desc {
        font-size: 0.7rem;
    }
    
    /* 内容区域优化 */
    .content-panel {
        padding: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-header .section-en {
        font-size: 0.85rem;
    }
    
    .section-desc {
        font-size: 0.9rem;
    }
    
    .group-label {
        font-size: 0.92rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .symptom-categories {
        grid-template-columns: 1fr;
    }
    
    .pulse-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    /* 选项按钮触摸优化 */
    .option-group {
        gap: 0.75rem;
    }
    
    .option-item {
        padding: 0.85rem 1rem;
        min-height: auto;
    }
    
    .option-text {
        font-size: 0.95rem;
    }
    
    .option-hint {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* 按钮优化 */
    .nav-buttons {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1.25rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-icon {
        font-size: 1.1rem;
    }
    
    /* 报告优化 */
    .report-header {
        padding: 1.25rem;
        text-align: center;
    }
    
    .report-title {
        font-size: 1.4rem;
    }
    
    .report-meta {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .report-section {
        padding: 1rem;
    }
    
    .report-section h3 {
        font-size: 1.15rem;
    }
    
    .report-table td:first-child {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .report-table td:last-child {
        font-size: 0.9rem;
    }
    
    /* 诊断卡片优化 */
    .syndrome-result {
        padding: 1.25rem;
    }
    
    .syndrome-name {
        font-size: 1.3rem;
    }
    
    .syndrome-desc {
        font-size: 0.95rem;
    }
    
    .diagnosis-card {
        padding: 1.25rem;
    }
    
    .diagnosis-card h3 {
        font-size: 1.1rem;
    }
    
    /* 方剂卡片优化 */
    .recipe-card {
        padding: 1.25rem;
    }
    
    .recipe-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .recipe-header h3 {
        font-size: 1.15rem;
    }
    
    /* 输入框优化 */
    .text-input, .textarea-input {
        font-size: 16px;
        padding: 0.9rem 1rem;
    }
    
    .textarea-input {
        min-height: 100px;
    }
    
    /* 加载动画优化 */
    .analysis-loading {
        padding: 3rem 1rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .header {
        padding: 0.875rem;
    }
    
    .logo-icon {
        font-size: 1.75rem;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .main-content {
        padding: 0.875rem;
    }
    
    .content-panel {
        padding: 1rem;
    }
    
    .flow-step {
        min-width: 65px;
        padding: 0.5rem 0.4rem;
    }
    
    .step-icon {
        font-size: 1.25rem;
    }
    
    .step-label {
        font-size: 0.72rem;
    }
    
    .step-desc {
        display: none;
    }
    
    .pulse-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 0.95rem;
        padding: 0.9rem 1.25rem;
    }
    
    .report-section h3 {
        font-size: 1.05rem;
    }
}

/* 子午流注样式 */
.ziwu-current {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF2D6 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.ziwu-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.ziwu-icon {
    font-size: 3rem;
    margin-right: 1.5rem;
}

.ziwu-shichen {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ziwu-shichen strong {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1.2;
}

.ziwu-channel {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0.25rem 0;
}

.ziwu-time {
    font-size: 1rem;
    opacity: 0.85;
}

.ziwu-description {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

.ziwu-description p {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.ziwu-tips,
.ziwu-best-time {
    margin-bottom: 1rem;
}

.ziwu-tips h4,
.ziwu-best-time h4,
.ziwu-full-list h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ziwu-tips p,
.ziwu-best-time p {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.ziwu-next-tips {
    color: var(--text-secondary);
    font-style: italic;
}

.ziwu-full-list {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.ziwu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ziwu-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.ziwu-item.active {
    background: linear-gradient(135deg, var(--primary-light) 0%, #FFF8DC 100%);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.ziwu-short {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.ziwu-channel-short {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.ziwu-time-short {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .ziwu-clock {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .ziwu-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .ziwu-shichen {
        text-align: center;
    }
    
    .ziwu-shichen strong {
        font-size: 1.5rem;
    }
    
    .ziwu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .ziwu-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ziwu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 五运六气样式 */
.wuyun-card {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF5E1 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid #E8D5B7;
}

.wuyun-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E8D5B7;
}

.wuyun-year {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wuyun-icon {
    font-size: 2.5rem;
}

.wuyun-info {
    display: flex;
    flex-direction: column;
}

.wuyun-info strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.wuyun-info span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.wuyun-element {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: bold;
}

.wuyun-element.木 {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.wuyun-element.火 {
    background: linear-gradient(135deg, #FF5722 0%, #D32F2F 100%);
    color: white;
}

.wuyun-element.土 {
    background: linear-gradient(135deg, #FF9800 0%, #E65100 100%);
    color: white;
}

.wuyun-element.金 {
    background: linear-gradient(135deg, #9E9E9E 0%, #616161 100%);
    color: white;
}

.wuyun-element.水 {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
}

.wuyun-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wuyun-item {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-light);
}

.wuyun-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.wuyun-tizhi {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.wuyun-tips-section {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.wuyun-tips-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.wuyun-tips-section p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.wuyun-food {
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .wuyun-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .wuyun-year {
        flex-direction: column;
    }
    
    .wuyun-detail {
        grid-template-columns: 1fr;
    }
    
    .wuyun-card {
        padding: 1rem;
    }
}

@media print {
    .header, .footer, .nav-buttons, .btn-icon-only {
        display: none !important;
    }
    
    .container {
        padding: 0;
    }
    
    .main-content {
        max-width: 100%;
        padding: 0;
    }
    
    .content-panel {
        box-shadow: none;
    }
    
    .section {
        padding: 1rem;
        page-break-inside: avoid;
    }
    
    .report-section {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
    }
}

/* 疗法样式 */
.therapy-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.therapy-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
}

.therapy-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.therapy-icon {
    font-size: 2.5rem;
}

.therapy-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.therapy-name {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent-color);
}

.therapy-points,
.therapy-method,
.therapy-notes {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    line-height: 1.7;
}

.therapy-points strong,
.therapy-method strong,
.therapy-notes strong {
    color: var(--primary-color);
    display: inline-block;
    margin-right: 0.5rem;
}

.therapy-warning {
    margin-top: 1rem;
    padding: 1rem;
    background: #FFF3CD;
    border: 1px solid #FFC107;
    border-radius: var(--radius-sm);
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

.no-therapy {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-size: 1.05rem;
}

/* 不同疗法的配色 */
.therapy-card.acupressure {
    border-color: #4CAF50;
}

.therapy-card.acupressure .therapy-header h4 {
    color: #4CAF50;
}

.therapy-card.acupressure .therapy-name {
    border-left-color: #4CAF50;
    background: #E8F5E9;
}

.therapy-card.acupuncture {
    border-color: #2196F3;
}

.therapy-card.acupuncture .therapy-header h4 {
    color: #2196F3;
}

.therapy-card.acupuncture .therapy-name {
    border-left-color: #2196F3;
    background: #E3F2FD;
}

.therapy-card.cupping {
    border-color: #FF9800;
}

.therapy-card.cupping .therapy-header h4 {
    color: #FF9800;
}

.therapy-card.cupping .therapy-name {
    border-left-color: #FF9800;
    background: #FFF3E0;
}

.therapy-card.bloodletting {
    border-color: #F44336;
}

.therapy-card.bloodletting .therapy-header h4 {
    color: #F44336;
}

.therapy-card.bloodletting .therapy-name {
    border-left-color: #F44336;
    background: #FFEBEE;
}

@media (max-width: 768px) {
    .therapy-card {
        padding: 1rem;
    }
    
    .therapy-header {
        flex-direction: column;
        text-align: center;
    }
    
    .therapy-icon {
        font-size: 2rem;
    }
    
    .therapy-category h4 {
        font-size: 1.1rem;
        padding: 0.5rem;
    }
    
    .recipe-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
}

/* 新增疗法配色 */
.therapy-card.guasha {
    border-color: #8BC34A;
}
.therapy-card.guasha .therapy-header h4 { color: #8BC34A; }
.therapy-card.guasha .therapy-name { border-left-color: #8BC34A; background: #F1F8E9; }

.therapy-card.moxibustion {
    border-color: #FF5722;
}
.therapy-card.moxibustion .therapy-header h4 { color: #FF5722; }
.therapy-card.moxibustion .therapy-name { border-left-color: #FF5722; background: #FBE9E7; }

.therapy-card.ear-acupuncture {
    border-color: #9C27B0;
}
.therapy-card.ear-acupuncture .therapy-header h4 { color: #9C27B0; }
.therapy-card.ear-acupuncture .therapy-name { border-left-color: #9C27B0; background: #F3E5F5; }

.therapy-card.tuina {
    border-color: #3F51B5;
}
.therapy-card.tuina .therapy-header h4 { color: #3F51B5; }
.therapy-card.tuina .therapy-name { border-left-color: #3F51B5; background: #E8EAF6; }

.therapy-card.food-therapy {
    border-color: #795548;
}
.therapy-card.food-therapy .therapy-header h4 { color: #795548; }
.therapy-card.food-therapy .therapy-name { border-left-color: #795548; background: #EFEBE9; }

.therapy-card.herbal-tea {
    border-color: #009688;
}
.therapy-card.herbal-tea .therapy-header h4 { color: #009688; }
.therapy-card.herbal-tea .therapy-name { border-left-color: #009688; background: #E0F2F1; }

.therapy-card.qigong {
    border-color: #00BCD4;
}
.therapy-card.qigong .therapy-header h4 { color: #00BCD4; }
.therapy-card.qigong .therapy-name { border-left-color: #00BCD4; background: #E0F7FA; }

.therapy-card.emotional-therapy {
    border-color: #E91E63;
}
.therapy-card.emotional-therapy .therapy-header h4 { color: #E91E63; }
.therapy-card.emotional-therapy .therapy-name { border-left-color: #E91E63; background: #FCE4EC; }

.therapy-card.foot-reflexology {
    border-color: #673AB7;
}
.therapy-card.foot-reflexology .therapy-header h4 { color: #673AB7; }
.therapy-card.foot-reflexology .therapy-name { border-left-color: #673AB7; background: #EDE7F6; }

.therapy-card.mediated-pillow {
    border-color: #607D8B;
}
.therapy-card.mediated-pillow .therapy-header h4 { color: #607D8B; }
.therapy-card.mediated-pillow .therapy-name { border-left-color: #607D8B; background: #ECEFF1; }

.therapy-card.electro-acupuncture,
.therapy-card.thunder-fire {
    border-color: #FFC107;
}
.therapy-card.electro-acupuncture .therapy-header h4,
.therapy-card.thunder-fire .therapy-header h4 { color: #FFC107; }
.therapy-card.electro-acupuncture .therapy-name,
.therapy-card.thunder-fire .therapy-name { border-left-color: #FFC107; background: #FFF8E1; }

.therapy-card.acupoint-injection {
    border-color: #00BCD4;
}
.therapy-card.acupoint-injection .therapy-header h4 { color: #00BCD4; }
.therapy-card.acupoint-injection .therapy-name { border-left-color: #00BCD4; background: #E0F7FA; }

.therapy-card.heat-sensitive {
    border-color: #FF9800;
}
.therapy-card.heat-sensitive .therapy-header h4 { color: #FF9800; }
.therapy-card.heat-sensitive .therapy-name { border-left-color: #FF9800; background: #FFF3E0; }

.therapy-card.bamboo-cupping {
    border-color: #4CAF50;
}
.therapy-card.bamboo-cupping .therapy-header h4 { color: #4CAF50; }
.therapy-card.bamboo-cupping .therapy-name { border-left-color: #4CAF50; background: #E8F5E9; }

.therapy-card.zhuyou {
    border-color: #D4AC0D;
}
.therapy-card.zhuyou .therapy-header h4 { color: #D4AC0D; }
.therapy-card.zhuyou .therapy-name { border-left-color: #D4AC0D; background: #FFF9C4; }

.therapy-card.music-therapy {
    border-color: #E91E63;
}
.therapy-card.music-therapy .therapy-header h4 { color: #E91E63; }
.therapy-card.music-therapy .therapy-name { border-left-color: #E91E63; background: #FCE4EC; }

.therapy-card.fuyang {
    border-color: #9E9E9E;
}
.therapy-card.fuyang .therapy-header h4 { color: #9E9E9E; }
.therapy-card.fuyang .therapy-name { border-left-color: #9E9E9E; background: #FAFAFA; }

.therapy-card.xunzheng {
    border-color: #78909C;
}
.therapy-card.xunzheng .therapy-header h4 { color: #78909C; }
.therapy-card.xunzheng .therapy-name { border-left-color: #78909C; background: #ECEFF1; }

/* 疗法分类样式 */
.therapy-category {
    margin-bottom: 2rem;
}

.therapy-category h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
}

/* 食谱/方法项样式 */
.therapy-recipes {
    margin: 1rem 0;
}

.recipe-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--accent-color);
}

.recipe-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.recipe-item p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 60vh;
}

.help-section {
    margin-bottom: 1.5rem;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.help-section ol,
.help-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 1.5rem;
    margin: 0;
}

.help-section li {
    margin-bottom: 0.5rem;
}

.help-section li:last-child {
    margin-bottom: 0;
}

.help-section strong {
    color: var(--text-primary);
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn-primary {
    margin: 0;
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 90vh;
        border-radius: var(--radius-md);
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .help-section h3 {
        font-size: 1.1rem;
    }
}

/* ============================================================
   联系我们表单样式
   ============================================================ */
.contact-form-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form .form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form .form-group .required {
    color: #e74c3c;
}

.contact-form .form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

.contact-form .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.contact-form .form-textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form select.form-input {
    cursor: pointer;
    appearance: auto;
}

.contact-form .form-actions {
    align-items: center;
    margin-bottom: 0;
}

.contact-form .btn-submit {
    padding: 0.85rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.contact-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-tip {
    font-size: 0.9rem;
    margin-left: 1rem;
}

.form-tip.form-success {
    color: #27ae60;
}

.form-tip.form-error {
    color: #e74c3c;
}

/* 备案信息 */
.icp-info {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-light);
}

.icp-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.icp-info a:hover {
    color: var(--primary-color);
}

.icp-info .gongan {
    display: inline-flex;
    align-items: center;
}

/* 流程步骤鼠标悬停效果 */
.flow-step {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.flow-step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .contact-form .btn-submit {
        width: 100%;
    }
    
    .form-tip {
        margin-left: 0;
        margin-top: 0.5rem;
        display: block;
        text-align: center;
    }
}