/* ===== 公共样式（全局共享） ===== */

/* 全局重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 基础排版 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    padding: 16px;
    display: flex;
    justify-content: center;
}
 
/* 内容区 */ 
.app-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== 顶部区域 ===== */
.header-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1677ff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.back-btn:hover {
    background: #0958d9;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #0958d9;
}

.header-subtitle {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 底部区域 */
.bottom-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.bottom-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.bottom-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* ===== 底部推荐区域（沿用首页卡片区样式） ===== */
.entry-card-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.entry-card {
    flex: 1;
    max-width: 340px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 32px 24px;
    border: 1px solid #e8ecf2;
    border-radius: 18px;
    background: #ffffff;
    color: #1f2329;
    cursor: pointer;
    transition: all .3s ease;
    font-family: inherit;
    text-decoration: none;
}
.entry-card:hover {
    transform: translateY(-4px);
    border-color: #91caff;
    box-shadow: 0 14px 32px rgba(22, 119, 255, 0.14);
}
.entry-card.recorded .entry-card-icon { background: #f6ffed; color: #52c41a; }
.entry-card.self-check .entry-card-icon { background: #e6f4ff; color: #0958d9; }
.entry-card.restricted .entry-card-icon { background: #fffbe6; color: #faad14; }
.entry-card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e6f4ff;
    color: #1677ff;
    transition: all .3s ease;
    box-shadow: 0 2px 8px rgba(22, 119, 255, .1);
}
.entry-card-icon svg { width: 26px; height: 26px; }
.entry-card:hover .entry-card-icon {
    background: #1677ff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, .3);
}
.entry-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2329;
    text-align: center;
}
.entry-card-desc {
    min-height: 44px;
    font-size: 16px;
    line-height: 1.6;
    color: #5f6b7a;
    text-align: center;
}
.entry-card-action {
    margin-top: auto;
    font-size: 16px;
    font-weight: 600;
    color: #0958d9;
    text-align: center;
}
.entry-card-action::after {
    content: " →";
    display: inline-block;
    transition: transform .18s ease;
}
.entry-card:hover .entry-card-action::after { transform: translate(3px); }

/* ===== 通用弹窗（div 实现） ===== */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modal-mask-in 0.2s ease;
}
.modal-box {
    width: 320px;
    max-width: 84vw;
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    animation: modal-box-in 0.2s ease;
}
.modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-icon svg { width: 28px; height: 28px; }
.modal-icon.info { background: #e6f4ff; color: #1677ff; }
.modal-icon.success { background: #f6ffed; color: #52c41a; }
.modal-icon.warning { background: #fffbe6; color: #faad14; }
.modal-icon.error { background: #fff2f0; color: #ff4d4f; }
.modal-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    word-break: break-word;
}
.modal-btn {
    min-width: 96px;
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background: #1677ff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-btn:hover { background: #0958d9; }
@keyframes modal-mask-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-box-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ===== 地址搜索联想下拉 ===== */
.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.suggest-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 9999;
}
.suggest-list.show { display: block; }
.suggest-item {
    padding: 8px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggest-item:hover,
.suggest-item.active {
    background: #f5f5f5;
    color: #1677ff;
}

/* ===== 联系方式 ===== */
.contact-section { margin-top: 8px; }
.contact-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e6f4ff;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.contact-item:hover {
    background: #bae0ff;
    box-shadow: 0 2px 8px rgba(22, 119, 255, 0.15);
}
.contact-item:last-child { margin-bottom: 0; }
.contact-phone { color: #1677ff; font-weight: 600; }