* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f0f2f5;
    -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    position: relative;
    padding-bottom: 80px;
}

.page {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
}

/* ====== 顶部导航 ====== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    background: #1a3a5c;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.top-bar .nav-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.top-bar .nav-back:active { opacity: 0.7; }

.top-bar .nav-back-icon {
    width: 28px;
    height: 28px;
}

.top-bar .logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.top-bar .nav-links a {
    margin-left: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.top-bar .nav-links a:active { opacity: 0.7; }

/* ====== 主视觉 ====== */
.hero {
    background: linear-gradient(160deg, #1a3a5c 0%, #2d5a87 40%, #1a3a5c 100%);
    color: #fff;
    padding: 40px 20px 0;
}

.hero-inner {
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #e85d04, #dc2f02);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(220,47,2,0.4);
    transition: transform 0.15s;
}

.hero-call-btn:active { transform: scale(0.97); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 28px 0 24px;
    margin-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.stat { text-align: center; }
.stat strong { display: block; font-size: 18px; font-weight: 800; }
.stat span { display: block; font-size: 11px; opacity: 0.7; margin-top: 2px; }

/* ====== 服务区 ====== */
.section {
    padding: 28px 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
}

.section-sub {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-card {
    display: block;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 20px 12px 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}

.service-card:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.svc-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    background: #f5f8fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.service-card p {
    font-size: 12px;
    color: #999;
}

/* ====== 优势 ====== */
.features {
    background: #f8f9fb;
    padding: 28px 16px;
}

.features .section-title {
    text-align: left;
}

.features .section-header {
    text-align: left;
    margin-bottom: 20px;
}

.features .section-sub {
    text-align: left;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8edf2, #dce3ea);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1a3a5c;
}

.feature-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #222;
}

.feature-item p {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
}

/* ====== 底部固定呼救栏 ====== */
.call-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 8px 16px 14px;
    background: linear-gradient(to top, #fff 80%, rgba(255,255,255,0));
    z-index: 200;
}

.btn-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e85d04, #dc2f02);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(220,47,2,0.4);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(220,47,2,0.4); }
    50% { box-shadow: 0 4px 24px rgba(220,47,2,0.6); }
}

/* ====== 一键呼救弹窗 ====== */
.rescue-popup {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.rescue-popup-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.rescue-popup-panel {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.rescue-popup-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rescue-popup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rescue-popup-item:active {
    opacity: 0.75;
}

.rescue-popup-info {
    flex: 1;
    min-width: 0;
}

.rescue-popup-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.rescue-popup-desc {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    line-height: 1.4;
}

.rescue-popup-call {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e85d04;
    background: rgba(232, 93, 4, 0.1);
    border-radius: 50%;
}

.rescue-popup-tip {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 24px 0;
}

/* ====== 表单页 ====== */
.form-page {
    padding: 24px 20px;
}

.form-page h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #1a3a5c;
}

.form-page .subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus { border-color: #e85d04; }

.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1a3a5c, #2d5a87);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.btn-primary:active { opacity: 0.9; }

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.form-footer a {
    color: #e85d04;
    font-weight: 600;
}

.msg {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.msg.error {
    display: block;
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #fadbd8;
}

.msg.success {
    display: block;
    background: #f0fff4;
    color: #27ae60;
    border: 1px solid #d4edda;
}

/* ====== 页脚 ====== */
.footer {
    padding: 20px 16px 30px;
    text-align: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    line-height: 1.8;
}

.footer a { color: #1a3a5c; }

/* ====== 内容页 ====== */
.content-block {
    padding: 16px;
    line-height: 1.8;
    color: #444;
}

.content-block h3 {
    font-size: 16px;
    margin: 16px 0 8px;
    color: #222;
}

.content-block p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* ====== PC 端也保持 H5 窄屏样式 ====== */
@media (min-width: 481px) {
    body { background: #e8e8e8; }
    .app, .page { box-shadow: 0 0 20px rgba(0,0,0,0.08); }
}
