/* 次级页面专属样式 (Sub-page Styles) */

body {
    background-color: #fbfbfd;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 导航栏 */
.feature-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 60px;
    background: rgba(251,251,253,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0a84ff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.back-btn:hover { opacity: 0.8; }

.nav-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #1d1d1f, #86868b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: initial;
    filter: var(--nav-glow, none);
}

.nav-placeholder { width: 80px; } /* 占位，为了居中title */

/* 主体区域 */
.feature-main {
    padding-top: 60px;
}

/* 头图区域 */
.fh-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
}

.fh-hero-text { flex: 1; }

.fh-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(52,199,89,0.1);
    color: #34c759;
    border: 1px solid rgba(52,199,89,0.3);
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.fh-hero-text h1 {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.04em;
    color: #1d1d1f; background: none;
    -webkit-background-clip: text;
    -webkit-text-fill-color: initial;
}

.fh-hero-text p {
    font-size: clamp(18px, 2vw, 22px);
    color: #86868b;
    line-height: 1.6;
    max-width: 500px;
}

.fh-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.fh-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(10,132,255,0.2) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    z-index: 0;
}

.fh-phone-mockup {
    width: 320px; height: 650px;
    background: #ffffff;
    border: 12px solid #000; /* Black glass bezel */
    border-radius: 50px;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 0 0 2px #b5b5ba, /* Titanium metal outer frame */
        0 40px 100px rgba(0,0,0,0.15); /* Drop shadow */
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    padding: 60px 20px 20px;
    display: flex; flex-direction: column; gap: 20px;
}

.fh-phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.fh-phone-notch {
    position: absolute;
    top: 10px; left: 50%; transform: translateX(-50%);
    width: 90px; height: 28px;
    background: #000; /* Pure black glass */
    border-radius: 14px;
    z-index: 10;
    box-shadow: inset 0 -1px 2px rgba(255,255,255,0.15); /* Camera lens subtle glare */
}

/* 聊天气泡动画 */
.fh-chat-msg {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.4;
    max-width: 85%;
    opacity: 0;
    animation: messagePop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes messagePop {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.fh-chat-msg.user {
    background: #0a84ff;
    color: #1d1d1f;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.fh-chat-msg.ai {
    background: #f5f5f7; color: #1d1d1f;
    color: #1d1d1f;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    animation-delay: 0.5s;
}

.fh-chat-msg.ai.final { display: none; }

.dot {
    display: inline-block;
    width: 6px; height: 6px;
    background: #86868b;
    border-radius: 50%;
    margin: 0 2px;
    animation: blink 1.4s infinite both;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

/* 详情卡片区 */
.fh-details {
    background: #f5f5f7;
    padding: 100px 20px;
}

.fhd-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.fhd-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.06);
}

.fhd-card h3 {
    font-size: 24px; margin-bottom: 16px; color: #1d1d1f;
}

.fhd-card p {
    color: #86868b; line-height: 1.6; font-size: 16px;
}

/* 架构演示区 */
.fh-demo {
    padding: 120px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.fh-demo-header h2 { font-size: 40px; margin-bottom: 16px; }
.fh-demo-header p { color: #86868b; font-size: 18px; margin-bottom: 60px; }

.fh-arch {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}

.arch-box {
    padding: 20px 40px;
    background: #f5f5f7; color: #1d1d1f;
    border-radius: 16px;
    font-size: 18px; font-weight: 600;
    border: 1px solid rgba(0,0,0,0.1);
    min-width: 300px;
}

.arch-box.highlight { background: rgba(10,132,255,0.1); border-color: #0a84ff; color: #0a84ff; }
.arch-box.success { background: rgba(52,199,89,0.1); border-color: #34c759; color: #34c759; }
.arch-arrow { color: #86868b; font-size: 24px; }

/* 底部跳转 */
.feature-footer-nav {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 60px 20px 100px;
    text-align: center;
    background: #ffffff;
}

.next-feature-btn {
    display: inline-block;
    text-decoration: none;
}

.nf-label { 
    color: #4a4a4d; 
    font-size: 12px; 
    font-weight: 600; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    transition: color 0.3s ease;
}

.nf-title { 
    display: none; /* 隐藏原本巨大的标题 */
}

@media (max-width: 768px) {
    .fh-hero { flex-direction: column; text-align: center; padding-top: 60px; }
    .fh-hero-text p { margin: 0 auto; }
}

/* ============================================== */
/* 场景应用区 (Scenarios) */
/* ============================================== */
.fh-scenarios {
    padding: 100px 20px;
    background: #ffffff;
}

.fhs-header {
    text-align: center; margin-bottom: 60px;
}

.fhs-header h2 {
    font-size: clamp(32px, 4vw, 40px);
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.fhs-header p {
    font-size: 18px;
    color: #86868b;
}

.fhs-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.fhs-card {
    display: flex;
    background: #f5f5f7;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fhs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.fhs-pain, .fhs-solution {
    flex: 1;
    padding: 40px;
}

.fhs-pain {
    background: rgba(255,59,48,0.02);
    border-right: 1px dashed rgba(0,0,0,0.1);
}

.fhs-solution {
    background: rgba(52,199,89,0.03);
}

.fhs-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.fhs-label.pain {
    color: #ff3b30;
    background: rgba(255,59,48,0.1);
    border: 1px solid rgba(255,59,48,0.2);
}

.fhs-label.solution {
    color: #34c759;
    background: rgba(52,199,89,0.1);
    border: 1px solid rgba(52,199,89,0.2);
}

.fhs-card h4 {
    font-size: 20px;
    color: #1d1d1f;
    margin-bottom: 12px;
    font-weight: 600;
}

.fhs-card p {
    font-size: 15px;
    color: #a1a1a6;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .fhs-card { flex-direction: column; }
    .fhs-pain { border-right: none; border-bottom: 1px dashed rgba(0,0,0,0.1); }
    .fhs-pain, .fhs-solution { padding: 30px 20px; }
}

.fh-phone-mockup::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 36px;
    background: linear-gradient(115deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.02) 30%, transparent 40%);
    pointer-events: none;
    z-index: 20;
}

/* Background grid on the phone */
.fh-phone-mockup {
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    background-position: center center !important;
}

/* Status Bar */
.fh-status-bar {
    position: absolute;
    top: 14px; left: 28px; right: 28px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; font-weight: 700; color: #1d1d1f;
    z-index: 15;
}
.fh-status-bar .battery {
    width: 24px; height: 11px; border: 1.5px solid #1d1d1f; border-radius: 4px;
    position: relative; padding: 1px;
}
.fh-status-bar .battery::after {
    content: ''; position: absolute; top: 2px; right: -4px; width: 3px; height: 4px; background: #1d1d1f; border-radius: 0 1px 1px 0;
}
.fh-status-bar .battery .level {
    width: 80%; height: 100%; background: #1d1d1f; border-radius: 1px;
}

/* HUD Console */
.fh-hud-console {
    position: absolute;
    bottom: 40px; left: 20px; right: 20px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    z-index: 15;
    font-family: monospace;
    font-size: 12px;
    color: #424245;
    text-align: left;
}
.hud-header {
    font-size: 10px; font-weight: 700; color: #86868b;
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 8px;
}
.hud-line { margin-bottom: 6px; font-weight: 500; }
.hud-line i { color: #0a84ff; font-style: normal; font-weight: 700; margin-right: 6px; }
.hud-line.typing::after {
    content: '|'; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
