/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5a8f7b;
    --secondary-color: #f8b400;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f9f9f9;
    --border-color: #eaeaea;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button, .btn-primary, .btn-secondary, .btn-outline {
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    text-align: center; /* 水平居中 */
}

.btn-primary:hover {
    background-color: #449d44;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);

}

.btn-secondary:hover {
    background-color: #e0a400;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li.active a::after {
    width: 100%;
}

.nav-links li.active a {
    color: var(--primary-color);
}

.btn-login {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 15px !important;
    border-radius: var(--border-radius);
}

.btn-login:hover {
    background-color: #4a7a68;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }
}

/* 首页样式 */
/* 英雄区域 */
.hero {
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 平台介绍 */
.intro {
    padding: 60px 0;
    background-color: white;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--light-text);
}

.intro-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.intro-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background-color: #f0f0f0;
    transition: transform 0.5s ease;
}

.intro-image img:hover {
    transform: scale(1.05);
}

/* 平台优势 */
.advantages {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.advantage-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-card .icon {
    width: 70px;
    height: 70px;
    background-color: rgba(90, 143, 123, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-card .icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.advantage-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.advantage-card p {
    color: var(--light-text);
}

/* 用户评价 */
.testimonials {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    min-width: 350px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}


.quote {
    margin-bottom: 20px;
}

.quote i {
    color: var(--secondary-color);
    font-size: 20px;
}

.quote p {
    margin: 10px 0;
    font-style: italic;
    color: var(--light-text);
}

.user {
    display: flex;
    text-align: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #f0f0f0;
}

.user-info h4 {
    color: var(--primary-color);
}

.user-info p {
    font-size: 14px;
    color: var(--light-text);
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

/* 页面底部 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    border-radius: 50%;
}

.footer-logo h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ddd;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    position: relative; /* 添加相对定位，以便照片可以绝对定位 */
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* 二维码照片容器 */
.social-photo {
    position: absolute;
    bottom: 130%;  /* 显示在图标上方 */
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    pointer-events: none; /* 防止图片阻挡鼠标事件 */
}

/* 鼠标悬停时显示 */
.social-icon:hover .social-photo {
    opacity: 1 !important;
    visibility: visible !important;
    bottom: 150% !important;
}

/* 二维码图片样式 */
.social-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.social-photo p {
    text-align: center;
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* 小三角指示器 */
.social-photo::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/*.copyright {*/
/*    text-align: center;*/
/*    padding-top: 20px;*/
/*    border-top: 1px solid rgba(255, 255, 255, 0.1);*/
/*    font-size: 14px;*/
/*    color: #aaa;*/
/*}*/

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
     /* 添加以下两行作为双保险 */
    margin: auto; /* 自动外边距 */
    transform: translateX(0); /* 清除可能的偏移 */
}

.modal-lg {
    max-width: 800px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: var(--transition);
}

.close:hover {
    color: var(--text-color);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--light-text);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group label i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: var(--light-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group textarea {
    padding: 12px 15px;
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 143, 123, 0.2);
}

.form-group.remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group.remember input {
    width: auto;
    margin-right: 10px;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    margin-bottom: 15px;
    color: var(--light-text);
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: var(--border-color);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-login .social-icons {
    justify-content: center;
}

.social-login .social-icons a {
    background-color: #f5f5f5;
    color: var(--text-color);
}

/* 在线舌诊页面样式 */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 舌诊流程 */
.process {
    padding: 50px 0;
    background-color: white;
    margin-bottom: 50px;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(90, 143, 123, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.step h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step p {
    color: var(--light-text);
}

.step-arrow {
    font-size: 24px;
    color: var(--primary-color);
}

/* 舌诊上传区域 */
.diagnosis-area {
    padding: 50px 0;
    background-color: var(--light-bg);
    margin-bottom: 50px;
}

.diagnosis-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.upload-area, .result-area {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.upload-area h2, .result-area h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.upload-box:hover {
    border-color: var(--primary-color);
}

.upload-placeholder i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.upload-placeholder p {
    font-size: 18px;
    margin-bottom: 10px;
}

.upload-placeholder span {
    font-size: 14px;
    color: var(--light-text);
}

.upload-preview {
    position: relative;
}

.upload-preview img {
    max-height: 300px;
    border-radius: var(--border-radius);
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove:hover {
    background-color: #ff6b6b;
    color: white;
}

.upload-tips {
    background-color: rgba(248, 180, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
}

.upload-tips h4 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.upload-tips h4 i {
    margin-right: 10px;
}

.upload-tips ul {
    padding-left: 20px;
}

.upload-tips ul li {
    margin-bottom: 8px;
    color: var(--light-text);
    list-style-type: disc;
}

.btn-analyze {
    width: 100%;
    padding: 12px;
    font-size: 18px;
}

.btn-analyze:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 分析结果区域 */
.loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(90, 143, 123, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-summary {
    margin-bottom: 30px;
    text-align: center;
}

.result-summary h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}
.health-suggestions {
    margin-bottom: 30px;
    text-align: center;
}
div.health-suggestions h3{
    margin-bottom: 15px;
    color: var(--primary-color);
}
.suggestion-list {
    list-style-type: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.suggestion-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag {
    background-color: rgba(90, 143, 123, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.result-details {
    margin-bottom: 30px;
}

.result-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.result-item ul {
    padding-left: 20px;
    margin-top: 10px;
}

.result-item ul li {
    margin-bottom: 5px;
    list-style-type: disc;
}

.recommended-prescriptions {
    margin-bottom: 30px;
}

.recommended-prescriptions h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.prescription-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.prescription-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}

.prescription-card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.prescription-card p {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--light-text);
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    text-align: center; /* 水平居中 */
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-menu {
    display: block;
}
/* 个人信息卡片样式 */
.info-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.info-card h3.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.info-item label {
    width: 100px;
    font-weight: bold;
    color: #555;
}

.info-item span {
    flex-grow: 1;
    color: #333;
}

.btn-edit {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-edit:hover {
    background-color: #45a049;
}
.btn-edit, .btn-save {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.btn-edit:hover, .btn-save:hover {
    background-color: #45a049;
}

.edit-input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: calc(100% - 100px);
}
/* 历史记录 */
.history-section {
    padding: 50px 0;
    background-color: white;
}

.login-prompt {
    text-align: center;
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.login-prompt i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-prompt p {
    margin-bottom: 20px;
    font-size: 18px;
}

.history-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search-box i {
    font-size: 23px; /* 减小图标字体大小 */
}
.search-box input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.search-box i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--light-text);
}
.filter-options {
    flex: 0 0 auto;
    width: 150px;
}

.filter-options select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    background-color: white;
}

.history-table {
    overflow-x: auto;
    margin-bottom: 20px;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, .history-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    background-color: var(--light-bg);
    font-weight: 500;
    color: var(--primary-color);
}

.history-table tr:hover {
    background-color: rgba(90, 143, 123, 0.05);
}

.btn-icon {
    width: 28px;
    height: 28px;
    background-color: transparent !important; /* 移除背景色 */
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    cursor: pointer;
    transition: var(--transition);
    vertical-align: middle; /* 垂直居中 */
    margin-top: 5px;
}
.btn-icon i {
    font-size: 23px; /* 减小图标字体大小 */
}
.btn-icon:hover {
    background-color: transparent !important; /* 保持透明背景 */
    transform: scale(1.1); /* 保留轻微缩放效果 */
}
.btn-icon:hover i {
    color: #449d44 !important; /* 直接改变图标颜色为浅绿色 */
    filter: brightness(1.2); /* 增加亮度 */
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center; /* 垂直居中 */
    gap: 8px;
}
/* 页码数字按钮 */
.page-numbers button {
    font-size: 14px;  /* 数字字体大小 */
    font-weight: 500;
    color: #3c763d;
}

/* 激活状态 */
.page-btn.active {
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 禁用状态 */
.page-btn:disabled {
    background-color: #85c5e5;
    cursor: not-allowed;
    opacity: 0.7;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .page-btn {
        width: 28px;
        height: 28px;
        margin: 0 3px;
    }
    .page-btn i {
        font-size: 18px;
    }
    .page-numbers button {
        font-size: 13px;
    }
}
.page-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 8px; /* 改为圆角矩形 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 5px;
}
.page-btn i {
    font-size: 23px; /* 减小图标字体大小 */
}
.page-btn.active, .page-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 专家咨询 */
.expert-section {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.expert-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.expert-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.expert-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-10px);
}

.expert-avatar {
    height: 200px;
    overflow: hidden;
}

.expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.expert-info {
    padding: 20px;
    text-align: center;
}

.expert-info h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.expert-title {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.expert-desc {
    margin-bottom: 20px;
    color: var(--light-text);
    font-size: 15px;
}

/* 经典方剂页面样式 */
/* 搜索区域 */
.search-section {
    padding: 30px 0;
    background-color: white;
    margin-bottom: 50px;
}

.search-container {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 16px;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: #4a7a68;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 500;
    color: var(--text-color);
}

.filter-tags .tag {
    cursor: pointer;
    transition: var(--transition);
}

.filter-tags .tag:hover,
.filter-tags .tag.active {
    background-color: var(--primary-color);
    color: white;
}

/* 方剂列表 */
.prescriptions-list {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.prescriptions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.prescription-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.prescription-item:hover {
    transform: translateY(-5px);
}

.prescription-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prescription-header h3 {
    font-size: 20px;
}

.dynasty {
    font-size: 14px;
    opacity: 0.8;
}

.prescription-content {
    display: flex;
    padding: 20px;
}

.prescription-image {
    width: 150px;
    height: 150px;
    margin-right: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.prescription-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.prescription-info {
    flex: 1;
}

.info-item {
    margin-bottom: 15px;
}

.info-item h4 {
    margin-bottom: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.info-item h4 i {
    margin-right: 8px;
}

.info-item p {
    color: var(--light-text);
    font-size: 15px;
}

.tongue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-details {
    margin-top: 10px;
}

/* 方剂详情模态框 */
.prescription-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.prescription-detail-header h2 {
    color: var(--primary-color);
    font-size: 28px;
}

.prescription-detail-content {
    display: flex;
    gap: 30px;
}

.prescription-detail-image {
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.prescription-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f0f0f0;
}

.prescription-detail-info {
    flex: 1;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.detail-section h3 i {
    margin-right: 10px;
}

.herbs-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.herbs-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.herb-name {
    font-weight: 500;
}

.herb-weight {
    color: var(--light-text);
}

.tongue-images {
    display: flex;
    gap: 20px;
}

.tongue-image {
    text-align: center;
}

.tongue-image img {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    background-color: #f0f0f0;
}

.tongue-image p {
    font-size: 14px;
    color: var(--light-text);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .prescription-detail-content {
        flex-direction: column;
    }
    
    .prescription-detail-image {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .diagnosis-container {
        grid-template-columns: 1fr;
    }
    
    .prescription-content {
        flex-direction: column;
    }
    
    .prescription-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .intro-content {
        flex-direction: column;
    }
    
    .tongue-images {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions button {
        width: 100%;
    }
}
