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

:root {
    --primary-color: #17a589; /* 深绿松石色 */
    --secondary-color: #27ae60; /* 翠绿色 */
    --accent-color: #f39c12; /* 琥珀色 */
    --text-color: #2c3e50; /* 深灰蓝色 */
    --light-text: #546e7a; /* 中灰色 */
    --lightest-text: #78909c; /* 浅灰色 */
    --bg-color: #ffffff;
    --light-bg: #f4f6f7; /* 极浅灰色 */
    --border-color: #e0e6e8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    transition: var(--transition);
}

input, select {
    font-family: inherit;
    outline: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(23, 165, 137, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #138a73;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--light-text);
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: rgba(23, 165, 137, 0.1);
    color: var(--primary-color);
}

.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 头部导航 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: baseline;
}

.logo-en {
    font-size: 16px;
    color: var(--secondary-color);
    margin-left: 8px;
    font-weight: 500;
    opacity: 0.8;
}

/* 联系客服按钮 */
.contact-support {
    display: flex;
    align-items: center;
    position: relative;
}

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.support-btn:hover {
    background-color: #138a73;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.support-btn i {
    font-size: 18px;
}

/* 二维码弹出框 */
.qrcode-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.qrcode-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.qrcode-container {
    background-color: white;
    border-radius: 12px;
    width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.qrcode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.qrcode-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

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

.close-btn:hover {
    background-color: rgba(23, 165, 137, 0.1);
    color: var(--primary-color);
}

.qrcode-content {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.qrcode-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 6px;
}

.qrcode-content p {
    color: var(--light-text);
    font-size: 14px;
    margin: 0;
}

/* 在二维码弹出框前添加小三角箭头 */
.qrcode-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    z-index: 1;
}

/* 主要内容 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-bottom: 60px; /* 为固定页脚留出空间 */
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(244, 246, 247, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* 搜索页面 */
.search-section {
    width: 100%;
    min-height: calc(100vh - 180px); /* 调整高度确保适应一个屏幕 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 居中显示 */
    position: relative;
    overflow: hidden;
}

.search-container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 700px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin-bottom: 40px; /* 减小底部间距 */
}

.search-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.4);
}

.search-title {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(23, 165, 137, 0.1);
    }
    100% {
        text-shadow: 0 0 20px rgba(23, 165, 137, 0.3);
    }
}

.search-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.search-box input {
    flex: 1;
    height: 60px;
    padding: 0 30px;
    font-size: 16px;
    border: none;
    border-radius: 16px 0 0 16px;
    background: rgba(255, 255, 255, 0.9);
}

.search-btn {
    height: 60px;
    min-width: 120px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 0 16px 16px 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.search-btn i {
    font-size: 20px;
    margin-right: 8px;
}

.search-tips {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

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

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(23, 165, 137, 0.2);
    color: var(--text-color);
    border-radius: 100px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tag:hover {
    background: rgba(23, 165, 137, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 搜索背景动画 */
.search-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none; /* 确保背景元素不会干扰用户交互 */
}

.search-animation::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 165, 137, 0.08) 0%, rgba(23, 165, 137, 0) 70%);
    top: -10%;
    left: -10%;
    animation: float 25s ease-in-out infinite alternate;
    will-change: transform;
}

.search-animation::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(39, 174, 96, 0.07) 0%, rgba(39, 174, 96, 0) 70%);
    bottom: -15%;
    right: -15%;
    animation: float 30s ease-in-out infinite alternate-reverse;
    will-change: transform;
}

