/* 基本样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #f5f7fa;
}

/* 自定义滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f7fa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 5px 20px;
    flex: 1;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 10px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #3366cc;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

nav ul li a:hover {
    color: #3366cc;
}

/* 按钮样式 */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 15px;
}

.btn-primary {
    background-color: #3366cc;
    color: white;
    box-shadow: 0 2px 6px rgba(51, 102, 204, 0.2);
}

.btn-primary:hover {
    background-color: #2855b2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(51, 102, 204, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #3366cc;
    color: #3366cc;
}

.btn-outline:hover {
    background-color: #f0f5ff;
    transform: translateY(-2px);
}

.btn-pay {
    background-color: #f5a623;
    color: white;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.2);
}

.btn-pay:hover {
    background-color: #e09612;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 166, 35, 0.3);
}

/* 首页样式 */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}

.hero {
    text-align: center;
    padding: 15px 0 20px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #222;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 15px;
    line-height: 1.5;
}

.search-area {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.search-form textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #f8f9fb;
}

.search-form textarea:focus {
    outline: none;
    border-color: #3366cc;
    box-shadow: 0 0 0 3px rgba(51, 102, 204, 0.1);
}

.search-form textarea::-webkit-scrollbar {
    width: 6px;
}

.search-form textarea::-webkit-scrollbar-track {
    background: #f8f9fb;
    border-radius: 3px;
}

.search-form textarea::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 3px;
}

.search-form textarea::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.search-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-tips {
    color: #888;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 36px;
    color: #3366cc;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #222;
}

.feature-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* 客服窗口样式 */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #4a8cff 0%, #2855b2 100%);
    border-radius: 50px;
    width: auto;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 16px rgba(51, 102, 204, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0 25px 0 20px;
}

.chat-widget:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 24px rgba(51, 102, 204, 0.35);
}

.chat-widget:active {
    transform: scale(0.95);
}

.chat-widget i {
    color: white;
    font-size: 26px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    margin-right: 10px;
}

