/* 五行脉学诊疗决策系统 - 主样式文件 */
/* 基于严格的五级级联诊疗逻辑设计 */

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

/* 根元素和字体设置 */
:root {
    --primary-color: #1e3a8a;      /* 深蓝色主色调 */
    --secondary-color: #3b82f6;    /* 蓝色次色调 */
    --accent-color: #60a5fa;       /* 蓝色强调色 */
    --text-color: #1f2937;         /* 深色文字 */
    --light-text: #6b7280;         /* 浅色文字 */
    --bg-color: #f8fafc;           /* 背景色 */
    --white: #ffffff;              /* 白色 */
    --border-color: #d1d5db;       /* 边框色 */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* 页面标题样式 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--border-radius);
    color: var(--white);
    box-shadow: var(--shadow);
    position: relative;
}

/* 认证入口样式 */
.auth-entry {
    position: absolute;
    top: 20px;
    left: 20px; /* 改为左上角，与移动端保持一致 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 改为左对齐 */
    gap: 10px;
    max-width: 200px;
    z-index: 100;
    background: rgba(30, 58, 138, 0.3); /* 添加半透明背景 */
    border-radius: 10px;
    padding: 10px;
    backdrop-filter: blur(5px); /* 模糊背景效果 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 添加阴影 */
}

.login-btn, .logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    min-width: 60px;
}

.login-btn:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 移动APP链接样式 */
.app-entry {
    margin-bottom: 10px;
}

.mobile-app-link {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.mobile-app-link .qr-icon {
    margin-right: 4px;
    font-size: 1rem;
}

.mobile-app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
}

/* 二维码生成器按钮 */
.qr-generator-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.qr-generator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.guest-status, .user-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 5px;  /* 添加底部间距 */
}

.guest-label, .welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guest-label {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
}

/* 标题与图标组合样式 */
.title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.system-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.system-icon:hover {
    transform: scale(1.1);
}

.title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(30, 64, 175, 0.6);
    letter-spacing: 3px;
    line-height: 1.2;
}

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

/* 提示按钮样式 */
.tip-trigger {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 99;
}

.tip-btn {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.tip-btn .tip-icon {
    font-size: 1.5rem;
    color: white;
}

/* 悬浮提示窗口样式 */
.floating-tip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.floating-tip-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.floating-tip-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    border-radius: 16px 16px 0 0;
}

.floating-tip-icon {
    font-size: 1.8rem;
    margin-right: 12px;
}

.floating-tip-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1.3rem;
    font-weight: 600;
}

.floating-tip-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.floating-tip-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.floating-tip-body {
    padding: 24px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

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

.tip-item-icon {
    font-size: 1.5rem;
    margin-right: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tip-item-content {
    flex: 1;
}

.tip-item-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.tip-item-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

.floating-tip-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: #f9fafb;
    border-radius: 0 0 16px 16px;
}

.floating-tip-footer .btn {
    min-width: 120px;
}

/* 级联选择区域样式 */
.cascade-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.select-group {
    margin-bottom: 25px;
}

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

.select-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    padding-left: 5px;
}