/* 产品优势气泡 */
.feature-bubble {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 100px;
    height: 100px;
    text-align: center;
    animation-duration: 30s;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-name: bubbleFloat;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    will-change: transform, box-shadow;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.feature-bubble i {
    font-size: 26px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.feature-bubble span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* 从中间底部开始，往上和两边扩散，扩散到容器外部 */
.feature-bubble:nth-child(1) {
    bottom: 5%; /* 上移气泡 */
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
    z-index: 5;
}

.feature-bubble:nth-child(2) {
    bottom: 15%; /* 上移气泡 */
    left: 10%;
    animation-delay: 2s;
    z-index: 4;
}

.feature-bubble:nth-child(3) {
    bottom: 15%; /* 上移气泡 */
    right: 10%;
    animation-delay: 3s;
    z-index: 4;
}

.feature-bubble:nth-child(4) {
    bottom: 25%; /* 上移气泡 */
    left: 2%;
    animation-delay: 4s;
    z-index: 3;
}

.feature-bubble:nth-child(5) {
    bottom: 25%; /* 上移气泡 */
    right: 2%;
    animation-delay: 5s;
    z-index: 3;
}

.feature-bubble:nth-child(6) {
    bottom: 35%; /* 上移气泡 */
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 6s;
    z-index: 2;
}

/* 气泡悬浮效果 */
.feature-bubble:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    z-index: 20 !important;
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(23, 165, 137, 0.3);
}

/* 第一个气泡悬浮效果特殊处理 */
.feature-bubble:nth-child(1):hover {
    transform: translateX(-50%) scale(1.15) translateY(-5px);
}

/* 第六个气泡悬浮效果特殊处理 */
.feature-bubble:nth-child(6):hover {
    transform: translateX(-50%) scale(1.15) translateY(-5px);
}

/* 气泡高亮效果 */
.bubble-highlight {
    transform: scale(1.2) translateY(-8px) !important;
    box-shadow: 0 18px 35px rgba(39, 174, 96, 0.25) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: var(--primary-color) !important;
}

/* 第一个气泡高亮效果特殊处理 */
.feature-bubble:nth-child(1).bubble-highlight {
    transform: translateX(-50%) scale(1.2) translateY(-8px) !important;
}

/* 第六个气泡高亮效果特殊处理 */
.feature-bubble:nth-child(6).bubble-highlight {
    transform: translateX(-50%) scale(1.2) translateY(-8px) !important;
}

/* 特性提示框 */
.feature-tooltip {
    position: absolute;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    max-width: 280px;
    z-index: 100;
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-color);
    pointer-events: none;
}

.feature-tooltip h4 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.feature-tooltip p {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.feature-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--primary-color);
}

