/* ============================================
   思念宝 - Premium Design System
   ============================================ */

/* ----------- CSS Variables / Theme ----------- */
:root {
    /* Colors - Dark Theme (Default) */
    --bg-primary: #10100e;
    --bg-secondary: #171714;
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-card-hover: rgba(255, 255, 255, 0.075);
    --bg-glass: rgba(22, 22, 18, 0.72);
    --bg-glass-border: rgba(230, 222, 204, 0.14);
    --text-primary: #f4efe6;
    --text-secondary: rgba(244, 239, 230, 0.68);
    --text-muted: rgba(244, 239, 230, 0.44);
    --accent-primary: #c5a66a;
    --accent-secondary: #7f9d8a;
    --accent-warm: #b78352;
    --gradient-primary: linear-gradient(135deg, #d7bd7e 0%, #9fb49c 100%);
    --gradient-bg: linear-gradient(180deg, #10100e 0%, #171714 52%, #10100e 100%);
    --gradient-hero: linear-gradient(180deg, rgba(16, 16, 14, 0.2) 0%, rgba(16, 16, 14, 0.64) 48%, rgba(16, 16, 14, 0.97) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 18px 54px rgba(0, 0, 0, 0.36);
    --border-subtle: rgba(230, 222, 204, 0.11);
    --nav-bg: rgba(16, 16, 14, 0.82);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.75rem;
    --font-size-5xl: 3.5rem;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --nav-height: 68px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------- Performance: 视口外区块延迟渲染（锚点区块除外，避免 hash 定位偏移）----------- */
.download,
.square-content,
.square-intro,
.square-faq,
.detail-content {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ----------- Reset & Base ----------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#hero,
#about,
#features,
#download {
    scroll-margin-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ----------- Scrollbar ----------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ----------- Animations ----------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes scroll-hint {

    0%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(8px);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-visual-frame img,
    .feature-card,
    .download-card,
    .btn,
    .banner-cta,
    .showcase-phone {
        transition: none !important;
        animation: none !important;
    }

    .skeleton-line {
        animation: none;
    }
}

/* ----------- Navigation ----------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: var(--font-size-xl);
    line-height: 1;
}

.logo-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-wrapper picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: rgba(197, 166, 106, 0.46);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

/* ----------- Town Square SEO Pages ----------- */
.square-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(197, 166, 106, 0.08), transparent 360px),
        var(--bg-primary);
}

.square-shell {
    padding-top: var(--nav-height);
}

.square-hero,
.detail-top {
    padding: 24px 0 20px;
}

.square-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: end;
}

.square-heading h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.12;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.detail-header h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    line-height: 1.25;
    margin: 10px 0 12px;
    letter-spacing: 0;
}

.square-heading p,
.square-sidebar p,
.detail-seo-aside p {
    color: var(--text-secondary);
    max-width: 680px;
}

.app-download-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(197, 166, 106, 0.28);
    background: rgba(197, 166, 106, 0.08);
    box-shadow: none;
}

.app-download-banner strong,
.app-download-banner span {
    display: block;
}

.app-download-banner strong {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
}

