/* ============================================
   栗方科技官网样式
   栗友 AI 陪伴产品官网
   ============================================ */

:root {
    --ink: #171326;
    --muted: #6f6581;
    --soft: #fbf7ff;
    --surface: #ffffff;
    --line: rgba(79, 70, 116, 0.12);
    --primary: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #f9a8d4;
    --violet: #8b5cf6;
    --violet-soft: #ede9fe;
    --sky: #60a5fa;
    --amber: #f59e0b;
    --night: #171326;
    --mist: #f1ecff;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-soft: linear-gradient(135deg, #fff5fb 0%, #f5f3ff 55%, #eff6ff 100%);
    --shadow-sm: 0 10px 30px rgba(79, 70, 116, 0.08);
    --shadow-md: 0 22px 60px rgba(79, 70, 116, 0.13);
    --shadow-lg: 0 34px 90px rgba(79, 70, 116, 0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --transition: 220ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    color: var(--ink);
    background: var(--gradient-soft);
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    letter-spacing: 0;
}

body::selection {
    background: rgba(236, 72, 153, 0.18);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}

.section-title {
    margin-top: 10px;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.section-subtitle {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.05rem;
}

section {
    padding: 104px 0;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 13px 22px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(236, 72, 153, 0.34);
}

.btn-outline,
.btn-soft {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.64);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.btn-outline:hover,
.btn-soft:hover {
    border-color: rgba(236, 72, 153, 0.28);
    color: var(--primary);
    background: #fff;
    transform: translateY(-2px);
}

.btn-soft {
    color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* ============================================
   导航
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(79, 70, 116, 0.1);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 36px rgba(79, 70, 116, 0.08);
    backdrop-filter: blur(22px);
    pointer-events: auto;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.navbar.scrolled,
.navbar.menu-open {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
}

.nav-inner {
    display: flex;
    height: 74px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    background: var(--gradient-primary);
    font-size: 0.78rem;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.2);
}

.logo-text {
    font-size: 1.05rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}

.nav-links a {
    position: relative;
    border-radius: 10px;
    padding: 9px 12px;
    color: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.86;
    transition: opacity var(--transition), color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links .forum-link {
    opacity: 1;
}

.nav-links a::after {
    display: none;
}

.nav-links a:hover {
    background: rgba(236, 72, 153, 0.08);
}

.forum-link,
.support-link {
    color: var(--primary) !important;
    background: rgba(236, 72, 153, 0.1);
}

.support-link {
    color: var(--violet) !important;
    background: rgba(139, 92, 246, 0.1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 12px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px auto;
    border-radius: 4px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* ============================================
   首屏
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 128px 0 86px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.9) 0 44%, rgba(255, 245, 251, 0.72) 44% 66%, rgba(239, 246, 255, 0.76) 66% 100%),
        radial-gradient(circle at 12% 20%, rgba(236, 72, 153, 0.18), transparent 26%),
        radial-gradient(circle at 84% 78%, rgba(99, 102, 241, 0.16), transparent 30%),
        var(--gradient-soft);
}

.hero::after {
    content: "";
    position: absolute;
    top: 13%;
    right: -10%;
    width: 42vw;
    height: 72vh;
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 48px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(236, 72, 153, 0.08));
    transform: rotate(-9deg);
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    left: 7vw;
    bottom: 8vh;
    width: 34vw;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.46), rgba(99, 102, 241, 0), rgba(96, 165, 250, 0.3));
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.hero-copy {
    max-width: 660px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    border-left: 3px solid var(--primary);
    padding: 5px 0 5px 12px;
    color: var(--primary);
    background: transparent;
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero-title {
    margin-top: 26px;
    max-width: 720px;
    font-size: clamp(3rem, 5.2vw, 5.4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: 0;
}

.hero-title span {
    display: inline-block;
    position: relative;
    color: var(--primary);
}

.hero-title span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.08em;
    left: 0;
    z-index: -1;
    height: 0.22em;
    border-radius: 99px;
    background: rgba(236, 72, 153, 0.16);
}

.hero-subtitle {
    max-width: 640px;
    margin-top: 24px;
    color: var(--muted);
    font-size: clamp(1.03rem, 1.7vw, 1.32rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.companion-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 36px;
    border-top: 1px solid rgba(79, 70, 116, 0.12);
    padding-top: 18px;
}

.rail-item {
    position: relative;
    min-height: 126px;
    border: 1px solid rgba(79, 70, 116, 0.1);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
}

.rail-item.active {
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.09), rgba(236, 72, 153, 0.12)),
        rgba(255, 255, 255, 0.9);
}

