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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f8f9fb;
    color: #333;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f8f9fb;
    padding-bottom: 20px;
}

/* 头部 */
.header {
    background: #4A90E2;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
}

.header h1 {
    font-size: 17px;
    font-weight: 500;
}

/* 页面标题栏 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: #4A90E2;
    color: #fff;
}

.header-logo {
    height: 100%;
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.back-btn {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    width: 30px;
}

.page-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.placeholder {
    width: 30px;
}

.menu-btn {
    font-size: 20px;
    color: #fff;
    width: 30px;
    text-align: right;
    cursor: pointer;
}

/* 横幅 */
.banner {
    background: linear-gradient(135deg, #4A90E2 0%, #5B9FFF 100%);
    padding: 50px 15px 22px;
    margin: 0;
}

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

.banner-text {
    color: #fff;
}

.banner-text h2 {
    font-size: 26px;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.banner-text p {
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.4;
}

.banner-image img {
    width: 60px;
    height: 60px;
}

/* 工具区域 */
.tools-section {
    padding: 16px 15px 12px;
}

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

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8edf5;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.06);
}

.tool-item:active {
    background: #f0f7ff;
    transform: translateY(2px);
    box-shadow: 0 1px 4px rgba(74, 144, 226, 0.12);
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 17px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(74, 144, 226, 0.25);
}

.tool-icon-search {
    background: linear-gradient(135deg, #4A90E2 0%, #5B9FFF 100%);
}
.tool-icon-risk {
    background: linear-gradient(135deg, #5B9FFF 0%, #7AB8FF 100%);
}
.tool-icon-job {
    background: linear-gradient(135deg, #7AB8FF 0%, #99CCFF 100%);
}

.tool-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* 政策法规 */
.policy-section {
    padding: 4px 15px 12px;
}

.policy-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8edf5;
    overflow: hidden;
}

.policy-item {
    padding: 11px 15px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f6f8;
    transition: background 0.15s;
}

.policy-item:last-child {
    border-bottom: none;
}

.policy-item::after {
    content: '>';
    color: #c5d0de;
    font-size: 13px;
    font-weight: bold;
}

.policy-item:active {
    background: #f0f7ff;
}

/* 查看更多按钮 */
.more-btn-wrap {
    padding: 8px 15px 12px;
    text-align: center;
}

.more-btn {
    display: inline-block;
    padding: 6px 24px;
    font-size: 13px;
    color: #4A90E2;
    background: #fff;
    border: 1px solid #4A90E2;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.more-btn:active {
    background: #4A90E2;
    color: #fff;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 750px;
    width: 100%;
    height: 48px;
    display: flex;
    background: #fff;
    border-top: 1px solid #e8edf5;
    box-shadow: 0 -2px 10px rgba(74, 144, 226, 0.08);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    text-decoration: none;
    color: #999;
    transition: color 0.2s;
}

.nav-item.active {
    color: #4A90E2;
}

.nav-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 11px;
}

/* 查询页面横幅 */
.query-banner {
    background: linear-gradient(135deg, #4A90E2 0%, #5B9FFF 100%);
    background-image: url('../img/shouye.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px 30px;
    position: relative;
}

.query-banner .banner-text h1 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.query-banner .banner-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* 查询表单卡片 */
.query-form-card {
    margin: -20px 15px 0;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
    position: relative;
    z-index: 2;
}

/* 查询表单 */
.query-form {
    padding: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9e3f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 协议复选框区域 */
.agreement-section {
    margin: 18px 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    margin-top: 1px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item span {
    flex: 1;
    line-height: 1.5;
}

.link-text {
    color: #4A90E2;
    text-decoration: none;
}

.link-text:active {
    opacity: 0.7;
}

.btn-primary {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #4A90E2 0%, #5B9FFF 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 查询统计标签 */
.query-stats-tag {
    display: inline-block;
    background: linear-gradient(135deg, #E8F3FF 0%, #F0F7FF 100%);
    color: #4A90E2;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(74, 144, 226, 0.15);
}

.query-stats-tag span {
    font-weight: 500;
}

/* 历史查询记录 */
.query-history {
    margin: 0 15px 15px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
}

.history-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f6f8;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    padding: 8px 0;
}

.history-time {
    color: #999;
    font-size: 12px;
}

.history-info {
    flex: 1;
    margin: 0 10px;
}

.history-status {
    font-size: 12px;
    color: #4A90E2;
}

.history-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* 案件详细信息区域 */
.case-info-section {
    margin: 0 15px 15px;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
}

.case-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f6f8;
}

.case-info-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.report-sample-btn {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #4A90E2 0%, #5B9FFF 100%);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
    font-weight: 500;
}

.report-sample-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(74, 144, 226, 0.4);
}

.case-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.case-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #fafbfc;
    border-radius: 8px;
}

.case-info-icon {
    margin-bottom: 8px;
    position: relative;
}

.case-info-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #ff9800;
    border-radius: 50%;
    border: 2px solid #fff;
}

.case-info-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 查询结果 */
.query-result {
    padding: 0 15px 15px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-header h3 {
    font-size: 14px;
    font-weight: 500;
}

.result-count {
    font-size: 12px;
    color: #999;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-item {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 8px;
    padding: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.result-row:last-child {
    margin-bottom: 0;
}

.result-label {
    color: #888;
    width: 70px;
    flex-shrink: 0;
}

.result-value {
    flex: 1;
    color: #333;
    text-align: right;
}

.result-value.status {
    color: #4A90E2;
}

.result-description {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f5f6f8;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* 无结果提示 */
.no-result {
    text-align: center;
    padding: 40px 15px;
}

.no-result-icon {
    font-size: 40px;
    margin-bottom: 10px;
    color: #c5d0de;
}

.no-result p {
    font-size: 13px;
    color: #999;
}

/* 我的页面 */
.mine-page {
    background: #f8f9fb;
}

.user-card {
    background: linear-gradient(135deg, #4A90E2 0%, #5B9FFF 100%);
    padding: 18px 15px;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    color: #fff;
}

.user-info {
    color: #fff;
}

.user-id, .user-expire {
    font-size: 12px;
    margin-bottom: 3px;
}

.user-id span, .user-expire span {
    font-weight: 500;
}

.menu-section {
    margin: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8edf5;
    overflow: hidden;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f6f8;
    font-size: 14px;
    transition: background 0.15s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #f0f7ff;
}

.menu-left {
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 16px;
    margin-right: 10px;
}

.menu-title {
    font-size: 14px;
}

.menu-arrow {
    font-size: 18px;
    color: #c5d0de;
}

.info-section {
    margin: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8edf5;
    padding: 12px 15px;
}

.info-section h4 {
    font-size: 13px;
    margin-bottom: 8px;
    color: #333;
}

.info-section p {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
}
