/* ========================================
   易医扁鹊 - 全局样式
   ======================================== */

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

/* CSS 变量 */
:root {
    --primary-color: #4b6cb7;
    --primary-dark: #182848;
    --secondary-color: #667eea;
    --accent-color: #f5576c;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --transition: all 0.3s ease;
}

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e4edf5 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    /* 移动端优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 防止移动端双击缩放 */
button, a, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

/* 移动端滚动优化 */
.chat-history, .user-center-content, .modal-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* 工具类 */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   登录/注册页面
   ======================================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-logo {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.auth-slogan {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
}

.auth-forms-wrapper {
    padding: 40px;
}

.auth-form {
    width: 100%;
}

.form-title {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.1);
}

.code-input-group,
.captcha-input-group {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-canvas {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.send-code-btn,
.refresh-captcha-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.send-code-btn:hover,
.refresh-captcha-btn:hover {
    background: var(--primary-dark);
}

.send-code-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

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

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
}

.auth-switch-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* ========================================
   主应用容器
   ======================================== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.app-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.header-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

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

.header-user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-phone {
    font-size: 0.95rem;
}

.logout-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主内容区 */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ========================================
   功能入口卡片
   ======================================== */
.feature-entry-container {
    margin-bottom: 30px;
}

.feature-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-name {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    padding: 0;
}

.feature-benefits li {
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.feature-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tongue-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.tongue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.4);
}

.chat-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 108, 183, 0.4);
}

/* ========================================
   舌诊分析容器
   ======================================== */
.tongue-analysis-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.analysis-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    flex: 1;
}

.back-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    background: #e0e0e0;
}

/* 分析模式选择 */
.tongue-mode-selector {
    margin-bottom: 30px;
}