.rail-item span,
.rail-item strong,
.rail-item p {
    display: block;
}

.rail-item span {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.rail-item strong {
    margin-top: 12px;
    font-size: 1.02rem;
}

.rail-item p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.hero-stage {
    position: relative;
    min-height: 610px;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 48px 8px 72px;
    border-radius: 36px;
    background:
        linear-gradient(145deg, rgba(23, 19, 38, 0.96), rgba(76, 29, 149, 0.78) 52%, rgba(236, 72, 153, 0.5));
    box-shadow: 0 38px 96px rgba(79, 70, 116, 0.2);
    transform: skewY(-3deg);
}

.stage-card {
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 32px;
    padding: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
        rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
}

.stage-card::after {
    content: "AI COMPANION HARDWARE";
    position: absolute;
    right: -74px;
    bottom: 64px;
    color: rgba(23, 19, 38, 0.08);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.32em;
    transform: rotate(90deg);
}

.stage-kicker {
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--primary);
    background: rgba(236, 72, 153, 0.1);
    font-size: 0.78rem;
    font-weight: 800;
}

.stage-product {
    position: absolute;
    right: -18%;
    bottom: 24px;
    width: 118%;
    max-width: none;
    border-radius: 24px;
    filter: drop-shadow(0 28px 54px rgba(79, 70, 116, 0.22));
}

.stage-status-card {
    position: absolute;
    right: -16px;
    bottom: 26px;
    z-index: 3;
    width: min(300px, 76%);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.status-label {
    display: block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.stage-status-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.24rem;
}

.stage-status-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.stage-signal {
    position: absolute;
    top: 88px;
    left: -18px;
    z-index: 3;
    display: flex;
    align-items: end;
    gap: 6px;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.stage-signal span {
    width: 8px;
    border-radius: 99px;
    background: var(--gradient-primary);
    animation: signalPulse 1.8s ease-in-out infinite;
}

.stage-signal span:nth-child(1) { height: 18px; }
.stage-signal span:nth-child(2) { height: 34px; animation-delay: -0.3s; }
.stage-signal span:nth-child(3) { height: 26px; animation-delay: -0.6s; }
.stage-signal span:nth-child(4) { height: 42px; animation-delay: -0.9s; }

@keyframes signalPulse {
    0%, 100% {
        opacity: 0.55;
        transform: scaleY(0.82);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ============================================
   特点
   ============================================ */
.features {
    background:
        linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18), rgba(139, 92, 246, 0));
    pointer-events: none;
}

.feature-card:hover {
    border-color: rgba(236, 72, 153, 0.28);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.feature-card.featured {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.94), rgba(236, 72, 153, 0.92)),
        var(--night);
}

.feature-card.featured p,
.feature-card.featured h3 {
    color: #fff;
}

.feature-icon,
.tool-icon,
.contact-icon,
.action-card-icon {
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 18px 32px rgba(236, 72, 153, 0.2);
}

.feature-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 29px;
    height: 29px;
}

.feature-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    font-size: 1.28rem;
    line-height: 1.3;
}

.feature-card p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 0.98rem;
}

/* ============================================
   场景
   ============================================ */
.scenes {
    color: #fff;
    background:
        radial-gradient(circle at 18% 12%, rgba(236, 72, 153, 0.28), transparent 32%),
        radial-gradient(circle at 82% 88%, rgba(96, 165, 250, 0.2), transparent 34%),
        linear-gradient(130deg, rgba(23, 19, 38, 0.98), rgba(76, 29, 149, 0.92) 54%, rgba(131, 24, 67, 0.9)),
        var(--night);
}

.scenes-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 60px;
    align-items: start;
}

.scene-copy {
    position: sticky;
    top: 110px;
}

.scene-copy .eyebrow {
    color: var(--primary-light);
}

.scene-copy .section-title {
    color: #fff;
}

.scene-copy .section-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.scene-stack {
    display: grid;
    gap: 16px;
}

