/* 前台首页 — 自适应落地页 */

:root {
    --ih-primary: #fa9715;
    --ih-primary-dark: #e08610;
    --ih-primary-soft: rgba(250, 151, 21, 0.12);
    --ih-primary-glow: rgba(250, 151, 21, 0.28);
    --ih-bg-deep: #1a1a2e;
    --ih-text: #1f2937;
    --ih-text-muted: #6b7280;
    --ih-border: rgba(15, 23, 42, 0.08);
    --ih-surface: rgba(255, 255, 255, 0.96);
    --ih-radius: 14px;
    --ih-radius-sm: 10px;
    --ih-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
    --ih-nav-h: 60px;
    --ih-safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.ih-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ih-text);
    line-height: 1.6;
    background-color: #f3f4f6;
    background-image:
        linear-gradient(180deg, rgba(250, 151, 21, 0.07) 0%, transparent 28%),
        url("/static/images/background.png");
    background-size: cover, cover;
    background-position: center, center;
    background-attachment: fixed, fixed;
    overflow-x: hidden;
}

/* 顶栏 */
.ih-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--ih-nav-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ih-border);
    transition: box-shadow 0.25s;
}

.ih-navbar.is-scrolled {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.1);
}

.ih-nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ih-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.ih-logo img {
    height: clamp(32px, 8vw, 40px);
    width: auto;
    object-fit: contain;
}

.ih-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.ih-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ih-text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.ih-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ih-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.ih-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.ih-nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.ih-nav-menu a {
    color: var(--ih-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.ih-nav-menu a:hover {
    color: var(--ih-primary-dark);
}

.ih-nav-menu .ih-nav-cta {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ih-primary-soft);
    color: var(--ih-primary-dark);
}

.ih-nav-menu .ih-nav-cta:hover {
    background: var(--ih-primary);
    color: #fff;
}

.ih-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s;
}

.ih-nav-overlay.is-open {
    display: block;
    opacity: 1;
}

@media (max-width: 900px) {
    .ih-nav-toggle {
        display: inline-flex;
    }

    .ih-nav-menu {
        position: fixed;
        top: var(--ih-nav-h);
        right: 0;
        z-index: 999;
        width: min(300px, 88vw);
        height: calc(100dvh - var(--ih-nav-h));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 12px calc(20px + var(--ih-safe-bottom));
        background: var(--ih-surface);
        border-left: 1px solid var(--ih-border);
        box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        overflow-y: auto;
    }

    .ih-nav-menu.is-open {
        transform: translateX(0);
    }

    .ih-nav-menu li {
        border-bottom: 1px solid var(--ih-border);
    }

    .ih-nav-menu a {
        display: block;
        padding: 14px 12px;
        font-size: 15px;
    }

    .ih-nav-menu .ih-nav-cta {
        margin: 8px 4px;
        text-align: center;
    }
}

/* 主内容 */
.ih-main {
    padding-top: var(--ih-nav-h);
}

.ih-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 24px);
}

/* Hero */
.ih-hero {
    text-align: center;
    padding: clamp(48px, 10vw, 100px) clamp(16px, 3vw, 24px) clamp(56px, 8vw, 80px);
    background: linear-gradient(135deg, rgba(250, 151, 21, 0.14) 0%, rgba(250, 151, 21, 0.03) 100%);
}

.ih-hero-eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ih-primary-dark);
    font-weight: 600;
}

.ih-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 5.5vw, 3rem);
    font-weight: 800;
    color: var(--ih-primary);
    line-height: 1.2;
}

.ih-hero-lead {
    margin: 0 auto 28px;
    max-width: 36rem;
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: var(--ih-text-muted);
}

.ih-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ih-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.ih-btn:active {
    transform: scale(0.98);
}

.ih-btn-primary {
    background: linear-gradient(135deg, var(--ih-primary) 0%, var(--ih-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 16px var(--ih-primary-glow);
}

.ih-btn-primary:hover {
    filter: brightness(1.05);
}

.ih-btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ih-primary-dark);
    border-color: var(--ih-primary);
}

.ih-btn-outline:hover {
    background: var(--ih-primary);
    color: #fff;
}

/* 区块通用 */
.ih-section {
    padding: clamp(48px, 8vw, 80px) 0;
}

.ih-section--surface {
    background: var(--ih-surface);
    border-top: 1px solid var(--ih-border);
    border-bottom: 1px solid var(--ih-border);
}

.ih-section-title {
    margin: 0 0 clamp(32px, 5vw, 48px);
    text-align: center;
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--ih-bg-deep);
}

.ih-section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin: 12px auto 0;
    background: var(--ih-primary);
    border-radius: 2px;
}

.ih-subtitle {
    margin: 0 0 24px;
    text-align: center;
    font-size: clamp(1rem, 2.8vw, 1.25rem);
    font-weight: 700;
    color: var(--ih-primary-dark);
}

/* 申请流程 */
.ih-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.5vw, 24px);
    margin-bottom: clamp(40px, 6vw, 56px);
}

@media (max-width: 768px) {
    .ih-steps {
        grid-template-columns: 1fr;
    }
}

.ih-step-card {
    text-align: center;
    padding: clamp(20px, 3vw, 30px) clamp(16px, 2.5vw, 20px);
    background: #f9fafb;
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius);
}