.select-box {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-box:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-box:disabled {
    background: #f3f4f6;
    color: var(--light-text);
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.select-box option {
    padding: 8px;
}

/* 单选按钮组样式 */
.radio-group-container {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.radio-group {
    flex: 1;
    min-width: 200px;
}

.radio-group-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-left: 5px;
}

.radio-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    transition: all 0.3s ease;
    min-width: 60px;
    justify-content: center;
    user-select: none;
}

.radio-option:hover:not(.disabled) {
    border-color: var(--secondary-color);
    background: rgba(59, 130, 246, 0.05);
}

.radio-option.disabled {
    background: #f3f4f6;
    color: var(--light-text);
    cursor: not-allowed;
    border-color: #e5e7eb;
}

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

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

.radio-option input[type="radio"]:checked ~ * {
    color: var(--white);
}

.radio-option:has(input[type="radio"]:checked) {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.radio-text {
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 穴位列表区域样式 */
.acupoint-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.current-path {
    color: var(--light-text);
    font-size: 0.95rem;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.btn-history {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-history:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 穴位列表样式 */
.acupoint-list {
    min-height: 200px;
}

/* 历史记录样式 */
.history-header {
    text-align: center;
    margin-bottom: 20px;
}

.history-header h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

.history-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.history-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.history-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-header-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

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

.btn-delete-history {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-delete-history:hover {
    background: #dc2626;
}

.history-path {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.history-acupoints {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.history-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 15px 20px 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.acupoint-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acupoint-item:hover {
    background: #e0f2fe;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.acupoint-item:active {
    transform: translateY(0);
}

.acupoint-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.acupoint-description {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 5px;
}

.acupoint-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
}

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

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 3% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.close {
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px 25px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 100px);
}

.image-placeholder {
    text-align: center;
    padding: 40px 20px;
}

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

.image-placeholder p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.placeholder-note {
    font-size: 0.9rem;
    color: var(--light-text);
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .title-with-icon {
        padding: 15px;
        gap: 15px;
    }
    
    .system-icon {
        width: 40px;
        height: 40px;
    }
    
    .title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .cascade-section,
    .acupoint-section {
        padding: 20px;
    }
    
    .select-box {
        padding: 15px 16px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .acupoint-item {
        padding: 18px 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    /* 经络模态框移动端优化 */
    .meridian-content-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .meridian-sidebar {
        flex: none;
        order: 2;
    }
    
    .meridian-title-vertical {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .meridian-title-vertical h4 {
        font-size: 1.1rem;
    }
    
    .meridian-image-container {
        order: 1;
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .title-with-icon {
        padding: 12px;
        gap: 12px;
    }
    
    .system-icon {
        width: 35px;
        height: 35px;
    }
    
    .title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cascade-section,
    .acupoint-section {
        padding: 15px;
    }
    
    .select-group label {
        font-size: 0.95rem;
    }

    .acupoint-name {
        font-size: 1rem;
    }

    /* 移动端单选按钮组样式 */
    .radio-group-container {
        flex-direction: row; /* 改为水平排列 */
        gap: 15px; /* 减小间距 */
        align-items: flex-start;
    }

    .radio-group {
        min-width: auto;
        flex: 1; /* 平分空间 */
    }

    .radio-group-label {
        font-size: 0.9rem; /* 稍微缩小标签字体 */
        margin-bottom: 8px; /* 减小底部间距 */
    }

    .radio-buttons {
        gap: 8px; /* 减小按钮间距 */
        justify-content: space-between; /* 按钮均匀分布 */
    }

    .radio-option {
        padding: 8px 12px; /* 减小按钮内边距 */
        min-width: 50px; /* 减小最小宽度 */
        font-size: 16px; /* 防止iOS缩放 */
        flex: 1; /* 按钮平分空间 */
    }

    .radio-text {
        font-size: 0.9rem; /* 稍微缩小文字 */
    }
}

/* =================================== */
/* 诊疗决策系统特有样式 */
/* =================================== */

/* 功能导航按钮 - 横向紧凑布局 */
.function-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 10px 20px;
    backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    gap: 8px;
}

.nav-item:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
}

.nav-item.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-item.active .nav-circle {
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.nav-item:hover .nav-circle {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-label {
    font-size: 13px;
    text-align: center;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

/* 诊疗结果样式 */
.result-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.result-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

.acupoint-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.acupoint-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid var(--secondary-color);
}

.acupoint-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-left-color: var(--primary-color);
}

.acupoint-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.acupoint-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.acupoint-meridian {
    font-size: 0.85rem;
    color: var(--white);
    background: var(--secondary-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* 经络标签基础样式 */
.meridian-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 4px;
}

/* 可点击的经络名称样式 */
.acupoint-meridian.clickable-meridian-image,
.meridian-tag.clickable-meridian-image {
    cursor: pointer !important;
    transition: all 0.3s ease;
    position: relative;
    background: #059669 !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid #047857;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.acupoint-meridian.clickable-meridian-image:hover,
.meridian-tag.clickable-meridian-image:hover {
    background: #047857 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(5, 150, 105, 0.4);
    border-color: #065f46;
}

.acupoint-meridian.clickable-meridian-image:active,
.meridian-tag.clickable-meridian-image:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.4);
}

/* 为可点击的经络名称添加图片提示 */
.acupoint-meridian.clickable-meridian-image::after,
.meridian-tag.clickable-meridian-image::after {
    content: '🖼';
    font-size: 0.75rem;
    margin-left: 6px;
    opacity: 0.9;
    filter: brightness(1.2);
}

/* 历史记录中的穴位链接样式 */
.history-acupoint-link {
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin: 0 2px;
}

.history-acupoint-link:hover {
    background-color: #059669;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.history-acupoint-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.3);
}

.acupoint-method {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.acupoint-theory {
    font-size: 0.85rem;
    color: var(--light-text);
    line-height: 1.5;
    margin-bottom: 15px;
}

.acupoint-actions {
    display: flex;
    gap: 8px;
}

.btn-detail,
.btn-image {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-color);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-image:hover {
    background: #10b981;
    color: var(--white);
    border-color: #10b981;
}

/* 结果操作按钮 */
.result-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px 20px 20px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

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

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #6b7280;
    color: var(--white);
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-info {
    background: #10b981;
    color: var(--white);
}

.btn-info:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 穴位详情样式 */
.acupoint-detail {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.acupoint-detail h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.acupoint-detail p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.acupoint-detail strong {
    color: var(--primary-color);
}

/* 新增：穴位详情页面样式 */
.acupoint-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.acupoint-header h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.acupoint-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.acupoint-meta span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pinyin {
    background: #f0f9ff;
    color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

.code {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.meridian {
    background: var(--secondary-color);
    color: white;
}

.acupoint-content .section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.acupoint-content .section h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acupoint-content .section ul {
    list-style: none;
    padding: 0;
}

.acupoint-content .section li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.acupoint-content .section li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 穴位图片展示样式 */
.acupoint-image-view {
    text-align: center;
    padding: 10px;
}

.image-header {
    margin-bottom: 15px;
}

.image-header h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

.image-container {
    max-width: 100%;
    margin: 0 auto 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    color: var(--light-text);
    font-size: 0.85rem;
    line-height: 1.4;
    font-style: italic;
}

.no-data {
    text-align: center;
    color: var(--light-text);
    font-style: italic;
    margin: 30px 0;
}

.note {
    text-align: center;
    color: var(--light-text);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 经络相关样式 */
.meridian-section {
    border-left-color: #10b981;
}

.meridian-image-container {
    text-align: center;
    margin-top: 15px;
}

.meridian-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.meridian-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.meridian-caption {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-top: 8px;
    font-style: italic;
}

.meridian-note {
    font-size: 0.85rem;
    color: var(--light-text);
    opacity: 0.8;
}

/* 经络模态框样式 */
.meridian-modal-view {
    padding: 10px;
    height: 100%;
}

.meridian-content-wrapper {
    display: flex;
    gap: 20px;
    height: 100%;
    min-height: 400px;
}

.meridian-sidebar {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border-right: 2px solid #e5e7eb;
}

.meridian-title-vertical {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d1d5db;
}

.meridian-title-vertical h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    writing-mode: horizontal-tb;
    font-weight: 600;
}

.meridian-description {
    color: var(--light-text);
    font-size: 0.85rem;
    line-height: 1.4;
}

.meridian-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.meridian-image-container img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.meridian-note {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 6px;
    padding: 12px;
    margin-top: auto;
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.4;
}

.meridian-note p {
    margin: 0 0 6px 0;
}

.meridian-note p:last-child {
    margin-bottom: 0;
}

.error-message {
    color: #ef4444;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* 全屏放大模态框 */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.fullscreen-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    text-align: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

.fullscreen-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fullscreen-hint {
    color: white;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* 经络点击区域样式 */
.meridian-clickable-area {
    cursor: pointer !important;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 10px;
}

.meridian-clickable-area:hover {
    background-color: #f0fdf4 !important;
    border-color: #059669 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.meridian-clickable-area:hover p,
.meridian-clickable-area:hover strong {
    color: #059669 !important;
    transition: color 0.3s ease;
}

.meridian-clickable-area:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.meridian-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 6px;
    pointer-events: none;
}

.meridian-caption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    pointer-events: none;
}

/* 确保其他元素不显示pointer光标 */
.acupoint-detail p,
.acupoint-detail h4,
.acupoint-detail h5,
.acupoint-detail li,
.acupoint-detail span {
    cursor: default !important;
}

/* 只有真正可点击的元素才显示pointer */
button,
.btn,
.clickable-meridian-image {
    cursor: pointer !important;
}

/* 模态框内容默认不显示pointer */
.modal-body {
    cursor: default;
}

.modal-body * {
    cursor: inherit;
}

.modal-body button {
    cursor: pointer !important;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

/* 密码要求样式 */
.password-requirements {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
}

.password-requirements p {
    margin: 0 0 8px 0;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    color: #6b7280;
    font-size: 0.85rem;
}

.password-requirements li {
    margin: 4px 0;
}

/* 紧凑底部管理面板样式 */
.compact-bottom-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
}

.user-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.user-avatar-small .avatar-icon {
    font-size: 1.2rem;
}

.user-details-compact {
    flex: 1;
    min-width: 0;
}

.user-name-compact {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status-compact {
    font-size: 0.75rem;
    color: var(--light-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-buttons-compact {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.compact-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.login-btn-compact:hover {
    background: var(--secondary-color);
}

.logout-btn-compact {
    background: #ef4444;
    color: var(--white);
}

.logout-btn-compact:hover {
    background: #dc2626;
}

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

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

/* 弹出菜单样式 */
.popup-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.menu-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 15px 15px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

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

.menu-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.menu-close {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-color);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
}

.menu-close:hover {
    background: var(--border-color);
}

.menu-sections {
    padding: 20px;
}

.menu-section {
    margin-bottom: 25px;
}

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

.menu-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
}

.menu-item:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.menu-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.status-item-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.status-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-indicator.success {
    background: #dcfce7;
    color: #166534;
}

.status-indicator.error {
    background: #fef2f2;
    color: #dc2626;
}

/* 移动端调整 */
@media (max-width: 768px) {
    .container {
        padding-bottom: 100px; /* 为紧凑底部面板和按钮留出更多空间 */
    }
    
    .result-actions {
        padding: 12px 15px 25px 15px;
        margin-top: 8px;
    }
    
    .history-actions {
        padding: 8px 10px 15px 10px;
        margin-top: 8px;
        gap: 10px;
    }
    
    .compact-bottom-panel {
        height: 55px;
        padding: 0 10px;
        gap: 10px;
    }
    
    .user-avatar-small {
        width: 30px;
        height: 30px;
    }
    
    .user-avatar-small .avatar-icon {
        font-size: 1rem;
    }
    
    .user-name-compact {
        font-size: 0.85rem;
    }
    
    .user-status-compact {
        font-size: 0.7rem;
    }
    
    .compact-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .menu-content {
        max-height: 80vh;
    }
    
    .menu-sections {
        padding: 15px;
    }
    
    .menu-section {
        margin-bottom: 20px;
    }
    
    .menu-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* =================================== */
/* 穴位快速搜索功能样式 */
/* =================================== */

/* 搜索功能样式已整合到功能导航按钮中 */

/* 经络详情页面样式 */
.meridian-details-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.meridians-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.meridian-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.meridian-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

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

.meridian-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.acupoint-count {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.meridian-description {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.meridian-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.meridian-detail-btn, .meridian-image-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.meridian-detail-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.meridian-detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.meridian-image-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.meridian-image-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .function-navigator {
        gap: 10px;
        margin-top: 15px;
        padding: 8px 15px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .function-navigator::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        padding: 6px 10px;
        gap: 6px;
        flex-shrink: 0;
    }
    
    .nav-circle {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .nav-label {
        font-size: 11px;
    }
    
    .meridians-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .meridian-card {
        padding: 15px;
    }
    
    .meridian-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .meridian-detail-btn, .meridian-image-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .function-navigator {
        gap: 8px;
        padding: 6px 12px;
    }
    
    .nav-item {
        padding: 5px 8px;
        gap: 5px;
    }
    
    .nav-circle {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .nav-label {
        font-size: 10px;
    }
}

/* 搜索模态框样式 */
.search-modal-content {
    max-width: 600px;
    width: 90%;
}

.search-container {
    padding: 20px 0;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#acupointSearchInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#acupointSearchInput:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(30, 58, 138, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.search-tips {
    background: #f0f9ff;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.search-tips p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--light-text);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
}

.search-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.search-placeholder .placeholder-note {
    font-size: 14px;
    margin-top: 10px;
}

/* 搜索结果项样式 */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: #f8fafc;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.search-result-meridian {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 5px;
}

.search-result-code {
    color: var(--light-text);
    font-size: 12px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.search-result-actions {
    display: flex;
    gap: 8px;
}

.search-result-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-image {
    background: #10b981;
    color: white;
}

.btn-view-image:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-view-detail {
    background: #3b82f6;
    color: white;
}

.btn-view-detail:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* 无搜索结果样式 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
}

.no-results .no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .search-result-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .search-result-btn {
        width: 100%;
    }
}

/* =================================== */
/* 详情页面中的可点击经络名称样式 */
/* =================================== */

.meridian-clickable {
    cursor: pointer !important;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #60a5fa 100%) !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.meridian-clickable:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    color: white !important;
}

.meridian-clickable:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2) !important;
}

/* 确保在穴位详情中的经络名称有正确的样式 */
.acupoint-meta .meridian-clickable {
    margin-left: 8px;
    font-size: 14px;
}

/* 为经络按钮添加图标效果 */
.meridian-clickable::before {
    content: "🔗";
    margin-right: 4px;
    font-size: 12px;
}

.meridian-clickable:hover::before {
    content: "👁️";
}

/* =================================== */
/* 增强详情页面样式 */
/* =================================== */

/* 穴位分类标签 */
.acupoint-classification {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag, .type-tag {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.type-tag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 操作详情样式 */
.operation-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.needling-info, .moxibustion-info {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.moxibustion-info {
    border-left-color: #f97316;
}

.needling-info h6, .moxibustion-info h6 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
}

.needling-info p, .moxibustion-info p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* 临床经验样式 */
.clinical-experience {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.clinical-experience h6 {
    margin: 0 0 8px 0;
    color: #ea580c;
    font-size: 14px;
    font-weight: 600;
}

.clinical-experience p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #7c2d12;
}

/* 经络循行路线样式 */
.meridian-route-section {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.meridian-route-section h6 {
    color: #0369a1;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.route-description {
    color: #1e40af;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.acupoints-flow {
    margin-top: 12px;
}

.acupoints-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.acupoint-tag {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    white-space: nowrap;
}

.acupoint-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669, #047857);
}

.acupoint-tag:active {
    transform: translateY(0);
}

/* 穴位标签特殊类型样式 */
.acupoint-tag[title*="井穴"] {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.acupoint-tag[title*="荥穴"] {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.acupoint-tag[title*="输穴"] {
    background: linear-gradient(135deg, #ca8a04, #a16207);
}

.acupoint-tag[title*="经穴"] {
    background: linear-gradient(135deg, #059669, #047857);
}

.acupoint-tag[title*="合穴"] {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.acupoint-tag[title*="原穴"] {
    background: linear-gradient(135deg, #db2777, #be185d);
}

.acupoint-tag[title*="络穴"] {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.acupoint-tag[title*="郄穴"] {
    background: linear-gradient(135deg, #7c2d12, #78350f);
}

.acupoint-tag[title*="募穴"] {
    background: linear-gradient(135deg, #4338ca, #3730a3);
}

.acupoint-tag[title*="背俞穴"] {
    background: linear-gradient(135deg, #1f2937, #111827);
}

/* 经络模态框中的循经路线样式 */
.meridian-route-info {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
    border-left: 5px solid #f59e0b;
}

.meridian-route-info h5 {
    color: #92400e;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.route-path {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 500;
}

.route-acupoints-section h6 {
    color: #92400e;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.route-acupoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.route-acupoint-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 6px rgba(59, 130, 246, 0.3);
    text-align: center;
    min-height: 38px;
    white-space: nowrap;
}

.route-acupoint-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.route-acupoint-tag:active {
    transform: translateY(-1px) scale(1.02);
}

/* 穴位分类颜色样式 */
.acupoint-tag.special-point,
.route-acupoint-tag.special-point {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    border-color: #991b1b !important;
}

.acupoint-tag.special-point:hover,
.route-acupoint-tag.special-point:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
}

.acupoint-tag.common-point,
.route-acupoint-tag.common-point {
    background: linear-gradient(135deg, #059669, #047857) !important;
    border-color: #065f46 !important;
}

.acupoint-tag.common-point:hover,
.route-acupoint-tag.common-point:hover {
    background: linear-gradient(135deg, #047857, #065f46) !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4) !important;
}

/* 不可点击的穴位样式 */
.acupoint-tag.non-clickable,
.route-acupoint-tag.non-clickable {
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    position: relative;
}

.acupoint-tag.non-clickable:hover,
.route-acupoint-tag.non-clickable:hover {
    transform: none !important;
    box-shadow: none !important;
}

.acupoint-tag.non-clickable::after,
.route-acupoint-tag.non-clickable::after {
    content: "🚫";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 穴位定位图片样式 */
.acupoint-image-section {
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.acupoint-image-section h5 {
    color: #475569;
    margin-bottom: 15px;
    font-weight: 600;
}

.acupoint-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.acupoint-location-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
}

.acupoint-location-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #3b82f6;
}

/* 大图显示样式 */
.full-image-container {
    text-align: center;
    padding: 20px;
}

.full-size-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 模态框标题返回按钮样式 */
.modal-title-with-back {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.back-to-meridian-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
}

.back-to-meridian-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.back-to-meridian-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.modal-title-text {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

/* 根据穴位顺序的渐变色（保留原有逻辑但优先级降低） */
.route-acupoint-tag[data-order="1"]:not(.special-point):not(.common-point), 
.route-acupoint-tag[data-order="2"]:not(.special-point):not(.common-point),
.route-acupoint-tag[data-order="3"]:not(.special-point):not(.common-point) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.route-acupoint-tag[data-order="4"]:not(.special-point):not(.common-point), 
.route-acupoint-tag[data-order="5"]:not(.special-point):not(.common-point),
.route-acupoint-tag[data-order="6"]:not(.special-point):not(.common-point) {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.route-acupoint-tag[data-order="7"]:not(.special-point):not(.common-point), 
.route-acupoint-tag[data-order="8"]:not(.special-point):not(.common-point),
.route-acupoint-tag[data-order="9"] {
    background: linear-gradient(135deg, #ca8a04, #a16207);
}

.route-acupoint-tag[data-order]:nth-child(n+10) {
    background: linear-gradient(135deg, #059669, #047857);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .operation-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .acupoint-classification {
        justify-content: center;
    }
    
    .acupoints-list {
        gap: 4px;
    }
    
    .acupoint-tag {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}