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

/* iOS 横屏时不要自动放大字号（保持设计尺寸） */
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    flex: 1;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-svg {
    width: 56px;
    height: 56px;
    display: block;
}
h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
}
.subtitle {
    font-size: 16px;
    color: #888;
    margin-top: 4px;
    letter-spacing: 3px;
}

/* 登录按钮 */
.login-btn {
    padding: 10px 24px;
    background-color: #4F6D7A;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.login-btn:hover { background-color: #3A525E; }

/* 功能卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    /* SVG 默认 inline，会留出基线空隙，导致图标看起来不居中 */
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.feature-card h3 { font-size: 16px; color: #444; margin: 8px 0 4px; }
.feature-card p { font-size: 13px; color: #999; margin: 0; }

/* 下载按钮 */
.download-section {
    margin-top: 40px;
    text-align: center;
}
.download-btn {
    padding: 14px 48px;
    background-color: #4F6D7A;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.download-btn:hover { background-color: #3A525E; }

/* 下载二维码卡片 */
.download-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 24px 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.qr-box {
    width: 168px;
    height: 168px;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-fallback { font-size: 12px; color: #aaa; }
.qr-tip {
    font-size: 13px;
    color: #888;
    margin: 14px 0 18px;
}
.download-card .download-btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 30px;
}

/* 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
    /* 内容（或手机键盘）把可视区域压小时，整体可滚动，不会把输入框顶出屏幕 */
    padding: 24px 16px;
    overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px 40px;
    width: 360px;
    max-width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    /* margin:auto + 父级 overflow:auto：高度不足时居中，超出时可滚动（不会顶部被裁掉） */
    margin: auto;
    max-height: 100%;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 24px; cursor: pointer;
    color: #999; background: none; border: none;
}
.modal-close:hover { color: #333; }
.modal-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; }

.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.login-tab {
    flex: 1; padding: 10px; cursor: pointer;
    color: #999; font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.login-tab.active {
    color: #4F6D7A;
    border-bottom-color: #4F6D7A;
    font-weight: 500;
}
.login-content { display: none; text-align: left; }
.login-content.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group label { font-size: 13px; color: #666; display: block; margin-bottom: 4px; }
.form-group input {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 8px;
    font-size: 16px; outline: none; transition: border 0.2s;
}
.form-group input:focus { border-color: #4F6D7A; }
.submit-btn {
    width: 100%; padding: 12px;
    background-color: #4F6D7A; color: #fff;
    border: none; border-radius: 8px;
    font-size: 16px; cursor: pointer; margin-top: 8px;
}
.submit-btn:hover { background-color: #3A525E; }

.wechat-area { text-align: center; padding: 10px 0; }
.wechat-qr {
    width: 180px; height: 180px;
    background: #f0f0f0; border-radius: 12px;
    margin: 0 auto 16px; display: flex;
    align-items: center; justify-content: center;
    color: #aaa; font-size: 14px; border: 1px dashed #ccc;
}
.wechat-tip { font-size: 14px; color: #666; }

/* ============================================================
   手机端适配（≤ 600px）
   要点：功能卡片一行两张（不是三张），间距与字号整体收紧
   ============================================================ */
@media (max-width: 600px) {
    .container { padding: 20px 16px; }

    /* 品牌与登录按钮同排：比上下堆叠更紧凑，也不会让按钮孤零零占一行 */
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    .brand { flex: 1; min-width: 0; gap: 10px; }
    .logo-svg { width: 44px; height: 44px; }
    h1 { font-size: 19px; letter-spacing: 0; }
    .subtitle { font-size: 13px; letter-spacing: 1px; margin-top: 2px; }

    .login-btn { padding: 9px 18px; font-size: 14px; }

    /* 一行两张：3 列会把卡片挤到 100px 以内，图标与标题都会变形 */
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 16px;
    }
    .feature-card { padding: 16px 12px; border-radius: 14px; }
    .feature-icon { width: 48px; height: 48px; margin-bottom: 8px; }
    .feature-card h3 { font-size: 15px; margin: 6px 0 4px; }
    .feature-card p { font-size: 12px; line-height: 1.5; }

    .download-section { margin-top: 28px; }
    .download-card { padding: 20px 18px 22px; border-radius: 14px; }
    .qr-box { width: 150px; height: 150px; }
    .qr-tip { font-size: 12px; margin: 12px 0 16px; }
    .download-card .download-btn { padding: 12px 32px; font-size: 15px; }

    .modal-overlay { padding: 20px 16px; }
    .modal-box { width: 100%; max-width: 100%; padding: 22px 20px; }
    .modal-title { font-size: 18px; margin-bottom: 16px; }
    .wechat-qr { width: 150px; height: 150px; }
}

/* 小屏手机（iPhone SE / 320~380px）：再收一档 */
@media (max-width: 380px) {
    h1 { font-size: 17px; }
    .subtitle { letter-spacing: 0; }
    .logo-svg { width: 40px; height: 40px; }
    .features { gap: 10px; }
    .feature-card { padding: 14px 10px; }
    .feature-icon { width: 42px; height: 42px; }
    .feature-card h3 { font-size: 14px; }
    .feature-card p { font-size: 11.5px; }
}

/* ============================================================
   触屏设备：取消「悬停」效果
   手指点一下卡片后，浏览器会把 hover 状态粘住，卡片一直悬浮抬起，
   看起来像卡住了；这里在无鼠标的设备上还原成静止状态。
   ============================================================ */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    }
    .login-btn:hover,
    .download-btn:hover,
    .submit-btn:hover { background-color: #4F6D7A; }
    .modal-close:hover { color: #999; }
}

/* ============================================================
   页脚：备案信息（2026-09-18 新增）
   工信部要求：网站底部须展示 ICP 备案号，并链接到 beian.miit.gov.cn。
   首页与隐私政策页共用同一个页脚。
   ============================================================ */
.site-footer {
    border-top: 1px solid #e3e3e6;
    background: #fff;
    padding: 18px 16px;
}
/* 页脚整体居中、字号收紧（2026-09-18 用户反馈：原来太大、不够居中） */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 12px;
    color: #9a9a9f;
    line-height: 1.9;
}
.footer-links { margin-bottom: 2px; }
.footer-links a,
.footer-icp a {
    color: #7b8b93;
    text-decoration: none;
    font-size: 12px;
}
.footer-links a:hover,
.footer-icp a:hover { color: #4F6D7A; text-decoration: underline; }
.footer-sep { margin: 0 8px; color: #dcdce0; }
.footer-copy { color: #9a9a9f; font-size: 12px; }

/* ============================================================
   隐私政策页（/privacy.html）
   ============================================================ */
.policy-header { margin-bottom: 28px; }
.policy-brand { text-decoration: none; color: inherit; }
.back-btn {
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #d8d8dc;
    border-radius: 20px;
    color: #4F6D7A;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.back-btn:hover { background: #f0f3f5; }

.policy {
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.policy-lead {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.policy-section { margin-bottom: 26px; }
.policy-section:last-child { margin-bottom: 0; }
.policy-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}
.policy-section p {
    font-size: 14px;
    color: #555;
    line-height: 1.9;
    margin: 0 0 10px;
    word-break: break-word;
}
.policy-section p:last-child { margin-bottom: 0; }
.policy-section strong { color: #333; }
.policy-section a { color: #4F6D7A; word-break: break-all; }

@media (max-width: 600px) {
    .site-footer { padding: 14px 12px; }
    .footer-inner,
    .footer-links a,
    .footer-copy,
    .footer-icp a { font-size: 11.5px; }
    .policy-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .policy { padding: 20px 16px; border-radius: 14px; }
    .policy-lead { font-size: 13px; }
    .policy-section h2 { font-size: 15px; }
    .policy-section p { font-size: 13.5px; }
}
