/* 基础响应式设计 */
:root {
    --header-height: 80px;
    --mobile-header-height: 60px;
}

/* 通用样式优化 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
}

#header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    flex: 1;
    margin: 0 20px;
}

.main-menu {
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    color: #0C4F36;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
    padding: 10px 5px;
    display: block;
}

.main-menu > li > a:hover {
    color: #0A3D2A;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    z-index: 1000;
    padding: 10px 0;
}

.main-menu > li:hover .submenu {
    display: block;
}

.submenu li a {
    color: #0C4F36;
    text-decoration: none;
    padding: 8px 20px;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.submenu li a:hover {
    background-color: #f5f5f5;
}

.utility-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.utility-icons a {
    color: #888;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.utility-icons a:hover {
    color: #0C4F36;
}

/* 移动端样式 */
@media (max-width: 768px) {
    #header {
        height: var(--mobile-header-height);
    }

    #header .container {
        padding: 0 15px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 15px;
        position: relative;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    .logo-image {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: block !important;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        z-index: 2;
        grid-column: 1;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #0C4F36;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle span:nth-child(1) { top: 6px; }
    .mobile-menu-toggle span:nth-child(2) { top: 14px; }
    .mobile-menu-toggle span:nth-child(3) { top: 22px; }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .utility-icons {
        position: relative;
        z-index: 2;
        margin-left: 0;
        gap: 15px;
        grid-column: 3;
        justify-self: end;
        display: flex;
        align-items: center;
    }

    nav {
        position: fixed;
        top: var(--mobile-header-height);
        left: 15px;
        right: auto;
        width: 280px;
        height: auto;
        max-height: calc(100vh - var(--mobile-header-height) - 30px);
        background: white;
        padding: 10px 0;
        overflow-y: auto;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 1000;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateX(-120%);
        opacity: 0;
    }

    nav.active {
        transform: translateX(0);
        opacity: 1;
    }

    .main-menu {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 5px 0;
        width: 100%;
    }

    .main-menu > li {
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .main-menu > li:last-child {
        border-bottom: none;
    }

    .main-menu > li > a {
        font-size: 1rem;
        padding: 12px 15px;
        width: 100%;
        display: block;
    }

    .submenu {
        position: static;
        box-shadow: none;
        padding: 5px 0;
        background: #f8f8f8;
        display: none;
        width: 100%;
    }

    .submenu li a {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* 桌面端样式 */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    nav {
        display: block;
    }
}

/* 页面特定样式 */
.page-title {
    margin-top: var(--header-height);
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.page-title::before,
.page-title::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 1px;
    background-color: #ddd;
    width: calc(50% - 100px);
}

.page-title::before {
    left: 0;
}

.page-title::after {
    right: 0;
}

.page-title h1 {
    font-size: 1.8rem;
    color: #333;
    margin: 0;
    display: inline-block;
    background: white;
    padding: 0 20px;
    position: relative;
}

.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.radio-label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.radio-label input[type="radio"] {
    margin-left: 6px !important;
    margin-top: 0 !important;
    vertical-align: middle !important;
}

.calendar-toggle {
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.calendar-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
}

.calendar-toggle span {
    display: inline-block;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.submit-btn {
    background: #0C4F36;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #0A3D2A;
}

.divider {
    height: 1px;
    background: #ddd;
    margin: 40px 0;
    position: relative;
}

.result-section {
    display: none;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.result-container {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    align-items: start;
}

.analysis-result {
    font-family: 'Noto Serif SC', 'HYXinYeZhuYanJian', serif;
    line-height: 1.8;
    color: #333;
    padding: 20px;
    text-align: justify;
}

.analysis-result h2 {
    font-size: 24px;
    color: #000;
    margin: 1.5em 0 1em;
    font-weight: bold;
    font-family: 'Noto Serif SC', serif;
}

.analysis-result h3 {
    font-size: 20px;
    color: #000;
    margin: 1.2em 0 1em;
    font-weight: bold;
    font-family: 'Noto Serif SC', serif;
}

.analysis-result p {
    font-size: 16px;
    margin: 1em 0;
    line-height: 1.8;
    font-family: 'Noto Serif SC', 'HYXinYeZhuYanJian', serif;
}

.analysis-result .indent {
    text-indent: 2em;
}

.analysis-result strong {
    color: #000;
    font-weight: bold;
}

/* 移除表格样式 */
.analysis-result table {
    border: none;
    margin: 1em 0;
}

.analysis-result th,
.analysis-result td {
    border: none;
    padding: 8px 0;
    color: #666;
}

.analysis-result th {
    color: #000;
    font-weight: bold;
    background: none;
}

.product-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 25px;
    background: #f8f8f8;
    border-radius: 12px;
}

.product-sidebar h3 {
    color: #333;
    margin: 0 0 25px;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
}

.product-sidebar h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #0C4F36;
    margin: 10px auto 0;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.add-to-cart {
    background: #0C4F36;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: #0A3D2A;
    transform: translateY(-2px);
}

.view-more {
    display: block;
    text-align: center;
    color: #0C4F36;
    text-decoration: none;
    padding: 15px 0;
    font-size: 1rem;
    margin-top: 10px;
    border-top: 1px solid #eee;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #0A3D2A;
}

.product-details {
    padding: 12px;
}

.product-details h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #333;
}

.product-details p {
    margin: 0 0 8px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.product-price {
    color: #0C4F36;
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .result-container {
        grid-template-columns: 1fr;
    }

    .analysis-result {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 30px;
        font-size: 0.95rem;
    }

    .analysis-result table {
        font-size: 0.9rem;
    }

    .product-sidebar {
        position: static;
        margin-top: 30px;
        padding: 20px;
    }

    .product-item img,
    .product-overlay {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .analysis-result {
        font-size: 0.9rem;
    }

    .analysis-result h2 {
        font-size: 1.3rem;
    }

    .analysis-result h3 {
        font-size: 1.1rem;
    }

    .analysis-result table {
        font-size: 0.85rem;
    }

    .product-item img,
    .product-overlay {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .product-item img,
    .product-overlay {
        height: 300px;
    }

    .product-details {
        padding: 10px;
    }

    .product-details h4 {
        font-size: 0.9rem;
    }

    .product-details p {
        font-size: 0.8rem;
    }
}

.export-pdf-btn {
    display: inline-block;
    background: #0C4F36;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.export-pdf-btn:hover {
    background: #0A3D2A;
    transform: translateY(-2px);
}

.export-pdf-btn i {
    margin-right: 8px;
}

/* 支付弹窗样式 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.payment-content {
    background: white;
    padding: 30px 30px 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    z-index: 10;
}

.payment-close:hover {
    color: #333;
}

.payment-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'Noto Serif SC', serif;
}

/* 新增的支付信息样式 */
.payment-message {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin: 0 0 5px;
    border-left: 4px solid #1AAD19;
    text-align: center;
}

.payment-message p {
    margin: 8px 0;
    line-height: 1.6;
    color: #4a90e2;
    font-family: 'SimHei', 'Microsoft YaHei', sans-serif;
    font-size: 1rem;
    font-weight: bold;
}

/* 二维码容器样式 */
.qr-container {
    width: 320px;
    height: auto;
    margin: 20px auto 10px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* 确保二维码图片可以被微信识别 */
.qr-code {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 4px;
    -webkit-touch-callout: default !important; /* 允许系统菜单出现 */
    -webkit-user-select: none; /* 防止选中文本 */
    user-select: none;
    display: block;
    margin: 0 auto;
    background-color: #fff;
    pointer-events: auto !important; /* 确保点击事件不被阻止 */
    touch-action: auto !important; /* 允许所有触摸操作 */
    /* 增加一点内边距和边框，确保二维码清晰可见 */
    padding: 5px;
    border: 1px solid #f0f0f0;
}

/* 长按提示样式 */
.qr-container p {
    margin-top: 12px;
    color: #555;
    font-size: 0.9rem;
}

.qr-container .small-hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
    margin-bottom: 0;
}

/* 按钮容器 */
.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

/* 确认支付按钮 */
.confirm-payment-btn {
    background: #1AAD19;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 5px rgba(26, 173, 25, 0.2);
}

.confirm-payment-btn:hover {
    background: #159b14;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 173, 25, 0.3);
}

.confirm-payment-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(26, 173, 25, 0.2);
}

/* 取消按钮 */
.cancel-payment-btn {
    background: #f5f5f5;
    color: #555;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.cancel-payment-btn:hover {
    background: #e8e8e8;
    color: #333;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .payment-content {
        width: 90%;
        max-width: 350px;
        padding: 25px 20px 20px;
        gap: 10px;
    }
    
    .qr-container {
        width: 300px;
        margin: 10px auto 5px;
    }
    
    /* 确保在小屏幕上二维码也足够大，便于识别 */
    .qr-code {
        width: 280px;
        height: 280px;
        padding: 5px;
    }
    
    .payment-message {
        padding: 12px 10px;
    }
    
    .payment-message p {
        font-size: 0.95rem;
        margin: 6px 0;
    }
    
    .payment-buttons {
        margin-top: 20px;
    }
    
    .qr-container p {
        margin-top: 8px;
        font-size: 0.85rem;
    }
    
    .qr-container .small-hint {
        font-size: 0.7rem;
    }
}

.footer-bottom {
    text-align: center;
}

.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(12, 79, 54, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 20px 0 10px;
}

.progress-inner {
    height: 100%;
    background: #0C4F36;
    width: 0;
    transition: width 1s linear;
}

/* 预计时间样式 */
.estimate-time {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.estimate-time .seconds {
    color: #1E90FF;
    font-size: 24px;
    font-weight: bold;
    margin: 0 5px;
}

/* 设置字体 */
@font-face {
    font-family: 'HYXinYeZhuYanJian';
    src: url('../font/hyxzyj.ttf') format('truetype');
}

/* 加载动画样式 */
.taiji-spinner {
    width: 80px;
    height: 80px;
    background: linear-gradient(90deg, #000 50%, #fff 50%);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 30px;
    animation: spin 2s linear infinite, fade 3s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.taiji-spinner::before,
.taiji-spinner::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
}

.taiji-spinner::before {
    top: 0;
    background: #000;
}

.taiji-spinner::after {
    bottom: 0;
    background: #fff;
}

/* 阴阳鱼内部的小圆 */
.taiji-spinner .inner-circle-black {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.taiji-spinner .inner-circle-white {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

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

@keyframes fade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.loading-text {
    margin: 20px 0;
    font-size: 24px;
    color: #0C4F36;
}

.loading-text span {
    display: inline-block;
    margin: 0 2px;
    animation: fadeInOut 1.5s infinite;
    opacity: 0.3;
}

.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.4s; }
.loading-text span:nth-child(4) { animation-delay: 0.6s; }
.loading-text span:nth-child(5) { animation-delay: 0.8s; }
.loading-text span:nth-child(6) { animation-delay: 1.0s; }
.loading-text span:nth-child(7) { animation-delay: 1.2s; }

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

.analysis-result pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow: auto;
    white-space: pre-wrap; /* 保持换行 */
}

.analysis-result code {
    font-family: 'HYXinYeZhuYanJian', serif;
    color: #333;
}

.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.loading-modal .loading-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 300px;
}

/* 分析结果的整体容器 */
.analysis-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    padding: 25px;
    max-width: 800px;
}

.analysis-header {
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.analysis-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Noto Serif SC', serif;
}

.analysis-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.analysis-meta span {
    display: flex;
    align-items: center;
}

.analysis-meta i {
    margin-right: 5px;
    color: #4a8f62;
}

.print-button {
    position: absolute;
    right: 0;
    top: 0;
    background: #4a8f62;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.print-button:hover {
    background: #3a7a52;
}

.analysis-body {
    line-height: 1.6;
    color: #333;
}

/* Markdown 样式 */
.analysis-body h1 {
    font-size: 1.8rem;
    color: #4a8f62;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaeaea;
    font-family: 'Noto Serif SC', serif;
}

.analysis-body h2 {
    font-size: 1.5rem;
    color: #4a8f62;
    margin: 25px 0 15px;
    font-family: 'Noto Serif SC', serif;
}

.analysis-body h3 {
    font-size: 1.3rem;
    color: #555;
    margin: 20px 0 10px;
    font-family: 'Noto Serif SC', serif;
}

.analysis-body p {
    margin-bottom: 15px;
    font-family: 'Noto Serif SC', serif;
}

.analysis-body ul, .analysis-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.analysis-body li {
    margin-bottom: 8px;
}

.analysis-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.analysis-body th, .analysis-body td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.analysis-body th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.analysis-body tr:nth-child(even) {
    background-color: #f9f9f9;
}

.analysis-body blockquote {
    border-left: 4px solid #4a8f62;
    padding: 10px 15px;
    margin: 15px 0;
    background-color: #f9f9f9;
    color: #555;
}

.analysis-body strong {
    color: #4a8f62;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .analysis-content {
        padding: 15px;
    }
    
    .analysis-header h2 {
        font-size: 1.5rem;
    }
    
    .analysis-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .print-button {
        position: relative;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .analysis-body h1 {
        font-size: 1.5rem;
    }
    
    .analysis-body h2 {
        font-size: 1.3rem;
    }
    
    .analysis-body h3 {
        font-size: 1.1rem;
    }
}

/* 二维码大图显示 */
.qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.qr-large {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

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

.qr-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.qr-hint {
    color: white;
    margin-top: 20px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
}

.qr-save-btn {
    margin-top: 15px;
    background: #1AAD19;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-save-btn:hover {
    background: #159b14;
    transform: translateY(-2px);
}