.scene-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    transition: transform var(--transition), background var(--transition);
}

.scene-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(6px);
}

.scene-card span {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--amber);
    font-weight: 800;
}

.scene-card h3 {
    margin-bottom: 8px;
    font-size: 1.36rem;
}

.scene-card p {
    color: rgba(255, 255, 255, 0.72);
}

/* ============================================
   产品
   ============================================ */
.product {
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.14), transparent 30%),
        radial-gradient(circle at 8% 86%, rgba(236, 72, 153, 0.12), transparent 28%),
        linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.product-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: -18px auto 36px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px);
}

.product-tab {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 800;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.product-tab:hover {
    color: var(--primary);
    background: rgba(236, 72, 153, 0.08);
}

.product-tab.active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
    transform: translateY(-1px);
}

.product-showcase {
    position: relative;
}

.product-panel {
    display: none;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 54px;
    align-items: center;
    min-height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: var(--radius-xl);
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
        rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px);
}

.product-panel.active {
    display: grid;
    animation: productPanelIn 360ms ease both;
}

.product-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.product-real-image {
    width: 100%;
    max-height: 520px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.product-info {
    max-width: 520px;
}

.product-kicker {
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-info h3 {
    margin-top: 10px;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.16;
}

.product-info > p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.04rem;
}

.product-features {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.product-features li::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.12);
}

.product-download-btn {
    margin-top: 28px;
}

