/* 基本样式设置 */
* {
    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 {
    padding-top: 70px;
    background-color: #f9faff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    padding: 30px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    box-shadow: 0 4px 20px rgba(100, 66, 209, 0.08);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 26px;
    color: #6442d1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #7d5bea 0%, #6442d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name-en {
    font-size: 20px;
    font-weight: bold;
    color: #6442d1;
    line-height: 1.2;
}

.logo-name-zh {
    font-size: 14px;
    color: #777;
    line-height: 1.2;
}

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

/* 导航菜单样式 */
.navbar-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 6px 2px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #6442d1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, #7d5bea 0%, #6442d1 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #6442d1;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
}

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

.btn-primary {
    background: linear-gradient(135deg, #7d5bea 0%, #6442d1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 66, 209, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b48e0 0%, #5639bb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 66, 209, 0.4);
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transition: all 0.6s;
}

.btn-primary:hover:before {
    left: 100%;
}

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

.btn-outline:hover {
    background-color: rgba(100, 66, 209, 0.05);
    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);
}

.purchase-btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 10px;
}

/* 首页布局调整 */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 150px);
    padding: 10px 0 30px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

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

.hero h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #222;
    letter-spacing: 0.5px;
    font-weight: bold;
}

.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: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.search-form textarea {
    width: 100%;
    height: 130px;
    padding: 16px 20px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    resize: none;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #f8f9fb;
    background-color: #f8fafc;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-form textarea:focus {
    outline: none;
    border-color: #6442d1;
    box-shadow: 0 0 0 3px rgba(100, 66, 209, 0.1);
    background-color: white;
}

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

.search-tips {
    color: #888;
    font-size: 14px;
    overflow: hidden;
    line-height: 1.5;
    flex: 1;
}

/* 更新特性卡片样式 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 5px;
    margin-bottom: 10px;
    width: 100%;
}

.feature-card {
    background-color: white;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(240, 240, 250, 0.8);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7d5bea, #6442d1);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(100, 66, 209, 0.12);
    border-color: rgba(100, 66, 209, 0.1);
}

.feature-card:hover:before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #f4f1ff;
    border-radius: 50%;
    font-size: 28px;
    color: #6442d1;
    position: relative;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #f4f1ff 0%, #ede8ff 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(100, 66, 209, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #222;
    font-weight: 600;
}

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

/* 客服窗口样式 */
.chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #7d5bea 0%, #6442d1 100%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 16px rgba(100, 66, 209, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

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

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

.chat-widget i {
    color: white;
    font-size: 26px;
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 3px 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: 1000;
    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-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;
    overflow: hidden;
}

.qrcode-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

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

.close-qrcode {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-qrcode:hover {
    background-color: #f0f0f0;
    color: #333;
}

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

/* 加载页面样式 */
.loading-page {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 130px);
    margin: 0;
    padding: 20px 0 0;
    height: 100%;
    overflow: hidden;
}

.loading-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(135deg, #6442d1 0%, #8e75e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.loading-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    height: 100%;
}

/* 原子动画优化 - 更紧凑 */
.loading-animation {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 0;
}

.atom-spinner {
    position: relative;
    width: 120px;
    height: 120px;
}

.atom-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #6442d1;
    border-radius: 50%;
    box-shadow: 0 0 15px 3px rgba(100, 66, 209, 0.6);
    animation: pulse 2s infinite;
}

.atom-orbit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(100, 66, 209, 0.3);
    border-radius: 50%;
}

.atom-orbit:nth-child(1) {
    animation: orbit1 3s linear infinite;
}

.atom-orbit:nth-child(2) {
    animation: orbit2 3.5s linear infinite;
}

.atom-orbit:nth-child(3) {
    animation: orbit3 4s linear infinite;
}

.atom-orbit::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #8e75e8;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(142, 117, 232, 0.5);
}

.atom-orbit:nth-child(1)::before {
    top: 10%;
    right: 10%;
}

.atom-orbit:nth-child(2)::before {
    top: 80%;
    left: 10%;
}

.atom-orbit:nth-child(3)::before {
    top: 40%;
    left: 80%;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px 3px rgba(100, 66, 209, 0.6); }
    50% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 20px 5px rgba(100, 66, 209, 0.8); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 15px 3px rgba(100, 66, 209, 0.6); }
}

@keyframes orbit1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orbit2 {
    0% { transform: rotate(240deg); }
    100% { transform: rotate(600deg); }
}

@keyframes orbit3 {
    0% { transform: rotate(120deg); }
    100% { transform: rotate(480deg); }
}

/* 进度条包装器 */
.loading-progress-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 5px 0;
}

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

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

