/* ===== 极简专业白 · 紧凑调优 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #1e2a3a;
    font-size: 9px;           /* 基础字体缩小 */
    line-height: 1.3;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 顶栏 — 更紧凑 */
.header {
    background: #ffffff;
    padding: 4px 0 3px;
    border-bottom: 1px solid #e9edf2;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.header-content {
    padding: 0 10px;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 14px;           
    color: #2c3e50;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.1s;
}

.back-btn:hover {
    background: #f0f2f5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    font-size: 10px;           
    color: #1e2a3a;
}

.logo-img {
    width: 18px;               
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
}

.header-title {
    font-size: 10px;
    font-weight: 500;
    color: #5e6f8d;
    margin-right: 20px;
}

/* 页面容器 — 缩小间隔 */
.page-container {
    padding: 8px 10px;
}

/* 卡片通用设计 */
.service-cards,
.customer-service,
.faq-section,
.report-section,
.extra-tools {
    margin-bottom: 10px;        
}

/* 服务卡片网格 (4项保持2x2, 更密) */
.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;                   
}

.service-card {
    background: white;
    border-radius: 8px;          
    padding: 8px 4px;            
    border: 1px solid #eef2f6;
    transition: all 0.15s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.service-card:hover {
    border-color: #a0b3cc;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,20,40,0.06);
}

.service-icon {
    width: 34px;                 
    height: 34px;
    border-radius: 50%;
    margin: 0 auto 4px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;             
    color: white;
}

.service-title {
    font-weight: 600;
    font-size: 9px;              
    color: #1e2a3a;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

.service-desc {
    font-size: 7.5px;            
    color: #6b7a8f;
    line-height: 1.2;
}

/* 客服入口 */
.customer-service {
    background: white;
    border-radius: 10px;
    padding: 12px 12px;           
    border: 1px solid #eef2f6;
}

.section-title {
    font-size: 11px;              
    font-weight: 600;
    color: #1e2a3a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-title i {
    color: #3b7cbf;
    font-size: 12px;
}

.contact-methods {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
}

.contact-btn {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 2px;            
    font-size: 8px;               
    color: #2a3c54;
    cursor: pointer;
    transition: 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 500;
}

.contact-btn:hover {
    background: #f8fafd;
    border-color: #9ab0cc;
}

.contact-info {
    background: #f9fbfd;
    border-radius: 6px;
    padding: 8px;
    font-size: 8px;               
    color: #4a5b73;
    border: 1px solid #edf2f7;
    line-height: 1.4;
}

.contact-info p {
    margin-bottom: 3px;
}

/* FAQ 列表 */
.faq-section {
    background: white;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eef2f6;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.faq-item {
    background: #f9fbfd;
    border-radius: 6px;
    padding: 8px 8px;
    border: 1px solid #edf2f7;
    transition: 0.1s;
    cursor: pointer;
}

.faq-item:hover {
    background: #f1f6fc;
}

.faq-question {
    font-weight: 600;
    font-size: 9px;
    color: #1e2a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    font-size: 8px;
    color: #4b5c72;
    line-height: 1.3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.faq-item.active .faq-answer {
    max-height: 120px;
    margin-top: 5px;
}

.faq-arrow {
    font-size: 8px;
    color: #8f9fb1;
    transition: transform 0.2s;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* 问题上报 */
.report-section {
    background: white;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eef2f6;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-label {
    font-size: 8px;
    font-weight: 600;
    color: #2a405c;
}

.form-control {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #dde3ea;
    background: white;
    font-size: 9px;
    color: #1e2a3a;
    transition: 0.1s;
}

.form-control:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 2px rgba(44,62,80,0.05);
}

textarea.form-control {
    min-height: 60px;
    resize: vertical;
}

.submit-btn {
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2px;
}

.submit-btn:hover {
    background: #1e2f3f;
    box-shadow: 0 2px 6px rgba(0,20,30,0.1);
}

/* 新增实用模块 — 进度查询 & 知识库 */
.extra-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 8px 6px;
    border: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.1s;
}

.tool-card:hover {
    border-color: #a0b3cc;
    background: #fcfdff;
}

.tool-icon {
    width: 28px;
    height: 28px;
    background: #f0f4fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #2c3e50;
}

.tool-text {
    flex: 1;
}

.tool-text h4 {
    font-size: 9px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #1e2a3a;
}

.tool-text p {
    font-size: 7.5px;
    color: #6f7e95;
}

/* 弹窗 — 保留原有风格但微调紧凑 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.15s;
    padding: 10px;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(15px) scale(0.98);
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border: 1px solid #eef2f6;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f7;
    position: relative;
    background: #2c3e50;
    color: white;
    border-radius: 11px 11px 0 0;
}

.modal-title {
    font-weight: 600;
    font-size: 11px;
}

.modal-subtitle {
    font-size: 8px;
    opacity: 0.85;
}

.modal-close {
    position: absolute;
    top: 8px; right: 8px;
    width: 20px; height: 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

.modal-content {
    padding: 12px;
}

.success-icon {
    text-align: center;
    font-size: 32px;
    color: #2ecc71;
    margin-bottom: 6px;
}

.success-title {
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    color: #2ecc71;
    margin-bottom: 4px;
}

.success-text {
    text-align: center;
    font-size: 8px;
    color: #4a5f7a;
    line-height: 1.3;
    margin-bottom: 12px;
}

.modal-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

@media (max-width: 400px) {
    .extra-tools { grid-template-columns: 1fr; }
}