.phone-frame {
    width: min(320px, 100%);
    aspect-ratio: 9 / 18;
    border-radius: 36px;
    padding: 12px;
    background:
        linear-gradient(145deg, #241a3f, #090713);
    box-shadow: var(--shadow-lg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 27px;
    background: var(--soft);
}

.product-phone-cluster,
.product-device-gallery {
    min-height: 540px;
    align-items: center;
}

.product-phone-cluster::before,
.product-device-gallery::before {
    content: "";
    position: absolute;
    inset: 50px 20px 36px;
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 45%, rgba(236, 72, 153, 0.13), transparent 42%);
    pointer-events: none;
}

.product-device-gallery {
    gap: 18px;
}

.app-device-gallery {
    justify-content: flex-start;
    padding-left: 28px;
}

.mini-device-gallery {
    justify-content: center;
}

.real-phone,
.landscape-phone-frame {
    position: relative;
    z-index: 2;
}

.real-phone {
    width: min(294px, 64vw);
}

.primary-phone {
    transform: rotate(-4deg);
}

.mini-phone {
    width: min(250px, 54vw);
}

.primary-mini-phone {
    transform: rotate(-5deg) translateX(24px);
}

.secondary-mini-phone {
    transform: rotate(5deg) translateX(-24px) translateY(34px);
}

.real-screen {
    background: #050509;
}

.real-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landscape-phone-frame {
    position: absolute;
    right: 0;
    bottom: 22px;
    width: min(430px, 72%);
    aspect-ratio: 2670 / 1200;
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(145deg, #241a3f, #090713);
    box-shadow: var(--shadow-lg);
}

.landscape-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #050509;
}

.mini-qr-card,
.mini-qr {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 16px 12px 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.mini-qr-card {
    position: absolute;
    right: 48px;
    bottom: 72px;
    z-index: 3;
    flex-direction: column;
    width: 150px;
    padding: 16px;
    text-align: center;
}

.mini-qr-img {
    width: 74px;
    height: 74px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-qr-card .mini-qr-img {
    width: 92px;
    height: 92px;
}

.mini-qr span,
.mini-qr-card span {
    max-width: 128px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes productPanelIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   工具
   ============================================ */
.tools {
    background:
        linear-gradient(180deg, var(--soft), #fff);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tool-card {
    min-height: 270px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tool-card:hover {
    border-color: rgba(236, 72, 153, 0.28);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.tool-icon {
    width: 58px;
    height: 58px;
}

.tool-icon svg,
.contact-icon svg,
.action-card-icon svg {
    width: 27px;
    height: 27px;
}

.tool-type {
    height: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--primary);
    background: rgba(236, 72, 153, 0.1);
    font-size: 0.78rem;
    font-weight: 800;
}

.tool-name {
    font-size: 1.35rem;
    line-height: 1.26;
}

.tool-desc {
    margin-top: 10px;
    color: var(--muted);
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    color: var(--primary);
    font-weight: 800;
}

.tool-link svg {
    width: 17px;
    height: 17px;
    transition: transform var(--transition);
}

.tool-card:hover .tool-link svg {
    transform: translateX(4px);
}

/* ============================================
   关于
   ============================================ */
.about {
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
    gap: 70px;
    align-items: center;
}

.about-text .section-title {
    max-width: 650px;
}

.about-desc {
    max-width: 690px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.04rem;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.value-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
    background: var(--soft);
}

.value-number {
    display: block;
    color: var(--primary);
    font-size: 1.26rem;
    font-weight: 800;
}

.value-label {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.86rem;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.wechat-qr-card {
    width: min(100%, 320px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    background: var(--soft);
    box-shadow: var(--shadow-sm);
}

.qr-image-wrapper {
    width: 190px;
    height: 190px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #fff;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-label {
    font-weight: 800;
}

.qr-desc {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ============================================
   联系
   ============================================ */
.contact {
    background:
        linear-gradient(180deg, var(--soft), #fff);
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
    gap: 48px;
    align-items: stretch;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.contact-detail h4 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.contact-detail p {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.contact-action-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 22% 18%, rgba(236, 72, 153, 0.32), transparent 32%),
        linear-gradient(135deg, rgba(23, 19, 38, 0.98), rgba(76, 29, 149, 0.92)),
        var(--night);
    box-shadow: var(--shadow-lg);
}

.action-card-inner {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    padding: 38px;
    text-align: center;
}

.action-card-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--primary), var(--amber));
}

.action-card-title {
    font-size: 1.52rem;
}

.action-card-desc {
    max-width: 360px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
}

.action-card-list {
    display: grid;
    width: 100%;
    gap: 12px;
    margin: 28px 0;
    text-align: left;
}

.action-card-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
}

.action-card-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    margin-top: 8px;
    background: var(--amber);
}

.action-card-btn {
    margin-top: auto;
}

.action-card-hint {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
}

/* ============================================
   页脚和弹窗
   ============================================ */
.footer {
    padding: 58px 0 28px;
    color: #fff;
    background: #171326;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, minmax(130px, 1fr));
    gap: 34px;
    margin-bottom: 34px;
}

.footer-brand p {
    max-width: 320px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.62);
}

.footer-col h4 {
    margin-bottom: 14px;
}

.footer-col ul {
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.62);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: background var(--transition), transform var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.86rem;
    text-align: center;
}

.qr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.qr-modal.active {
    display: flex;
}

.qr-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 9, 0.58);
    backdrop-filter: blur(8px);
}

.qr-modal-content {
    position: relative;
    width: min(100%, 330px);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: qrModalIn 220ms ease;
}

.qr-modal-content img {
    width: 220px;
    height: 220px;
    margin: 0 auto 14px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.qr-modal-content p {
    color: var(--muted);
}

.qr-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes qrModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1080px) {
    .hero-shell,
    .product-panel,
    .scenes-layout,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        align-items: start;
        gap: 48px;
    }

    .hero-copy,
    .product-info {
        max-width: none;
    }

    .hero-stage {
        min-height: 540px;
        max-width: 660px;
    }

    .scene-copy {
        position: static;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-panel {
        min-height: 0;
    }

    .product-phone-cluster,
    .product-device-gallery {
        min-height: 500px;
    }
}

@media (max-width: 820px) {
    section {
        padding: 76px 0;
    }

    .container {
        width: min(100% - 28px, 1180px);
    }

    .navbar {
        top: 0;
    }

    .nav-inner {
        height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 74px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        padding: 10px;
        color: var(--ink);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(18px);
    }

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

    .nav-links a {
        display: block;
        padding: 13px 12px;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 112px 0 66px;
    }

    .hero-shell {
        gap: 34px;
    }

    .hero-title {
        font-size: clamp(2.34rem, 8.6vw, 4rem);
        overflow-wrap: anywhere;
    }

    .hero-stage {
        display: flex;
        width: 100%;
        max-width: 680px;
        min-height: 0;
        flex-direction: column;
        order: 2;
        margin: 0 auto;
    }

    .hero-copy {
        order: 1;
    }

    .hero-stage::before {
        inset: 28px 6px 74px;
        border-radius: 30px;
        transform: none;
    }

    .stage-card {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: 28px;
    }

    .stage-product {
        right: 50%;
        bottom: 18px;
        width: min(96%, 520px);
        max-width: 96%;
        transform: translateX(50%);
    }

    .stage-status-card {
        position: relative;
        right: auto;
        bottom: auto;
        width: calc(100% - 32px);
        margin: -46px auto 0;
    }

    .stage-signal {
        top: 72px;
        left: 16px;
    }

    .companion-rail {
        grid-template-columns: 1fr;
    }

    .product-tabs {
        width: 100%;
        border-radius: 18px;
    }

    .product-tab {
        flex: 1 1 30%;
        min-width: 112px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .product-panel {
        gap: 30px;
        border-radius: 22px;
        padding: 22px;
    }

    .product-phone-cluster,
    .product-device-gallery {
        min-height: 430px;
    }

    .real-phone {
        width: min(268px, 74vw);
    }

    .landscape-phone-frame {
        right: 2px;
        width: min(360px, 68%);
    }

    .primary-mini-phone {
        transform: rotate(-3deg) translateX(16px);
    }

    .secondary-mini-phone {
        transform: rotate(4deg) translateX(-16px) translateY(30px);
    }

    .mini-qr-card {
        right: 10px;
        bottom: 40px;
    }

    .features-grid,
    .tools-grid,
    .about-values,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .product-real-image {
        max-height: none;
        aspect-ratio: 16 / 10;
    }

    .footer-content {
        gap: 24px;
    }

    #waifu,
    #waifu-toggle {
        display: none !important;
    }
}

@media (max-width: 560px) {
    body {
        line-height: 1.6;
    }

    .nav-inner {
        height: 64px;
    }

    .nav-links {
        top: 72px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        padding-top: 88px;
        padding-bottom: 52px;
    }

    .hero-shell {
        min-width: 0;
    }

    .hero-copy {
        width: 100%;
        min-width: 0;
    }

    .hero-title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 2.78rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-pill {
        max-width: 100%;
        font-size: 0.74rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .hero-actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        min-width: 0;
        padding-right: 18px;
        padding-left: 18px;
        text-align: center;
        white-space: normal;
    }

    .hero-stage {
        max-width: 440px;
        min-height: 0;
    }

    .hero-stage::before {
        inset: 18px 4px 44px;
        border-radius: 24px;
    }

    .stage-card {
        min-height: 250px;
        aspect-ratio: 1 / 0.82;
        border-radius: 24px;
        padding: 18px;
    }

    .stage-product {
        right: 50%;
        bottom: 10px;
        width: min(108%, 380px);
        max-width: 108%;
    }

    .stage-signal {
        display: none;
    }

    .stage-status-card {
        width: calc(100% - 20px);
        margin-top: -28px;
        border-radius: 18px;
    }

    .companion-rail {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 10px;
        margin-top: 28px;
        padding-bottom: 0;
        width: 100%;
        scroll-snap-type: none;
    }

    .rail-item {
        width: 100%;
        min-width: 0;
        min-height: 104px;
        scroll-snap-align: none;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: clamp(1.72rem, 8.6vw, 2.35rem);
        line-height: 1.18;
    }

    .section-subtitle {
        font-size: 0.98rem;
    }

    .feature-card,
    .scene-card,
    .tool-card,
    .contact-item,
    .product-panel,
    .action-card-inner {
        padding: 22px;
    }

    .product-tabs {
        display: grid;
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .product-tab {
        width: 100%;
    }

    .product-phone-cluster,
    .product-device-gallery {
        min-height: 360px;
    }

    .product-phone-cluster::before,
    .product-device-gallery::before {
        inset: 30px 0 28px;
    }

    .real-phone,
    .mini-phone {
        width: min(236px, 72vw);
        transform: rotate(0deg);
    }

    .app-device-gallery,
    .mini-device-gallery {
        flex-direction: column;
        justify-content: center;
        padding-left: 0;
    }

    .landscape-phone-frame {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 18px;
    }

    .mini-qr,
    .mini-qr-card {
        width: 100%;
    }

    .mini-qr-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 18px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }

    main {
        padding-bottom: 72px;
    }

    #waifu,
    #waifu-toggle {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