.progress-label {
    font-size: 14px;
    color: #6442d1;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.progress-percent {
    font-size: 36px;
    font-weight: 700;
    min-width: 70px;
    text-align: right;
    background: linear-gradient(135deg, #6442d1 0%, #8e75e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(100, 66, 209, 0.2);
}

/* 进度条效果 */
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6442d1, #8e75e8);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 0%;
    box-shadow: 0 1px 5px rgba(100, 66, 209, 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-text {
    display: inline-block;
    position: relative;
    overflow: hidden;
    animation: textChange 8s ease-in-out infinite;
}

@keyframes textChange {
    0%, 25% { opacity: 1; }
    27%, 30% { opacity: 0; }
    32%, 55% { opacity: 1; }
    57%, 60% { opacity: 0; }
    62%, 85% { opacity: 1; }
    87%, 90% { opacity: 0; }
    92%, 100% { opacity: 1; }
}

.progress-label i {
    font-size: 16px;
    color: #8e75e8;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 加载步骤优化 - 更紧凑 */
.loading-steps {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    margin: 10px 0;
}

.loading-step {
    flex: 1;
    min-width: 0;
    max-width: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-out;
    opacity: 0.65;
    position: relative;
    border-left: 3px solid #ddd;
    border-top: none;
    z-index: 1;
    transform: translateY(0);
    gap: 12px;
}

.loading-step.active {
    opacity: 1;
    box-shadow: 0 6px 20px rgba(100, 66, 209, 0.15);
    transform: translateY(-5px);
    border-left: 3px solid #6442d1;
}

.loading-step.completed {
    opacity: 0.85;
    border-left: 3px solid #6442d1;
}

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

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-weight: bold;
    color: #999;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 步骤视觉效果 */
.active .step-number {
    background: linear-gradient(135deg, #7d5bea 0%, #6442d1 100%);
    box-shadow: 0 3px 8px rgba(100, 66, 209, 0.3);
    transform: scale(1.15);
}

.completed .step-number {
    background: linear-gradient(135deg, #7d5bea 0%, #6442d1 100%);
    box-shadow: 0 3px 8px rgba(100, 66, 209, 0.3);
}

.step-title i {
    font-size: 16px;
    transition: all 0.3s;
    opacity: 0.7;
    color: #999;
}

.active .step-title {
    color: #6442d1;
}

.active .step-title i {
    color: #6442d1;
    transform: scale(1.2);
    opacity: 1;
}

.completed .step-title {
    color: #6442d1;
}

.completed .step-title i {
    color: #6442d1;
}

/* 科学小知识区域优化 */
.loading-facts {
    margin: 5px 0 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(242, 240, 255, 0.8) 0%, rgba(230, 225, 255, 0.8) 100%);
    border-radius: 8px;
    border-left: 4px solid #6442d1;
    animation: factPulse 5s infinite alternate;
}

.fact-text {
    color: #444;
    font-size: 14px;
    line-height: 1.4;
    font-style: italic;
}

/* 科学小知识动画 */
@keyframes factPulse {
    0% { box-shadow: 0 4px 15px rgba(100, 66, 209, 0.05); }
    100% { box-shadow: 0 8px 25px rgba(100, 66, 209, 0.15); }
}

.fact-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fact-icon {
    font-size: 20px;
    color: #6442d1;
    animation: swing 4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-8deg); }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .loading-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .loading-step {
        min-width: 48%;
        flex: 0 0 48%;
    }
    
    .loading-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .loading-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .loading-step {
        min-width: 100%;
        flex: 0 0 100%;
    }
    
    .atom-spinner {
        width: 100px;
        height: 100px;
        margin: 10px 0;
    }
    
    .progress-percent {
        font-size: 30px;
    }
    
    .loading-page {
        padding-top: 10px;
    }
}

@media (max-width: 576px) {
    .loading-animation {
        margin: 10px 0 20px;
    }
    
    .atom-spinner {
        width: 100px;
        height: 100px;
    }
    
    .fact-text {
        font-size: 14px;
    }
}

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

.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;
    padding-bottom: 30px;
}

.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 #6442d1;
    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;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #bdc3c7 #fff;
    max-height: 250px;
    overflow: hidden;
}

.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: -120px;
    z-index: 5;
}

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

.paywall {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 248, 255, 0.95) 100%);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(100, 66, 209, 0.15);
    max-width: 90%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* 添加新样式：预览更多提示样式 */
.preview-more {
    text-align: center;
    font-size: 18px;
    color: #6442d1;
    margin: 20px 0;
    font-weight: bold;
}

/* 修改模糊内容样式 */
.blur-content {
    position: relative;
    margin-top: -150px;
    padding: 30px;
    filter: blur(5px);
    opacity: 0.7;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    max-height: 300px;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.9));
    border-radius: 0 0 12px 12px;
}

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

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

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

/* 解锁后页面样式 */
.result-page-unlocked {
    display: none;
    margin-top: 20px;
}

.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: #6442d1 #f0f5ff;
}

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

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

.result-full::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6442d1, #8e75e8);
    border-radius: 8px;
    border: 2px solid #f0f5ff;
}

.result-full::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5639bb, #6442d1);
}

.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: -20px;
    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: #f8f5ff;
    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: #f8f5ff;
}

/* 支付成功提示 */
.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: #6442d1;
    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: #5639bb;
}

@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: #6442d1;
}

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

/* 备注对话框样式 */
.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;
    }
}

/* 移动端菜单交互 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #6442d1;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    color: #5639bb;
}

/* 媒体查询 */
@media (max-width: 992px) {
    .navbar-container {
        padding: 0 20px;
    }
    
    .nav-links li {
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-menu {
        flex-direction: column;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav-links.show {
        max-height: 300px;
        padding: 10px 0;
    }
    
    .nav-links li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 10px;
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
}

.search-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(100, 66, 209, 0.15);
}

.action-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* 解锁页面样式 */
.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 #6442d1;
    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;
}