.mode-selector-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.mode-option {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.mode-option:hover {
    border-color: var(--primary-color);
    background: rgba(75, 108, 183, 0.05);
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-option input[type="radio"]:checked + .mode-label {
    color: var(--primary-color);
}

.mode-option input[type="radio"]:checked ~ .mode-label,
.mode-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(75, 108, 183, 0.08);
}

.mode-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.mode-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 上传区域 */
.tongue-upload-section {
    margin-bottom: 30px;
}

.upload-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.camera-btn {
    padding: 15px 40px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.camera-btn:hover {
    background: #5a6bc9;
    transform: translateY(-2px);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    text-align: center;
    background: var(--bg-light);
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(75, 108, 183, 0.05);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.upload-hint {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.upload-tips {
    background: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    text-align: left;
    max-width: 500px;
    margin: 20px auto 30px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
}

.upload-btn {
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 摄像头拍照界面 */
.camera-interface {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

.camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.camera-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.close-camera-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-camera-btn:hover {
    color: var(--text-dark);
    background: var(--bg-light);
    border-radius: 50%;
}

.camera-preview-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.camera-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.tongue-framing-guide {
    text-align: center;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.tongue-framing-guide p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.framing-box {
    width: 200px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.capture-btn,
.switch-camera-btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.capture-btn {
    background: var(--primary-color);
    color: white;
    flex: 1;
    max-width: 200px;
}

.capture-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.switch-camera-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.switch-camera-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.photo-preview {
    text-align: center;
    margin-top: 20px;
}

.captured-image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.photo-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.retake-btn,
.confirm-photo-btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.retake-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.retake-btn:hover {
    background: #e0e0e0;
}

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

.confirm-photo-btn:hover {
    background: var(--primary-dark);
}

/* 图片预览 */
.image-preview-section {
    margin-top: 30px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.preview-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.reupload-btn {
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.reupload-btn:hover {
    background: #e0e0e0;
}

.preview-image-wrapper {
    max-width: 500px;
    margin: 0 auto 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.preview-image {
    width: 100%;
    display: block;
}

.analyze-btn {
    display: block;
    margin: 0 auto;
    padding: 15px 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.4);
}

/* 分析加载 */
.analysis-loading {
    text-align: center;
    padding: 60px 30px;
}

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

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

.loading-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.loading-subtext {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* 分析结果 */
.analysis-result-section {
    margin-top: 30px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.result-header h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
}

.new-analysis-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.new-analysis-btn:hover {
    background: var(--primary-dark);
}

.result-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
}

.tongue-result-item {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

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

.tongue-result-item h5 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.tongue-result-item p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-gray);
}

.tongue-result-item strong {
    color: var(--text-dark);
}

.tongue-result-item ul {
    list-style: none;
    padding-left: 0;
}

.tongue-result-item ul li {
    padding: 8px 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
}

.tongue-result-item ul li:last-child {
    border-bottom: none;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 108, 183, 0.4);
}

.secondary-btn {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background: #e0e0e0;
}

/* ========================================
   聊天容器
   ======================================== */
.chat-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.chat-header h2 {
    font-size: 1.5rem;
    flex: 1;
}

.chat-history {
    height: 500px;
    overflow-y: auto;
    padding: 25px;
    background: var(--bg-light);
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease;
}

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

.user-message {
    flex-direction: row-reverse;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.user-message .avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 15px;
}

.bot-message .avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    margin-right: 15px;
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-text {
    background: var(--bg-white);
    padding: 15px 18px;
    border-radius: var(--radius-md);
    line-height: 1.8;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.user-message .message-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 8px;
    padding: 0 5px;
}

.input-area {
    display: flex;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
    gap: 15px;
}

.user-input {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    resize: none;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.user-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(75, 108, 183, 0.1);
}

.send-btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   报告容器
   ======================================== */
.report-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 30px;
}

.report-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.report-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.report-disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: var(--radius-sm);
    color: #856404;
    font-size: 0.95rem;
}

.report-content {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.report-content h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.report-content h3:first-child {
    margin-top: 0;
}

.report-content ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.report-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.report-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ========================================
   底部
   ======================================== */
.app-footer {
    background: var(--bg-white);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-gray);
    border-top: 1px solid var(--border-color);
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

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

/* ========================================
   加载提示
   ======================================== */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-white);
    padding: 40px 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 10000;
}

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

/* ========================================
   Toast 通知
   ======================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid #4caf50;
}

.toast.error {
    border-left: 4px solid #f44336;
}

.toast.warning {
    border-left: 4px solid #ff9800;
}

.toast.info {
    border-left: 4px solid #2196f3;
}

/* ========================================
   模态框
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

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

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

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

    .auth-header {
        padding: 40px 30px;
    }

    .auth-logo {
        font-size: 2.2rem;
    }

    .header-title {
        font-size: 1.6rem;
    }

    .header-subtitle {
        font-size: 0.95rem;
    }

    .header-user-info {
        position: static;
        justify-content: center;
        margin-top: 15px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .mode-options {
        grid-template-columns: 1fr;
    }

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

    .chat-history {
        height: 400px;
        padding: 15px;
    }

    .message {
        margin-bottom: 15px;
    }

    .avatar {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }

    .message-content {
        max-width: 80%;
    }

    .message-text {
        padding: 12px 15px;
    }

    .input-area {
        flex-direction: column;
        gap: 10px;
    }

    .send-btn {
        width: 100%;
    }

    .result-actions,
    .report-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .toast-container {
        left: 20px;
        right: 20px;
    }

    .toast {
        min-width: auto;
    }
}

/* 小屏手机适配 (480px以下) */
@media (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 14px;
    }

    .auth-container {
        padding: 10px;
    }

    .auth-box {
        border-radius: 10px;
    }

    .auth-header {
        padding: 30px 20px;
    }

    .auth-logo {
        font-size: 1.8rem;
    }

    .auth-slogan {
        font-size: 0.95rem;
    }

    .auth-forms-wrapper {
        padding: 25px 20px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .header-title {
        font-size: 1.3rem;
    }

    .header-subtitle {
        font-size: 0.85rem;
    }

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

    .feature-name {
        font-size: 1.2rem;
    }

    .feature-desc {
        font-size: 0.9rem;
    }

    .feature-benefits {
        font-size: 0.85rem;
    }

    .feature-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .chat-history {
        height: 350px;
        padding: 10px;
    }

    .user-input {
        font-size: 14px;
        min-height: 40px;
    }

    .send-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .modal-content {
        margin: 20px;
        max-width: calc(100% - 40px);
    }

    .consultation-actions {
        flex-direction: column;
        gap: 8px;
    }

    .consultation-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
    }

    .video-modal-content,
    .voice-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }

    .user-center-layout {
        flex-direction: column;
    }

    .user-center-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* 超小屏手机适配 (375px以下) */
@media (max-width: 375px) {
    body {
        font-size: 13px;
    }

    .auth-logo {
        font-size: 1.5rem;
    }

    .auth-slogan {
        font-size: 0.85rem;
    }

    .form-title {
        font-size: 1.2rem;
    }

    .header-title {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 20px 15px;
    }

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

    .feature-name {
        font-size: 1.1rem;
    }

    .chat-history {
        height: 300px;
    }

    .avatar {
        width: 35px;
        height: 35px;
        font-size: 0.65rem;
    }

    .message-text {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .upload-tongue-btn,
    .upload-face-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

/* ========================================
   视频和语音问诊样式
   ======================================== */

/* 聊天头部问诊按钮 */
.chat-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.chat-header h2 {
    font-size: 1.5rem;
    flex: 1;
}

.consultation-actions {
    display: flex;
    gap: 10px;
}

.consultation-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* 视频问诊模态框 */
.video-consultation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.video-modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.video-modal-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.video-modal-body {
    padding: 0;
    background: #1a1a1a;
}

.video-call-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
}

.remote-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 10px;
    align-items: center;
}

.doctor-name {
    color: white;
    font-weight: 600;
}

.doctor-status {
    color: #4caf50;
    font-size: 0.85rem;
}

.local-video-wrapper {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 200px;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 2px solid white;
}

.local-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.status-text {
    font-size: 1.2rem;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    background: #2a2a2a;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn .icon {
    font-size: 1.8rem;
}

.control-btn .label {
    font-size: 0.85rem;
}

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

.control-btn.active {
    background: rgba(75, 108, 183, 0.3);
    border-color: var(--primary-color);
}

.end-call-btn {
    background: rgba(244, 67, 54, 0.2);
    border-color: #f44336;
}

.end-call-btn:hover {
    background: rgba(244, 67, 54, 0.4);
}

/* 语音问诊模态框 */
.voice-consultation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.voice-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.voice-modal-header {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.voice-modal-body {
    padding: 40px 30px;
}

.doctor-avatar-section {
    text-align: center;
    margin-bottom: 40px;
}

.doctor-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.avatar-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 4px solid white;
}

.audio-wave-animation {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 40px;
}

.wave-bar {
    width: 4px;
    background: white;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 35px; }
}

.doctor-name-voice {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.voice-call-status {
    text-align: center;
    margin-bottom: 40px;
}

.status-icon-voice {
    font-size: 3rem;
    margin-bottom: 15px;
}

.status-text-voice {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.call-duration {
    color: rgba(255, 255, 255, 0.9);
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.voice-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.voice-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.voice-control-btn .icon-large {
    font-size: 2rem;
}

.voice-control-btn .label {
    font-size: 0.75rem;
}

.voice-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.voice-control-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.end-call-btn-voice {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

.end-call-btn-voice:hover {
    background: rgba(244, 67, 54, 0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .consultation-actions {
        flex-direction: column;
        gap: 5px;
    }

    .consultation-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .video-call-container {
        height: 350px;
    }

    .local-video-wrapper {
        width: 120px;
        height: 90px;
        bottom: 70px;
        right: 10px;
    }

    .video-controls {
        gap: 10px;
        padding: 15px;
    }

    .control-btn {
        padding: 10px 15px;
    }

    .voice-modal-content {
        max-width: 350px;
    }

    .doctor-avatar,
    .avatar-circle {
        width: 120px;
        height: 120px;
    }

    .avatar-circle {
        font-size: 4rem;
    }

    .voice-control-btn {
        width: 70px;
        height: 70px;
        padding: 15px;
    }

    .voice-control-btn .icon-large {
        font-size: 1.5rem;
    }
}

/* ========================================
   预约系统样式
   ======================================== */

/* 预约步骤容器 */
.appointment-steps {
    position: relative;
}

.appointment-step {
    display: none;
}

.appointment-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.step-back-btn {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.step-back-btn:hover {
    background: #e0e0e0;
}

/* 科室和医生网格 */
.departments-grid, .doctors-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.department-item, .doctor-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.department-item:hover, .doctor-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.department-item.selected, .doctor-item.selected {
    border-color: var(--primary-color);
    background: rgba(75, 108, 183, 0.05);
}

/* 科室样式 */
.dept-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.dept-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.dept-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* 医生样式 */
.doctor-avatar {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}

.doctor-info h5 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.doctor-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0 0 5px 0;
}

.doctor-specialty {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0;
}

/* 预约时间选择 */
.appointment-schedule {
    margin-bottom: 20px;
}

.date-selection, .time-selection {
    margin-bottom: 25px;
}

.dates-grid, .times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.date-item, .time-item {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.date-item:hover, .time-item:hover {
    border-color: var(--primary-color);
    background: rgba(75, 108, 183, 0.05);
}

.date-item.selected, .time-item.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.date-item.unavailable, .time-item.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* 确认信息样式 */
.confirm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.confirm-item:last-child {
    border-bottom: none;
}

.label {
    font-weight: 600;
    color: var(--text-gray);
}

.value {
    color: var(--text-dark);
    font-weight: 500;
}

.confirm-note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin: 15px 0;
}

/* 预约成功页面 */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-content h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.appointment-details {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    text-align: left;
}

.appointment-details p {
    margin: 8px 0;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* 进度条 */
.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 25%; /* Will be updated based on current step */
    transition: width 0.3s ease;
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.step-indicator .active {
    color: var(--primary-color);
    font-weight: 600;
}

.step-indicator .completed {
    color: #4caf50;
}

/* 预约按钮 */
.appointment-btn {
    background: linear-gradient(135deg, #f5576c 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.appointment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* 预约部分在健康报告中的样式 */
.report-container .appointment-section {
    margin-top: 30px;
    text-align: center;
}

/* 预约模态框样式 */
#appointmentModal .modal-content {
    max-width: 800px;
}

/* 响应式预约样式 */
@media (max-width: 768px) {
    .departments-grid, .doctors-list {
        grid-template-columns: 1fr;
    }
    
    .dates-grid, .times-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .confirm-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    #appointmentModal .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ========================================
   面诊图片上传功能样式
   ======================================== */

/* 上传按钮样式 */
.upload-face-btn {
    padding: 12px 15px;
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.upload-face-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 文件输入框隐藏 */
.file-input {
    display: none;
}

/* 面诊图片预览容器 */
.face-image-preview-container {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 15px;
    margin: 0 20px 15px 20px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.face-image-preview-container:not(.hidden) {
    opacity: 1;
}

.face-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.preview-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.remove-face-image-btn {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    line-height: 1;
}

.remove-face-image-btn:hover {
    background: #f44336;
    color: white;
}

.face-preview-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.face-preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

.face-preview-tips {
    flex: 1;
}

.face-preview-tips p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 聊天消息中的图片容器 */
.message-image-container {
    max-width: 300px;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.message-image {
    width: 100%;
    display: block;
    border-radius: var(--radius-sm);
}

/* 拖拽上传高亮效果 */
.input-area.drag-over {
    background: rgba(75, 108, 183, 0.05);
    border-color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .upload-face-btn {
        padding: 10px 12px;
        font-size: 1.1rem;
    }

    .face-image-preview-container {
        margin: 0 15px 12px 15px;
        padding: 12px;
    }

    .face-preview-image {
        width: 60px;
        height: 60px;
    }

    .face-preview-tips p {
        font-size: 0.8rem;
    }

    .message-image-container {
        max-width: 200px;
    }
}

/* ========================================
   用户中心样式
   ======================================== */

/* 个人中心按钮 */
.user-center-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 15px;
}

.user-center-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 用户中心容器 */
.user-center-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.user-center-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.user-center-header h2 {
    font-size: 1.5rem;
    flex: 1;
}

/* 用户中心布局 */
.user-center-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 600px;
}

/* 左侧导航 */
.user-center-nav {
    background: var(--bg-light);
    padding: 20px 0;
    border-right: 1px solid var(--border-color);
}

.user-center-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.user-center-nav-item:hover {
    background: rgba(75, 108, 183, 0.05);
    border-left-color: var(--primary-color);
}

.user-center-nav-item.active {
    background: rgba(75, 108, 183, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.3rem;
}

.nav-label {
    font-size: 0.95rem;
}

/* 右侧内容区 */
.user-center-content {
    padding: 30px;
    background: var(--bg-white);
}

.uc-module {
    width: 100%;
}

.module-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.module-content {
    margin-top: 20px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.empty-hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 病历卡片 */
.records-list, .consultation-list, .reports-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.record-card, .consultation-card, .report-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.record-header, .consultation-header, .report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.record-header h4, .report-header h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.record-date, .consultation-date, .report-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.record-body, .consultation-content, .report-summary {
    margin-bottom: 15px;
}

.record-body p, .consultation-content p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: var(--text-gray);
}

.record-actions, .report-actions {
    display: flex;
    gap: 10px;
}

.btn-view, .btn-download, .btn-share, .btn-detail, .btn-remove, .btn-redeem, .btn-earn, .btn-invite, .btn-search, .btn-recharge, .btn-withdraw, .btn-checkout, .btn-shopping {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-view, .btn-detail {
    background: var(--primary-color);
    color: white;
}

.btn-download, .btn-share, .btn-remove {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-view:hover, .btn-detail:hover {
    background: var(--primary-dark);
}

.btn-download:hover, .btn-share:hover {
    background: #e0e0e0;
}

/* 历史记录网格 */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.history-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.history-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.history-info {
    padding: 15px;
}

.history-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.history-result {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

/* 购物车 */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-md);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin-bottom: 8px;
}

.cart-item-desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.cart-item-subtotal {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-summary {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 1.3rem;
    font-weight: 600;
}

.cart-total span {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.btn-checkout, .btn-shopping {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* 积分 */
.points-overview {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 30px;
}

.points-balance h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.points-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.points-hint {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.points-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-redeem, .btn-earn, .btn-invite, .btn-recharge, .btn-withdraw {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-redeem:hover, .btn-earn:hover, .btn-invite:hover, .btn-recharge:hover, .btn-withdraw:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 任务列表 */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--border-color);
}

.task-card.completed {
    border-left-color: #4caf50;
    opacity: 0.7;
}

.task-card.pending {
    border-left-color: #ff9800;
}

.task-info h4 {
    margin-bottom: 8px;
}

.task-reward {
    color: var(--primary-color);
    font-weight: 600;
}

.task-status {
    padding: 6px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.task-card.completed .task-status {
    background: #4caf50;
    color: white;
}

.task-card.pending .task-status {
    background: #ff9800;
    color: white;
}

/* 团队统计 */
.team-overview, .wallet-overview, .reconciliation-overview, .rewards-summary, .points-history, .wallet-transactions {
    margin-bottom: 30px;
}

.team-stats, .reconciliation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-item, .stat-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* 钱包 */
.wallet-balance, .rewards-summary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 20px;
}

.balance-value, .rewards-total {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.wallet-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.transaction-type {
    font-weight: 600;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.transaction-amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.transaction-amount.positive {
    color: #4caf50;
}

.transaction-amount.negative {
    color: #f44336;
}

/* 订单 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-number {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.order-status {
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.order-items {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.order-total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* 物流查询 */
.logistics-search {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.logistics-search .form-input {
    flex: 1;
}

.logistics-result {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    min-height: 300px;
}

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

    .user-center-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 10px;
    }

    .user-center-nav-item {
        padding: 10px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .user-center-nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .team-stats, .reconciliation-stats {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
    }

    .order-items {
        flex-wrap: wrap;
    }
}

/* ========================================
   专业舌诊报告样式
   ======================================== */

/* 报告容器 */
.professional-tongue-report {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
}

/* 报告头部 */
.report-header-section {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 40px;
}

.report-main-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.report-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 15px;
}

.report-date-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* 报告章节 */
.report-section {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--primary-color);
}

.section-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.section-icon {
    font-size: 1.8rem;
}

/* 基础信息栏 */
.basic-info-section {
    background: #f8f9ff;
}

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

.info-item {
    background: var(--bg-white);
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.info-label {
    font-weight: 600;
    color: var(--text-gray);
}

.info-value {
    color: var(--text-dark);
    font-weight: 500;
}

.info-note {
    background: rgba(75, 108, 183, 0.1);
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 观察记录表格 */
.observation-section {
    background: #fff8f0;
}

.observation-table {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tongue-observation-table {
    width: 100%;
    border-collapse: collapse;
}

.tongue-observation-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.tongue-observation-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.tongue-observation-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.tongue-observation-table tr:last-child td {
    border-bottom: none;
}

.dimension-cell {
    background: rgba(75, 108, 183, 0.05);
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
}

.observation-cell {
    background: var(--bg-white);
}

.obs-item {
    margin-bottom: 8px;
    line-height: 1.6;
}

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

.meaning-cell {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* 辨证分析 */
.differentiation-section {
    background: #f0fff4;
}

.analysis-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
}

.constitution-badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.analysis-text h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.analysis-text p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* 八纲辨证 */
.eight-principles-box {
    background: rgba(75, 108, 183, 0.05);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.eight-principles-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.principle-item {
    background: var(--bg-white);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 10px;
}

.principle-label {
    font-weight: 600;
    color: var(--text-gray);
}

.principle-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* 病机辨证 */
.pathogenesis-section {
    background: #fff0f6;
}

.pathogenesis-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
}

.analysis-subsection {
    margin-bottom: 25px;
}

.analysis-subsection:last-child {
    margin-bottom: 0;
}

.analysis-subsection h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(75, 108, 183, 0.2);
    padding-bottom: 8px;
}

.organ-location-box,
.nature-analysis-box,
.progress-box {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-sm);
}

.location-item {
    display: flex;
    gap: 15px;
    align-items: start;
}

.location-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.location-content strong,
.nature-item strong,
.progress-box strong {
    color: var(--text-dark);
}

.location-note {
    color: var(--text-gray);
    margin-top: 5px;
    line-height: 1.6;
}

.nature-item,
.progress-box p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.nature-item:last-child,
.progress-box p:last-child {
    margin-bottom: 0;
}

/* 诊断结论 */
.diagnosis-section {
    background: #e3f2fd;
}

.diagnosis-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
}

.syndrome-box {
    margin-bottom: 20px;
}

.syndrome-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.syndrome-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.main-syndrome {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.secondary-syndrome {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.badge-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-value {
    font-size: 1.1rem;
    font-weight: 700;
}

/* 风险警示 */
.risk-warning-box {
    background: #fff3cd;
    border-left: 5px solid #ff9800;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.risk-warning-box h4 {
    color: #e65100;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.warning-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #6d4c41;
}

.warning-content p:last-child {
    margin-bottom: 0;
}

/* 诊疗建议 */
.treatment-section {
    background: #f1f8e9;
}

.treatment-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
}

.treatment-subsection {
    margin-bottom: 30px;
}

.treatment-subsection:last-child {
    margin-bottom: 0;
}

.treatment-subsection h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(75, 108, 183, 0.2);
    padding-bottom: 8px;
}

/* 治则治法 */
.principles-box {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-sm);
}

.principle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.principle-row:last-child {
    margin-bottom: 0;
}

.principle-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.main-principle {
    background: #4caf50;
    color: white;
}

.supplementary-principle {
    background: #ff9800;
    color: white;
}

/* 方剂推荐 */
.formula-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-sm);
}

.formula-header {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.formula-composition {
    margin-bottom: 15px;
    line-height: 1.8;
}

.formula-modifications {
    background: rgba(75, 108, 183, 0.05);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.formula-modifications ul {
    margin-top: 10px;
    padding-left: 20px;
}

.formula-modifications li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.formula-note {
    background: #fff3cd;
    padding: 12px;
    border-radius: var(--radius-sm);
    border-left: 4px solid #ff9800;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 调护指导 */
.guidance-group {
    margin-bottom: 25px;
}

.guidance-group:last-child {
    margin-bottom: 0;
}

.guidance-group h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dietary-guidance,
.lifestyle-suggestions,
.acupuncture-recommendations {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-sm);
}

.dietary-restrictions {
    margin-bottom: 15px;
}

.dietary-restrictions ul,
.lifestyle-suggestions {
    padding-left: 20px;
}

.dietary-restrictions li,
.lifestyle-suggestions li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.food-recommendations {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.food-recommendations ul {
    padding-left: 20px;
    margin-top: 10px;
}

.food-recommendations li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.acupoint-item {
    margin-bottom: 12px;
    padding: 10px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

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

.usage-note {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.followup-reminder {
    background: #e3f2fd;
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 4px solid #2196f3;
    margin-top: 20px;
}

.followup-reminder strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.followup-reminder p {
    line-height: 1.6;
    margin: 0;
}

/* 免责声明 */
.disclaimer-section {
    background: #fafafa;
}

.disclaimer-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
}

.disclaimer-item {
    margin-bottom: 20px;
    line-height: 1.8;
}

.disclaimer-item:last-of-type {
    margin-bottom: 20px;
}

.disclaimer-item strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.disclaimer-item p {
    color: var(--text-gray);
    margin: 0;
}

.disclaimer-highlight {
    background: #fff3cd;
    border-left: 5px solid #ff9800;
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

.disclaimer-highlight strong {
    color: #e65100;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

/* 签发信息 */
.signature-section {
    background: #f5f5f5;
    border-top: 3px solid var(--primary-color);
}

.signature-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
}

.signature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.signature-row:last-child {
    border-bottom: none;
}

.signature-label {
    font-weight: 600;
    color: var(--text-gray);
}

.signature-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
    .professional-tongue-report {
        padding: 20px;
    }

    .report-main-title {
        font-size: 1.8rem;
    }

    .report-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .tongue-observation-table {
        font-size: 0.9rem;
    }

    .tongue-observation-table th,
    .tongue-observation-table td {
        padding: 10px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
    }

    .report-section {
        padding: 15px;
    }

    .signature-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}