.app-download-banner span {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.banner-arrow {
    flex: 0 0 auto;
    color: var(--text-primary) !important;
    font-weight: 700;
}

.banner-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    background: #d7bd7e;
    color: #17140e !important;
    box-shadow: none;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.app-download-banner:hover .banner-cta {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.square-content,
.detail-content {
    padding: 24px 0 80px;
}

.square-grid,
.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.square-grid-single {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.square-grid-full {
    grid-template-columns: minmax(0, 1fr);
}

.square-sidebar,
.detail-seo-aside,
.moment-list-panel,
.detail-moment-card,
.comment-section {
    border: 1px solid var(--border-subtle);
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.square-sidebar,
.detail-seo-aside {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.square-sidebar h2,
.detail-seo-aside h2,
.moment-list-toolbar h2,
.comment-section h2 {
    font-size: var(--font-size-xl);
    margin-bottom: 10px;
    letter-spacing: 0;
}

.seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.seo-keywords span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

.moment-list-panel {
    overflow: hidden;
}

.moment-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.filter-tab {
    min-width: 64px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: var(--font-size-sm);
    cursor: pointer;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.moment-list {
    display: grid;
    gap: 0;
}

.moment-card {
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
}

.moment-card:last-child {
    border-bottom: 0;
}

.moment-card-link {
    display: block;
    padding: 20px;
}

.moment-card-link:hover {
    background: var(--bg-card-hover);
}

.moment-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.moment-card-header h3,
.comment-item h3 {
    font-size: var(--font-size-base);
    line-height: 1.35;
    margin: 0;
}

.moment-card-header p,
.comment-item time,
.moment-card-footer {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(197, 166, 106, 0.16);
    color: var(--accent-primary);
    font-weight: 800;
}

.avatar.small {
    width: 34px;
    height: 34px;
    font-size: var(--font-size-xs);
}

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

.moment-content,
.detail-body {
    white-space: pre-wrap;
    color: var(--text-primary);
    line-height: 1.8;
}

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

.web-image-grid.count-1 {
    grid-template-columns: minmax(0, 320px);
}

.web-image-grid.count-2 {
    grid-template-columns: repeat(2, minmax(0, 220px));
}

.web-image-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.reply-preview,
.detail-ai-reply {
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: rgba(127, 157, 138, 0.08);
    border-left: 2px solid rgba(127, 157, 138, 0.5);
}

.ai-reply-block p,
.preview-comment,
.detail-ai-reply p {
    margin-top: 6px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.preview-comment {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.moment-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.load-more-wrap {
    padding: 18px 20px 22px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.load-more-wrap .btn {
    width: min(100%, 220px);
}

.empty-state,
.empty-comments,
.noscript-copy {
    padding: 32px;
    color: var(--text-secondary);
    text-align: center;
}

.skeleton-card {
    padding: 22px;
}

.skeleton-line {
    height: 14px;
    margin: 12px 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bg-card), var(--bg-card-hover), var(--bg-card));
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
}

.skeleton-line.short {
    width: 38%;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-weight: 600;
}

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

.detail-download {
    margin-bottom: 16px;
}

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

.moment-detail-article {
    min-width: 0;
}

.detail-moment-card,
.comment-section {
    padding: 24px;
}

.detail-header {
    align-items: flex-start;
}

.detail-kicker {
    color: var(--accent-warm) !important;
    font-weight: 700;
}

.detail-ai-reply h2 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
}

.comment-section {
    margin-top: 18px;
}

.comment-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
}

.comment-item p {
    margin-top: 8px;
    white-space: pre-wrap;
    color: var(--text-primary);
}

.compact-footer {
    padding: 24px 0;
}

.compact-footer .footer-bottom {
    margin-top: 0;
}

/* ----------- Square Intro & FAQ (Static SEO Content) ----------- */
.square-intro,
.square-faq {
    padding: 48px 0;
    border-top: 1px solid var(--border-subtle);
}

.square-faq {
    padding-bottom: 72px;
}

.square-intro h2,
.square-faq h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.square-intro > .container > p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 760px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.intro-feature {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.intro-feature:hover {
    background: var(--bg-card-hover);
    border-color: rgba(197, 166, 106, 0.28);
}

.intro-feature h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.intro-feature p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.intro-audience {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.8;
    max-width: 760px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.faq-item p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------- Hero Section (Split) ----------- */
.hero-split {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 24px) 0 48px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(197, 166, 106, 0.12), transparent 60%),
        var(--bg-primary);
}

.hero-split-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.hero-copy {
    text-align: left;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-visual-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--bg-glass-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        var(--shadow-lg);
    background: var(--bg-secondary);
}

.hero-visual-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 30%;
}

.hero-capabilities {
    padding: 0 0 56px;
    margin-top: -8px;
}

.capabilities-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    padding: 20px 28px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.capability-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.capability-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.capability-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

.hero-badge {
    display: inline-block;
    padding: 7px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, var(--font-size-5xl));
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-subtitle-seo {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-top: 12px;
    letter-spacing: 0;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: var(--text-secondary);
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero-subtitle-seo {
        font-size: var(--font-size-base);
        margin-top: 8px;
        letter-spacing: 0.02em;
    }
}

.hero-slogan {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.hero-desc {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0 0 32px;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
}

/* ----------- Buttons ----------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: #d7bd7e;
    color: #17140e;
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-primary:active,
.btn-outline:active,
.banner-cta:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--bg-glass);
    border-color: rgba(197, 166, 106, 0.5);
    color: var(--text-primary);
}

/* ----------- Section Shared ----------- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header-left {
    text-align: left;
    max-width: 640px;
    margin-bottom: 48px;
}

.section-header-left .section-subtitle {
    margin: 0;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, var(--font-size-4xl));
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ----------- Features Section ----------- */
.features {
    padding: 24px 0 var(--section-padding);
    background: var(--gradient-bg);
}

/* ----------- Features Bento ----------- */
.features-bento {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.features-bento .feature-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
    background: linear-gradient(165deg, rgba(197, 166, 106, 0.14), var(--bg-card));
}

.features-bento .feature-card:nth-child(2) {
    grid-column: 2 / 4;
    background: linear-gradient(135deg, rgba(127, 157, 138, 0.12), var(--bg-card));
}

.features-bento .feature-card:nth-child(3) {
    grid-column: 2;
}

.features-bento .feature-card:nth-child(4) {
    grid-column: 3;
    background: linear-gradient(135deg, rgba(183, 131, 82, 0.1), var(--bg-card));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 32px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(197, 166, 106, 0.7);
    opacity: 0.42;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 166, 106, 0.1);
    border: 1px solid rgba(197, 166, 106, 0.18);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    color: var(--accent, #c5a66a);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: translateY(-1px);
    background: rgba(197, 166, 106, 0.14);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------- About Section ----------- */
.about {
    padding: 24px 0 64px;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

/* App Showcase - Real Screenshots */
.app-showcase {
    position: relative;
    width: 420px;
    height: 520px;
}

.showcase-phone {
    position: absolute;
    transition: all var(--transition-slow);
}

.showcase-phone-1 {
    left: 0;
    top: 20px;
    z-index: 2;
    animation: none;
}

.showcase-phone-2 {
    right: 0;
    top: 0;
    z-index: 1;
    animation: none;
}

.phone-frame-real {
    position: relative;
    width: 220px;
    border-radius: 24px;
    overflow: hidden;
    background: #1c1a16;
    padding: 8px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.phone-frame-real img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
}

.showcase-phone:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.showcase-phone:hover .phone-frame-real {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38),
        0 12px 25px rgba(0, 0, 0, 0.28),
        inset 0 0 0 1.5px rgba(197, 166, 106, 0.22);
}

.phone-glow {
    display: none;
}

.about-content {
    padding: 20px 0;
}

.about-content .section-tag {
    display: inline-block;
    margin-bottom: 20px;
}

.about-content .section-title {
    text-align: left;
    font-size: var(--font-size-3xl);
    margin-bottom: 24px;
}

.about-desc {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-width: 0 0 1px;
    border-radius: 0;
    transition: all var(--transition-base);
}

.about-list li:hover {
    background: transparent;
    transform: translateX(2px);
}

.about-list-icon {
    display: flex;
    width: 36px;
    height: 36px;
    place-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 166, 106, 0.32);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(197, 166, 106, 0.08);
}

.about-list-icon::before {
    content: none;
}

.about-list strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-list span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ----------- Download Section ----------- */
.download {
    padding: var(--section-padding) 0;
    background: var(--gradient-bg);
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.download-card {
    text-align: center;
    padding: 40px 34px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.download-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(197, 166, 106, 0.035) 100%);
    pointer-events: none;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.download-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 166, 106, 0.1);
    border: 1px solid rgba(197, 166, 106, 0.18);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    transition: all var(--transition-base);
}

.download-card-icon.android {
    background: rgba(127, 157, 138, 0.12);
    color: var(--accent-secondary);
}

.download-card:hover .download-card-icon {
    transform: translateY(-1px);
}

.download-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card>p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.download-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 28px;
}

.android-btn {
    background: #8fa88e;
    color: #10100e;
    box-shadow: none;
}

.android-btn:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    padding: 16px;
    line-height: 1.6;
}

.qr-code canvas,
.qr-code img {
    border-radius: var(--radius-md);
}

/* ----------- Footer ----------- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 28px;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-slogan {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.icp {
    font-size: var(--font-size-xs);
}

.icp a {
    color: var(--text-muted);
}

.icp a:hover {
    color: var(--accent-primary);
}

/* ----------- Responsive ----------- */
@media (max-width: 1024px) {
    .features-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .features-bento .feature-card:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .features-bento .feature-card:nth-child(2) {
        grid-column: 1 / -1;
    }

    .features-bento .feature-card:nth-child(3),
    .features-bento .feature-card:nth-child(4) {
        grid-column: auto;
    }

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

    .hero-split-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-visual {
        justify-content: center;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .square-hero-inner,
    .square-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .square-sidebar,
    .detail-seo-aside {
        position: static;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-desc {
        text-align: center;
    }

    .section-header-left {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .section-header-left .section-subtitle {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 20px 24px;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        gap: 16px;
    }

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

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

    .mobile-menu-btn.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-split {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 16px);
        padding-bottom: 32px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .capabilities-row {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .capability-divider {
        width: 40px;
        height: 1px;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .features-bento .feature-card:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .app-showcase {
        width: 320px;
        height: 420px;
    }

    .phone-frame-real {
        width: 180px;
    }

    .square-hero {
        padding-top: 16px;
    }

    .square-hero-inner {
        gap: 20px;
    }

    .app-download-banner,
    .moment-list-toolbar,
    .moment-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-tab {
        min-width: 0;
    }

    .web-image-grid,
    .web-image-grid.count-2,
    .web-image-grid.count-1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-moment-card,
    .comment-section {
        padding: 18px;
    }

    .intro-features {
        grid-template-columns: 1fr;
    }

    .square-intro,
    .square-faq {
        padding: 36px 0;
    }

    .intro-feature {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
    }

    .container {
        padding: 0 16px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .download-card {
        padding: 32px 20px;
    }

    .footer-links {
        gap: 32px;
    }

    .square-heading h1 {
        font-size: 2rem;
    }

    .detail-header h1 {
        font-size: 1.6rem;
    }

    .moment-card-link {
        padding: 16px;
    }

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