* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
   /* padding: 20px; */
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #007cba;
    color: white;
}

.main {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #007cba;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    height: 200px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-block {
    display: block;
    width: 100%;
}

.result-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.result-box.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-box.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-box.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.result-box.info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 14px;
    margin-top: 30px;
}

.character-count {
    font-weight: bold;
    color: #007cba;
}

.file-upload input[type="file"],
.text-input textarea {
    margin-top: 10px;
}

.tabs {
    display: flex;
    margin-bottom: 0;
}

.tab {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    background-color: #e9ecef;
    cursor: pointer;
    border: 1px solid #ddd;
    border-bottom: none;
    transition: all 0.3s;
}

.tab:first-child {
    border-right: none;
    border-top-left-radius: 4px;
}

.tab:last-child {
    border-top-right-radius: 4px;
}

.tab.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
    font-weight: bold;
    color: #007bff;
}

.tab-content {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 4px 4px 4px;
    margin-top: -1px;
}

.tab-pane {
    display: none;
    padding: 20px;
}

.tab-pane.active {
    display: block;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
    margin: 10px auto;
}

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

/* 修复重复嵌套容器问题 */
.main .container {
    padding: 0;
    box-shadow: none;
}

.instructions-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.database-section h3,
.qa-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.database-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.database-list li {
    flex: 1 1 45%; /* 每行两个项目，留一些间距 */
    margin: 5px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
    min-width: 200px;
}

.database-list li:nth-child(odd) {
    margin-right: 10px;
}

.database-list li:nth-child(even) {
    margin-left: 10px;
}

.icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.qa-item {
    margin-bottom: 20px;
}

.qa-item h4 {
    margin: 10px 0 5px 0;
    color: #555;
}

.qa-item p {
    margin: 5px 0;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .database-list li {
        flex: 1 1 100%; /* 在小屏幕上每行一个项目 */
        margin: 5px 0;
    }
    
    .database-list li:nth-child(odd),
    .database-list li:nth-child(even) {
        margin-left: 0;
        margin-right: 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
	nav ul li a{
		padding: 4px 5px !important;
		font-size:13px;
	}
}

/* 论文列表页面样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

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

.table-hover-custom tr:hover {
    background-color: #f5f5f5;
}

/* API日志页面样式 */
.table-responsive-md {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 下载页面样式 */
.report-info {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.report-info h3 {
    margin-top: 0;
}

.report-actions {
    margin-top: 15px;
}

.report-actions a {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Tab切换样式 */
.input-tabs {
    margin-top: 10px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.tab-button {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin-bottom: -1px;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: #e9ecef;
}

.tab-button.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    font-weight: bold;
    color: #007bff;
}

.tab-content {
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 4px 4px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 订单号输入框样式 */
.order-no-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.order-no-input {
    max-width: 300px;
    margin-right: 10px;
}

.remove-order-no,
#add-order-no {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 30px;
    height: 30px;
}

.remove-order-no {
    background-color: #dc3545;
}

.remove-order-no:hover,
#add-order-no:hover {
    opacity: 0.9;
}

/* 网络状态提示 */
.network-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
}

.network-status.online {
    background-color: #28a745;
}

.network-status.offline {
    background-color: #dc3545;
}

/* 服务选择卡片样式 */
.service-selection {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.service-card.active {
    border-color: #007cba;
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
}

.service-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 1em;
    opacity: 0.8;
    line-height: 1.4;
}

/* 日期输入框样式优化 - 让整个区域都可以点击 */
input[type="date"] {
    position: relative;
    cursor: pointer;
}

/* 增大日期输入框的可点击区域 */
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    color: transparent;
    background: transparent;
    cursor: pointer;
}