.chat-label {
    color: white;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.qrcode-popup {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 300px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    animation: slideUp 0.3s ease-out;
    transform-origin: bottom right;
}

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

.qrcode-title {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 1px solid #eaeaea;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.qrcode-image:hover {
    transform: scale(1.02);
}

.qrcode-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.close-qrcode {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s, transform 0.3s;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-qrcode:hover {
    color: #333;
    background-color: #f5f5f5;
    transform: rotate(90deg);
}

/* 加载页面样式 */
.loading-page {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    gap: 10px;
    min-height: calc(100vh - 150px);
}

.loading-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.loading-note {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
    max-width: 600px;
    text-align: center;
}

.loading-container {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-progress {
    width: 100%;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3366cc, #5e8ae2);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 0%;
    box-shadow: 0 1px 5px rgba(51, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
    will-change: width;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    animation: shimmer 1.5s infinite;
    transform: skewX(-20deg);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }
    100% {
        transform: translateX(100%) skewX(-20deg);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.progress-label {
    font-size: 16px;
    color: #3366cc;
    font-weight: bold;
}

.progress-percent {
    font-size: 32px;
    color: #333;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
    transition: all 0.3s;
}

/* 进度线 */
.loading-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 22px;
    right: 22px;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.loading-steps {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    margin-top: 10px;
}

.loading-step {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-out;
    opacity: 0.7;
    position: relative;
    border-top: 3px solid #ddd;
    z-index: 1;
}

.loading-step.active {
    opacity: 1;
    box-shadow: 0 8px 20px rgba(51, 102, 204, 0.15);
    transform: translateY(-8px);
    border-top: 3px solid #3366cc;
}

.loading-step.completed {
    opacity: 0.85;
    border-top: 3px solid #4CAF50;
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    color: white;
    transition: all 0.3s;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.active .step-number {
    background-color: #3366cc;
    box-shadow: 0 3px 8px rgba(51, 102, 204, 0.3);
    transform: scale(1.1);
}

.completed .step-number {
    background-color: #4CAF50;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
    transition: color 0.3s;
}

.step-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.active .step-title {
    color: #3366cc;
}

.completed .step-title {
    color: #4CAF50;
}

.progress-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 5px 0 25px;
    padding: 10px;
    background-color: rgba(240, 245, 255, 0.5);
    border-radius: 10px;
}

.progress-label {
    font-size: 16px;
    color: #3366cc;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.progress-percent {
    font-size: 42px;
    color: #333;
    font-weight: bold;
    text-align: center;
    min-width: 110px;
    line-height: 1;
    transition: all 0.3s;
}

@media (max-width: 992px) {
    .loading-steps {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .loading-step {
        min-width: 48%;
        flex: 0 0 48%;
    }
    
    .loading-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .loading-steps {
        flex-direction: column;
        gap: 15px;
        margin-top: 0;
    }
    
    .loading-steps::before {
        display: none;
    }
    
    .loading-step {
        flex-direction: row;
        align-items: center;
        padding: 15px;
        min-width: 100%;
    }
    
    .step-number {
        margin-bottom: 0;
        margin-right: 15px;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .loading-step.active {
        transform: translateX(5px);
    }
    
    .active .step-number {
        transform: scale(1.05);
    }
}

/* 结果页面样式 */
.result-page {
    display: none;
}

.result-header {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* 将标题区域改为与正文相同的样式 */
.result-container {
    max-width: 1100px;
    margin: 0 auto;
}

.result-title-container {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.result-title {
    font-size: 28px;
    color: #222;
    line-height: 1.3;
    font-weight: bold;
    border-left: 4px solid #3366cc;
    padding-left: 15px;
    margin: 5px 0 15px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.result-meta {
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 15px;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
}

.result-meta .dot {
    width: 4px;
    height: 4px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
}

.result-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.result-preview {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #fff;
}

.result-preview::-webkit-scrollbar {
    width: 8px;
}

.result-preview::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 4px;
}

.result-preview::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.result-preview::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.result-preview h2 {
    font-size: 22px;
    margin: 35px 0 20px;
    color: #222;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.result-preview h2:first-child {
    margin-top: 0;
}

.result-preview p {
    margin-bottom: 20px;
    text-align: justify;
}

.blur-overlay {
    position: relative;
    margin-top: 30px;
}

/* 渐变模糊效果 */
.blur-overlay::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
    pointer-events: none;
    z-index: 2;
}

.paywall {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin: 20px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    max-width: 90%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
}

/* 在付费墙下方添加模糊内容 */
.blur-content {
    position: relative;
    margin-top: -60px;
    padding: 30px;
    filter: blur(5px);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    max-height: 300px;
    z-index: 1;
}

.paywall-message {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.paywall-description {
    color: #42526e;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.payment-options {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* 下载按钮位置调整，移到右侧 */
.action-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

/* 解锁后结果页面样式 */
.result-page-unlocked {
    display: none;
}

.result-content-unlocked {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.result-full {
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #3366cc #f0f5ff;
}

.result-full::-webkit-scrollbar {
    width: 8px;
    border-radius: 8px;
}

.result-full::-webkit-scrollbar-track {
    background: #f0f5ff;
    border-radius: 8px;
}

.result-full::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3366cc, #5e8ae2);
    border-radius: 8px;
    border: 2px solid #f0f5ff;
}

.result-full::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2855b2, #3366cc);
}

.result-full h2 {
    font-size: 22px;
    margin: 35px 0 20px;
    color: #222;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.result-full h2:first-child {
    margin-top: 0;
}

.result-full h3 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: #333;
}

.result-full p {
    margin-bottom: 20px;
    text-align: justify;
}

.result-full ul, .result-full ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.result-full li {
    margin-bottom: 8px;
}

.result-full table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.result-full th, .result-full td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.result-full th {
    background-color: #f5f7fa;
    font-weight: bold;
    color: #333;
}

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

.result-full .chart-container {
    margin: 30px 0;
    text-align: center;
}

.result-full .chart-container img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-full .chart-caption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.result-full .reference-list {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.result-full .reference-item {
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 25px;
    text-indent: -25px;
    color: #555;
}

/* 页脚样式 */
footer {
    margin-top: auto;
    text-align: center;
    padding: 10px 0;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #eaeaea;
    background-color: white;
}

/* 表格样式 */
.table-container {
    margin: 20px 0;
    width: 100%;
    overflow-x: auto;
}

.research-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.research-table th {
    background-color: #f0f5ff;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #eaeaea;
}

.research-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eaeaea;
    color: #444;
}

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

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

.research-table tr:hover {
    background-color: #f0f7ff;
}

/* 支付成功提示 */
.payment-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.success-content i {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 15px;
    display: block;
}

.success-content p {
    font-size: 18px;
    color: #333;
    margin: 0;
}

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

/* 参考文献样式 */
.references-list {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reference-item {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
    line-height: 1.5;
    color: #555;
}

.reference-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 字符计数器样式 */
.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    opacity: 0.8;
}

.char-count.over-limit {
    color: #e53935;
    opacity: 1;
}

/* 连接错误样式 */
.connection-error {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-out;
}

.error-message {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 30px;
    text-align: center;
    max-width: 80%;
    width: 400px;
}

.error-message p {
    color: #555;
    font-size: 14px;
    margin: 8px 0;
}

.retry-btn {
    background-color: #3366cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.retry-btn:hover {
    background-color: #2855b5;
}

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

.chinese-count, .ref-count {
    font-size: 0.9rem;
    color: #666;
    display: inline-block;
}

/* 修改字数统计图标 */
.chinese-count::before {
    content: "\f034";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    color: #4285f4;
}

.ref-count::before {
    content: "\f02d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 5px;
    color: #4285f4;
}

/* 备注对话框样式 */
.payment-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.payment-dialog {
    background: white;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-dialog h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    color: #333;
}

.remark-input-container {
    margin: 20px 0;
}

.remark-input-container label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.remark-input-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.remark-tip {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.dialog-buttons .btn {
    margin-left: 10px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.dialog-buttons .btn-cancel {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.dialog-buttons .btn-confirm {
    background: #2c7be5;
    border: 1px solid #2c7be5;
    color: white;
}

/* 支付加载动画样式 */
.payment-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.payment-loading-spinner {
    background: white;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.payment-loading-spinner i {
    font-size: 32px;
    color: #2c7be5;
    margin-bottom: 12px;
}

.payment-loading-spinner p {
    margin: 0;
    color: #333;
}

/* 下载中提示样式 */
.downloading-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s ease-out;
}

.downloading-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.downloading-content i {
    font-size: 36px;
    color: #4CAF50;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

.downloading-content p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 隐藏混合内容错误警告提示 */
.mixed-content-warning,
[class*="error-message"],
[class*="network-error"],
[class*="warning-message"] {
    display: none !important;
}

/* 隐藏Console输出的警告 */
.console-warning,
.console-error {
    display: none !important;
}

/* 隐藏混合内容错误在控制台 */
@media screen {
    body::before {
        content: none !important;
    }
}

/* 语言选择器样式 */
.language-selector {
    position: absolute;
    top: 15px;
    right: 25px;
    display: flex;
    align-items: center;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 15px;
    color: #666;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: #3366cc;
    color: white;
    font-weight: bold;
}

.lang-btn:hover:not(.active) {
    color: #3366cc;
    background-color: rgba(51, 102, 204, 0.1);
}

.lang-divider {
    margin: 0 5px;
    color: #ccc;
    font-size: 12px;
}

/* 解锁页面也应用相同样式 */
.result-page-unlocked .result-title-container {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.result-page-unlocked .result-title {
    font-size: 28px;
    color: #222;
    line-height: 1.3;
    font-weight: bold;
    border-left: 4px solid #3366cc;
    padding-left: 15px;
    margin: 5px 0 15px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.result-page-unlocked .result-meta {
    color: #888;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 15px;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
}

.top-banner {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-banner-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.banner-button {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.banner-button:hover {
    background: rgba(255,255,255,0.3);
}

/* Tab Container Styles */
.tab-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background-color: #f0f2f5;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3366cc 0%, #4a8cff 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(51, 102, 204, 0.3);
}

.tab-btn:hover:not(.active) {
    background-color: #e0e5ee;
    transform: translateY(-2px);
}

/* Option Selector Styles */
.option-selector {
    margin: 10px 0;
    padding: 0 15px;
}

.option-title {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.option-buttons {
    display: flex;
    gap: 10px;
}

.option-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #f5f7fa;
    border-radius: 20px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.option-btn.active {
    background-color: #3366cc;
    color: white;
    border-color: #3366cc;
    box-shadow: 0 2px 5px rgba(51, 102, 204, 0.2);
}

/* Disabled Button Styles */
.btn.disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
}

.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 前沿文献推荐表格样式 */
.literature-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.literature-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.literature-table th {
    background-color: #f0f5ff;
    color: #2c3e50;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e1e6ef;
}

.literature-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e6ef;
    vertical-align: top;
}

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

.literature-table tr:hover {
    background-color: #f9fbff;
}

.literature-title {
    font-weight: 600;
    color: #3366cc;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.4;
}

.literature-basic-info {
    width: 25%;
}

.literature-info-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

.literature-info-value {
    color: #666;
    margin-bottom: 10px;
    display: block;
    line-height: 1.5;
}

.literature-abstract {
    width: 50%;
    line-height: 1.6;
    color: #555;
}

/* 适配移动设备的响应式布局 */
@media (max-width: 768px) {
    .literature-table {
        display: block;
    }
    
    .literature-table thead {
        display: none;
    }
    
    .literature-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e1e6ef;
        border-radius: 8px;
    }
    
    .literature-table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px;
    }
    
    .literature-basic-info, .literature-abstract {
        width: 100%;
    }
    
    .literature-title {
        border-bottom: 1px solid #e1e6ef;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
}

/* 前沿文献推荐结果页特有样式 */
.literature-results {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
    transition: all 0.3s ease;
}

.literature-intro {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.literature-year-range {
    font-weight: 600;
    color: #3366cc;
}

.literature-count {
    font-weight: 600;
    color: #3366cc;
}