.ih-step-icon {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 12px;
    line-height: 1;
}

.ih-step-card h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--ih-bg-deep);
}

.ih-step-card p {
    margin: 0;
    font-size: 14px;
    color: var(--ih-text-muted);
    line-height: 1.7;
}

.ih-step-card strong {
    color: var(--ih-primary-dark);
}

/* 申请要求 */
.ih-panel {
    background: #fff;
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius);
    box-shadow: var(--ih-shadow);
    padding: clamp(16px, 3vw, 28px);
    margin-bottom: clamp(40px, 6vw, 56px);
}

.ih-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ih-check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ih-check-item:last-child {
    border-bottom: none;
}

.ih-check-mark {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--ih-primary);
    font-weight: 700;
    line-height: 1.4;
}

.ih-check-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--ih-bg-deep);
}

.ih-check-item span {
    font-size: 14px;
    color: var(--ih-text-muted);
    line-height: 1.65;
}

/* 申请材料 */
.ih-materials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.5vw, 20px);
    margin-bottom: clamp(40px, 6vw, 56px);
}

@media (max-width: 900px) {
    .ih-materials {
        grid-template-columns: 1fr;
    }
}

.ih-material-card {
    background: #fff;
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: var(--ih-shadow);
    text-align: center;
}

.ih-material-icon {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.ih-material-card h4 {
    margin: 0 0 14px;
    font-size: 16px;
    color: var(--ih-bg-deep);
}

.ih-material-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--ih-text-muted);
    line-height: 2;
    text-align: left;
}

.ih-material-card li.muted {
    color: #9ca3af;
}

/* 温馨提示 */
.ih-tip {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-left: 4px solid var(--ih-primary);
    border-radius: var(--ih-radius-sm);
    padding: clamp(18px, 3vw, 24px);
    margin-bottom: clamp(28px, 4vw, 36px);
}

.ih-tip h4 {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--ih-primary-dark);
}

.ih-tip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--ih-text-muted);
    line-height: 1.9;
}

.ih-tip strong {
    color: var(--ih-primary-dark);
}

/* 小程序码 */
.ih-qr-intro {
    text-align: center;
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--ih-text-muted);
}

.ih-qr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2.5vw, 20px);
    justify-items: center;
}

@media (max-width: 700px) {
    .ih-qr-grid {
        grid-template-columns: 1fr;
        max-width: 260px;
        margin: 0 auto;
    }
}

.ih-qr-card {
    width: 100%;
    max-width: 240px;
    background: #fff;
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius);
    padding: 16px;
    box-shadow: var(--ih-shadow);
    text-align: center;
}

.ih-qr-card h5 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ih-bg-deep);
}

.ih-qr-card img {
    width: 100%;
    max-width: 180px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(250, 151, 21, 0.25);
}

.ih-qr-card p {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

/* 关于我们 */
.ih-about-card {
    background: var(--ih-surface);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius);
    box-shadow: var(--ih-shadow);
    padding: clamp(24px, 4vw, 48px);
    text-align: center;
}

.ih-about-card > p {
    margin: 0 0 16px;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    color: var(--ih-text-muted);
    line-height: 1.85;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.ih-about-card a {
    color: var(--ih-primary-dark);
    text-decoration: none;
    font-weight: 600;
}

.ih-about-card a:hover {
    text-decoration: underline;
}

.ih-contact-title {
    margin: 32px 0 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ih-primary);
}

.ih-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2.5vw, 24px);
}

@media (max-width: 900px) {
    .ih-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .ih-contact-grid {
        grid-template-columns: 1fr;
    }
}

.ih-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: #f9fafb;
    border-radius: var(--ih-radius-sm);
    border: 1px solid var(--ih-border);
}

.ih-contact-card > img:first-child {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ih-contact-card strong {
    font-size: 15px;
    color: var(--ih-bg-deep);
}

.ih-contact-link {
    text-decoration: none;
}

.ih-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: filter 0.2s, transform 0.15s;
}

.ih-pill:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.ih-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.ih-pill--wechat {
    background: #07c160;
    color: #fff;
}

.ih-pill--qq {
    background: #12b7f5;
    color: #fff;
}

.ih-pill--phone,
.ih-pill--mail {
    background: #f3f4f6;
    color: var(--ih-primary-dark);
}

/* 页脚 */
.ih-footer {
    background: rgba(26, 26, 46, 0.94);
    color: #e5e7eb;
    padding: clamp(32px, 5vw, 48px) clamp(16px, 3vw, 24px) calc(24px + var(--ih-safe-bottom));
    text-align: center;
}

.ih-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 20px;
}

.ih-footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.ih-footer-links a:hover {
    color: var(--ih-primary);
}

.ih-footer-info {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.8;
}

.ih-footer-info p {
    margin: 0 0 8px;
}

.ih-footer-info a {
    color: var(--ih-primary);
    text-decoration: none;
}

.ih-footer-info a:hover {
    text-decoration: underline;
}

.ih-beian {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.9;
    word-break: break-word;
}

.ih-beian a {
    color: #9ca3af;
    text-decoration: none;
}

.ih-beian a:hover {
    color: var(--ih-primary);
}

.ih-beian img {
    vertical-align: middle;
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* 滚动动画 */
.ih-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.ih-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ih-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
