/* U房-壹心孚佑 静态网站样式 */
:root {
    --color-primary: #355bb6;
    --color-primary-dark: #294997;
    --color-primary-light: #6d8fd8;
    --color-text: #1f2a44;
    --color-text-muted: #4c5d7f;
    --color-bg: #f4f7ff;
    --color-white: #fff;
    --shadow: 0 8px 24px rgba(53, 91, 182, 0.12);
    --shadow-hover: 0 16px 36px rgba(53, 91, 182, 0.2);
    --radius: 12px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-img {
    height: 44px;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--color-primary);
}

.header-phone {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.header-phone:hover {
    color: var(--color-primary-dark);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 24px;
    background: var(--color-white);
    border-top: 1px solid #eee;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav .nav-link:last-child {
    border-bottom: none;
}

/* 主视觉区 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow-x: hidden;
    overflow-y: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #eef3ff 0%, #e7eeff 40%, #d9e5ff 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(53, 91, 182, 0.14) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 760px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-primary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-wechat-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-top: 14px;
    margin-top: -14px;
}

.hero-wechat-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    min-height: 52px;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    border: 1px solid rgba(53, 91, 182, 0.35);
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(53, 91, 182, 0.12);
    transition: var(--transition);
}

.hero-wechat-trigger:hover,
.hero-wechat-trigger:focus-visible {
    background: var(--color-white);
    color: var(--color-primary-dark);
    border-color: rgba(53, 91, 182, 0.45);
    box-shadow: var(--shadow-hover);
    outline: none;
}

.hero-wechat-popover {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(6px);
    width: max-content;
    max-width: min(260px, calc(100vw - 48px));
    padding: 14px;
    border-radius: 14px;
    background: var(--color-white);
    color: var(--color-text);
    box-shadow: 0 16px 40px rgba(31, 42, 68, 0.18);
    border: 1px solid rgba(53, 91, 182, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    z-index: 30;
}

.hero-wechat-wrap:hover .hero-wechat-popover,
.hero-wechat-wrap:focus-within .hero-wechat-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hero-wechat-qr-inner {
    padding: 8px;
    background: #fafbff;
    border-radius: 10px;
    border: 1px solid rgba(53, 91, 182, 0.1);
}

.hero-wechat-qr-img {
    display: block;
    width: 160px;
    height: auto;
    border-radius: 4px;
}

.hero-wechat-popover-hint {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.45;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #4b74d0 100%);
    color: var(--color-white) !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.hero-cta:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.hero-cta--primary {
    min-width: 192px;
}

.hero-cta--secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-primary) !important;
    border: 1px solid rgba(53, 91, 182, 0.2);
    box-shadow: 0 6px 18px rgba(53, 91, 182, 0.12);
}

.hero-cta--secondary:hover {
    background: var(--color-white);
    color: var(--color-primary-dark) !important;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 48px;
}

/* 服务流程 */
.services {
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 32px 24px;
    background: var(--color-bg);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid rgba(53, 91, 182, 0.08);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(53, 91, 182, 0.24);
}

.service-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.4;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* 优选理由 */
.advantages {
    background: var(--color-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.advantage-card {
    padding: 32px 24px;
    background: var(--color-white);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.advantage-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* 关于我们 */
.about {
    background: var(--color-white);
}

.about.about--full {
    background: var(--color-bg);
}

.about-contact-cards {
    margin-top: 40px;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* 联系我们 */
.contact {
    background: var(--color-bg);
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 60px;
    background: var(--color-white);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    color: var(--color-primary);
}

.contact-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 1.25rem;
    font-weight: 600;
}

/* App 下载 / 微信小程序 */
.download {
    padding: 0;
}

.download-app {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    padding: 80px 0;
}

.download-app-inner {
    max-width: 900px;
}

.download-app-copy {
    text-align: center;
    padding: 40px 28px;
    border-radius: 20px;
    border: 1px solid rgba(53, 91, 182, 0.12);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.9);
}

.download-app-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.download-app-line {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    line-height: 1.65;
}

.download-app-line:last-of-type {
    margin-bottom: 28px;
}

.download-app-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 每行：二维码与说明顶部对齐 */
.download-app-pair {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(320px, 1fr);
    gap: 12px;
    align-items: start;
}

.install-guide-item {
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(53, 91, 182, 0.08) 0%, rgba(53, 91, 182, 0.05) 100%);
    border: 1px solid rgba(53, 91, 182, 0.14);
    text-align: left;
    box-sizing: border-box;
}

.download-app-pair--android .install-guide-item {
    background: linear-gradient(180deg, rgba(34, 190, 94, 0.14) 0%, rgba(34, 190, 94, 0.08) 100%);
    border-color: rgba(34, 190, 94, 0.28);
}

.download-app-pair--android .install-guide-item h3 {
    color: #178a42;
}

.download-app-pair--ios .install-guide-item {
    background: linear-gradient(180deg, rgba(242, 187, 42, 0.16) 0%, rgba(242, 187, 42, 0.09) 100%);
    border-color: rgba(242, 187, 42, 0.3);
}

.download-app-pair--ios .install-guide-item h3 {
    color: #b27e00;
}

.install-guide-item h3 {
    font-size: 1.04rem;
    margin-bottom: 10px;
}

.install-guide-item p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.install-guide-ios-figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.install-guide-ios-figure {
    margin: 0;
}

.install-guide-ios-figure img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(53, 91, 182, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.install-guide-ios-figure figcaption {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

.platform-entry {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    min-height: 54px;
}

.download-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.download-btn--android {
    background: linear-gradient(135deg, #22be5e 0%, #1ca64f 100%);
}

.download-btn--iphone {
    background: linear-gradient(135deg, #f2bb2a 0%, #d79f12 100%);
}

.download-btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.apk-qr-card {
    display: flex;
    flex-direction: row;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(53, 91, 182, 0.16);
    box-shadow: 0 12px 30px rgba(53, 91, 182, 0.16);
    min-width: 180px;
    box-sizing: border-box;
}

.apk-qr-title {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary-dark);
    border-radius: 999px;
    background: rgba(53, 91, 182, 0.1);
    border: 1px solid rgba(53, 91, 182, 0.2);
    line-height: 1;
}

.platform-entry--android .apk-qr-card {
    border-color: rgba(34, 190, 94, 0.34);
    box-shadow: 0 10px 28px rgba(34, 190, 94, 0.18);
}

.platform-entry--ios .apk-qr-card {
    border-color: rgba(242, 187, 42, 0.34);
    box-shadow: 0 10px 28px rgba(242, 187, 42, 0.18);
}

.apk-qr-title--android {
    color: #178a42;
    background: rgba(34, 190, 94, 0.14);
    border-color: rgba(34, 190, 94, 0.3);
}

.apk-qr-title--ios {
    color: #b27e00;
    background: rgba(242, 187, 42, 0.18);
    border-color: rgba(242, 187, 42, 0.32);
}

.apk-qr-title-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.apk-qr-link {
    display: inline-flex;
    border-radius: 12px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(53, 91, 182, 0.12);
    transition: transform var(--transition), box-shadow var(--transition);
}

.apk-qr-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(53, 91, 182, 0.2);
}

.apk-qr-img {
    display: block;
    width: 138px;
    height: 138px;
    border-radius: 8px;
}

.apk-qr-tip {
    max-width: 200px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

.download-wechat {
    background: linear-gradient(160deg, #355bb6 0%, #2f4f9f 100%);
    padding: 72px 0 80px;
    color: var(--color-white);
}

.download-wechat-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
}

.download-wechat-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.download-wechat-sub {
    font-size: 1.05rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-primary-row {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .hero-primary-row .hero-cta--primary,
    .hero-wechat-trigger {
        width: 100%;
        justify-content: center;
    }

    .hero-wechat-popover {
        bottom: auto;
        top: calc(100% + 12px);
        transform: translateX(-50%) translateY(-6px);
    }

    .hero-wechat-wrap:hover .hero-wechat-popover,
    .hero-wechat-wrap:focus-within .hero-wechat-popover {
        transform: translateX(-50%) translateY(0);
    }

    .hero-cta {
        width: 100%;
        max-width: 320px;
        padding: 14px 20px;
    }

    .download-app {
        padding: 60px 0;
    }

    .download-app-copy {
        padding: 32px 20px;
    }

    .download-app-pair {
        grid-template-columns: 1fr;
    }

    .install-guide-ios-figures {
        grid-template-columns: 1fr;
    }

    .install-guide-ios-figure img {
        max-width: min(320px, 100%);
    }

    .platform-entry {
        min-height: 0;
    }

    .download-btn {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .apk-qr-card {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .download-wechat {
        padding: 56px 0 64px;
    }
}

/* 页脚 */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 48px 0 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-contact {
    display: flex;
    gap: 24px;
}

.footer-contact a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.9;
}

.footer-contact a:hover {
    opacity: 1;
}

.footer-copy {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-icp {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 8px;
}

.footer-icp a {
    color: var(--color-white);
    text-decoration: none;
}

.footer-icp a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-phone {
        font-size: 0.95rem;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }

    .contact-cards {
        flex-direction: column;
    }

    .contact-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