@keyframes bubbleFloat {
    0% {
        transform: translate(0, 0);
    }
    15% {
        transform: translate(15px, -15px);
    }
    30% {
        transform: translate(8px, -20px);
    }
    45% {
        transform: translate(-12px, -12px);
    }
    60% {
        transform: translate(-10px, -18px);
    }
    75% {
        transform: translate(10px, -10px);
    }
    90% {
        transform: translate(5px, -15px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* 特殊处理第一个和第六个气泡的浮动动画 */
@keyframes bubbleFloatCentered {
    0% {
        transform: translateX(-50%) translate(0, 0);
    }
    15% {
        transform: translateX(-50%) translate(0, -15px);
    }
    30% {
        transform: translateX(-50%) translate(0, -20px);
    }
    45% {
        transform: translateX(-50%) translate(0, -18px);
    }
    60% {
        transform: translateX(-50%) translate(0, -22px);
    }
    75% {
        transform: translateX(-50%) translate(0, -15px);
    }
    90% {
        transform: translateX(-50%) translate(0, -10px);
    }
    100% {
        transform: translateX(-50%) translate(0, 0);
    }
}

/* 应用特殊动画到居中的气泡 */
.feature-bubble:nth-child(1), .feature-bubble:nth-child(6) {
    animation-name: bubbleFloatCentered;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(15px, 10px) scale(1.02);
    }
    50% {
        transform: translate(30px, -15px) scale(1.05);
    }
    75% {
        transform: translate(-10px, 20px) scale(1.02);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* 结果页面 */
.results-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    flex: 1;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

.results-header {
    display: flex;
    margin-bottom: 30px;
    width: 100%;
    padding: 30px 40px;
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.results-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.compact-search {
    flex: 1;
    display: flex;
    align-items: center;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 46px;
    transition: var(--transition);
    min-width: 200px;
}

.compact-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(23, 165, 137, 0.2);
}

.compact-search input {
    flex: 1;
    height: 100%;
    padding: 0 15px;
    border: none;
    font-size: 15px;
    background: transparent;
}

.search-btn-small {
    height: 100%;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn-small:hover {
    background-color: #138a73;
}

#downloadSelected {
    white-space: nowrap;
    font-size: 14px;
    padding: 10px 16px;
    height: 46px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    padding: 0;
}

.paper-item {
    display: flex;
    gap: 16px;
    padding: 20px 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.paper-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(23, 165, 137, 0.3);
}

.paper-checkbox {
    padding-top: 4px;
}

.paper-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.paper-content {
    flex: 1;
}

.paper-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.paper-authors {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 8px;
}

.paper-journal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.journal-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--light-text);
}

.journal-year {
    font-size: 14px;
    color: var(--lightest-text);
}

.journal-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #e3f2fd;
    color: #0277bd;
}

.journal-tag[data-quartile="Q1"] {
    background-color: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.journal-tag[data-quartile="Q2"] {
    background-color: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.journal-tag[data-quartile="Q3"] {
    background-color: rgba(41, 128, 185, 0.15);
    color: #2980b9;
}

.journal-tag[data-quartile="Q4"] {
    background-color: rgba(142, 142, 142, 0.15);
    color: #8e8e8e;
}

.paper-abstract-container {
    margin-bottom: 16px;
    position: relative;
}

.paper-abstract {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
    max-height: 24px; /* 初始只显示一行 */
    transition: max-height 0.3s ease-out, padding-right 0.2s ease;
    padding-right: 80px; /* 为展开按钮留出空间 */
}

.paper-abstract.expanded {
    max-height: 500px; /* 展开后的高度 */
    padding-right: 0; /* 展开后不需要右侧留空 */
}

.abstract-toggle {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 13px;
    color: var(--primary-color);
    background: none;
    padding: 4px 0;
    border: none;
    border-bottom: 1px dashed var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    user-select: none;
}

.abstract-toggle:hover {
    color: #138a73;
}

.results-end {
    text-align: center;
    padding: 30px 0;
    color: var(--light-text);
    font-size: 16px;
    margin: 0;
}

.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    gap: 12px;
    margin: 0;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--light-bg);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* 页脚 */
.footer {
    background-color: var(--light-bg);
    padding: 15px 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.footer-bottom {
    color: var(--lightest-text);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1280px) {
    .app-container {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .search-container {
        padding: 30px;
        max-width: 700px;
    }
    
    .search-title {
        font-size: 36px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* 缩小气泡尺寸 */
    .feature-bubble {
        width: 90px;
        height: 90px;
    }
    
    .feature-bubble i {
        font-size: 24px;
    }
    
    .feature-bubble span {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 16px;
        box-shadow: none;
    }
    
    .search-box input {
        border-radius: 16px;
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        height: 55px;
        margin-bottom: 10px;
    }
    
    .search-btn {
        border-radius: 16px;
        width: 100%;
    }
    
    .results-section {
        padding: 0;
    }
    
    .results-header {
        padding: 20px;
    }
    
    .results-filter {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    /* 搜索页面调整 */
    .search-section {
        justify-content: center;
        min-height: calc(100vh - 150px); /* 减小移动端最小高度 */
    }
    
    /* 调整搜索容器 */
    .search-container {
        width: 90%;
        padding: 20px 15px;
        margin-bottom: 30px;
        background: rgba(255, 255, 255, 0.4);
    }
    
    /* 结果页面搜索框调整 */
    .results-search-box {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .compact-search {
        flex: 1 1 60%;
        min-width: 0;
    }
    
    #downloadSelected {
        flex: 1 1 100%;
        order: 3;
        font-size: 13px;
        padding: 8px 12px;
        margin-top: 5px;
    }
    
    .results-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* 调整气泡布局 */
    .feature-bubble {
        width: 70px;
        height: 70px;
        padding: 10px;
    }
    
    .feature-bubble i {
        font-size: 20px;
    }
    
    .feature-bubble span {
        font-size: 11px;
    }
    
    /* 移动设备上隐藏部分气泡 */
    .feature-bubble:nth-child(5),
    .feature-bubble:nth-child(6) {
        display: none;
    }
    
    /* 重新调整剩余气泡的位置 */
    .feature-bubble:nth-child(1) {
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-bubble:nth-child(2) {
        bottom: 15%;
        left: 3%;
    }
    
    .feature-bubble:nth-child(3) {
        bottom: 15%;
        right: 3%;
    }
    
    .feature-bubble:nth-child(4) {
        bottom: 25%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 悬浮效果处理 */
    .feature-bubble:nth-child(1):hover, 
    .feature-bubble:nth-child(4):hover {
        transform: translateX(-50%) scale(1.15) translateY(-5px);
    }
    
    /* 高亮效果处理 */
    .feature-bubble:nth-child(1).bubble-highlight,
    .feature-bubble:nth-child(4).bubble-highlight {
        transform: translateX(-50%) scale(1.2) translateY(-8px) !important;
    }
    
    /* 应用特殊动画到居中的气泡 */
    .feature-bubble:nth-child(1), 
    .feature-bubble:nth-child(4) {
        animation-name: bubbleFloatCentered;
    }
    
    /* 提示框样式调整 */
    .feature-tooltip {
        max-width: 200px;
        padding: 10px 15px;
    }
    
    .paper-item {
        padding: 20px;
    }
    
    .support-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    /* 在移动端调整二维码弹出框位置 */
    .qrcode-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -40%) scale(0.9);
        right: auto;
    }
    
    .qrcode-popup.active {
        transform: translate(-50%, -50%) scale(1);
    }
    
    /* 移动端隐藏小三角箭头 */
    .qrcode-popup::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-title {
        font-size: 28px;
    }
    
    /* 搜索页面调整 */
    .search-section {
        padding-top: 0;
        min-height: calc(100vh - 130px); /* 进一步减小最小高度 */
    }
    
    /* 调整搜索容器 */
    .search-container {
        width: 95%;
        padding: 15px;
        margin-bottom: 30px;
        background: rgba(255, 255, 255, 0.5);
    }
    
    /* 结果页面搜索框调整 */
    .search-btn-small {
        width: 40px;
    }
    
    .compact-search input {
        padding: 0 10px;
        font-size: 14px;
    }
    
    /* 调整页脚 */
    .footer {
        padding: 10px 20px;
    }
    
    .results-section {
        padding: 0;
    }
    
    .results-header {
        padding: 15px;
    }
    
    .paper-item {
        padding: 15px;
    }
    
    .paper-actions {
        gap: 8px;
    }
    
    /* 在最小屏幕上只显示两个气泡 */
    .feature-bubble:nth-child(3),
    .feature-bubble:nth-child(4) {
        display: none;
    }
    
    /* 调整剩余气泡位置 */
    .feature-bubble:nth-child(1) {
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .feature-bubble:nth-child(2) {
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 悬浮效果处理 */
    .feature-bubble:nth-child(2):hover {
        transform: translateX(-50%) scale(1.15) translateY(-5px);
    }
    
    /* 高亮效果处理 */
    .feature-bubble:nth-child(2).bubble-highlight {
        transform: translateX(-50%) scale(1.2) translateY(-8px) !important;
    }
    
    /* 应用特殊动画到所有气泡 */
    .feature-bubble:nth-child(1),
    .feature-bubble:nth-child(2) {
        animation-name: bubbleFloatCentered;
    }
    
    /* 进一步减小气泡尺寸 */
    .feature-bubble {
        width: 60px;
        height: 60px;
        padding: 8px;
    }
    
    .feature-bubble i {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .feature-bubble span {
        font-size: 10px;
    }
    
    .support-btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .qrcode-container {
        width: 95%;
    }
    
    .qrcode-img {
        width: 180px;
        height: 180px;
    }
}

/* 响应式设计 - 屏幕高度适配 */
@media (min-height: 800px) {
    /* 在较高的屏幕上增加顶部内边距，使布局更加居中 */
    .search-section {
        padding-top: 80px;
    }
}

@media (max-height: 700px) {
    /* 在较低的屏幕上减小间距，确保所有内容可见 */
    .search-section {
        padding-top: 0;
        min-height: calc(100vh - 130px);
    }
    
    .search-container {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    .footer {
        padding: 10px 40px;
    }
    
    /* 调整气泡位置 */
    .feature-bubble:nth-child(1) {
        bottom: 0%;
    }
    
    .feature-bubble:nth-child(2),
    .feature-bubble:nth-child(3) {
        bottom: 10%;
    }
    
    .feature-bubble:nth-child(4),
    .feature-bubble:nth-child(5) {
        bottom: 20%;
    }
    
    .feature-bubble:nth-child(6) {
        bottom: 25%;
    }
}

@media (max-width: 480px) and (max-height: 600px) {
    /* 在小屏幕且高度较低时进一步优化 */
    .search-section {
        padding-top: 10px;
        min-height: 380px;
    }
    
    .search-container {
        margin-bottom: 20px;
        padding: 15px 10px;
    }
    
    /* 进一步减小气泡尺寸 */
    .feature-bubble {
        width: 50px;
        height: 50px;
        padding: 6px;
    }
    
    .feature-bubble i {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .feature-bubble span {
        font-size: 9px;
    }
}

/* 没有结果时的提示样式 */
.no-results {
    padding: 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--light-text);
    font-size: 16px;
    margin: 20px 0;
}

/* 错误详情样式 */
.error-details {
    font-size: 14px;
    color: #e74c3c;
    display: block;
    margin-top: 8px;
    font-style: italic;
}

/* 定制国内外研究气泡样式 */
.feature-bubble:nth-child(4) {
    width: 120px !important;
    height: 120px !important;
}

.feature-bubble:nth-child(4) span {
    white-space: nowrap;
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 分页按钮样式 */
.pagination-button {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #17a589, #1abc9c);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(23, 165, 137, 0.2);
}

.pagination-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 165, 137, 0.3);
    background: linear-gradient(135deg, #1abc9c, #17a589);
}

.pagination-button:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

/* 页码信息样式 */
.page-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Loading指示器样式 */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

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