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

html, body {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* 顶部Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left {
    flex: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #d32f2f;
    margin-right: 10px;
    font-family: Arial, sans-serif;
}

.site-name {
    font-size: 16px;
    color: #333;
    font-weight: normal;
}

.site-desc {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 200px;
    padding: 5px 30px 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

.search-icon {
    position: absolute;
    right: 8px;
    font-size: 14px;
    color: #666;
}

.header-link {
    color: #333;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 10px;
}

.header-link:hover {
    color: #1976d2;
}

/* 主导航栏 */
.main-nav {
    background: #009688;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 14px;
    display: inline-block;
    transition: background 0.3s;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* 主体内容区 */
.main-wrapper {
    background: #f5f5f5;
    min-height: calc(100vh - 150px);
    padding: 20px 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

/* 左侧边栏 */
.sidebar {
    width: 200px;
    background: #fff;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.sidebar-title {
    background: #009688;
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-item {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-item a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.sidebar-item a:hover {
    background: #f5f5f5;
}

.sidebar-item.active a {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: bold;
}

.sidebar-news {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #fffbf0;
}

.news-link {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.news-link:hover {
    color: #1976d2;
}

.news-date {
    display: block;
    color: #999;
    font-size: 11px;
}

/* 主内容区 */
.main-content {
    flex: 1;
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
}

.page-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #009688;
}

/* 温馨提示 */
.warm-tip {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 3px;
}

.tip-title {
    color: #f57c00;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

.tip-content {
    color: #333;
    font-size: 13px;
    line-height: 1.8;
}

/* 查询表单 */
.query-form-section {
    margin-bottom: 20px;
}

.form-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.code-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    height: 38px;
}

.code-input:focus {
    outline: none;
    border-color: #009688;
    box-shadow: 0 0 0 2px rgba(0, 150, 136, 0.1);
}

.query-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    height: 38px;
    transition: background 0.3s;
}

.query-btn:hover {
    background: #1565c0;
}

/* 重要提示 */
.important-notes {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid #009688;
}

.important-notes p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.text-link {
    color: #1976d2;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* 提供的验证 */
.verification-types {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.section-title {
    font-size: 15px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}

.type-list {
    margin-left: 20px;
    font-size: 13px;
    color: #666;
    line-height: 2;
}

.type-list li {
    margin-bottom: 8px;
}

/* 其他查询按钮 */
.other-queries {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.other-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.other-btn:hover {
    background: #bbdefb;
    border-color: #64b5f6;
}

/* 查询结果 */
.query-result {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

/* PDF预览模式下的查询结果 */
.query-result[style*="position: fixed"] {
    background: transparent !important;
    border: none !important; /* 无边框 */
    margin: 0 !important;
    padding: 0 !important;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #e0e0e0; /* 保留底部边框线用于分隔 */
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-back {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #f5f5f5;
    border-color: #999;
}

.error-message {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 15px;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-download {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #45a049;
}

/* PDF查看器 - 预览模式，无工具栏无侧边栏 */
.pdf-viewer-container {
    width: 100%;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: none;
    background: #fff;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    z-index: 999;
    border: none !important; /* 无边框 */
}

.pdf-canvas {
    display: block;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pdf-pages {
    padding: 0;
    padding-top: 70px; /* 为固定按钮栏留出空间 */
    text-align: center;
    background: #fff;
    margin: 0;
    min-height: 100vh;
    border: none !important; /* 无边框 */
}

.pdf-pages canvas {
    display: block;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
}

.pdf-pages canvas:first-child {
    margin-top: 0;
}

.pdf-pages canvas:not(:last-child) {
    margin-bottom: 20px;
}

/* 隐藏PDF查看器的工具栏和侧边栏 */
.pdf-viewer::-webkit-scrollbar {
    width: 8px;
}

.pdf-viewer::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pdf-viewer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.pdf-viewer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 返回首页 */
.return-home {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.return-link {
    color: #1976d2;
    text-decoration: none;
    font-size: 13px;
}

.return-link:hover {
    text-decoration: underline;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-overlay p {
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-item {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
    }

    .search-input {
        width: 150px;
    }

    .main-content {
        padding: 20px;
    }

    .other-queries {
        flex-direction: column;
    }

    .other-btn {
        width: 100%;
    }

    .pdf-viewer {
        height: 600px;
    }
}

@media (max-width: 480px) {
    .logo-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-desc {
        font-size: 11px;
    }

    .nav-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .main-content {
        padding: 15px;
    }

    .pdf-viewer {
        height: 500px;
    }
}
