:root {
    --crx-primary: #007AFF;
    --crx-primary-dark: #0056CC;
    --crx-accent: #4B8CF8;
    --crx-accent-light: #6EA7FF;
    --crx-gradient: linear-gradient(135deg, #4B8CF8 0%, #6EA7FF 55%, #007AFF 100%);
    --crx-gradient-soft: linear-gradient(180deg, #E9F1FF 0%, #F7F8F9 100%);
    --crx-surface: #F7F8F9;
    --crx-text: #111111;
    --crx-text-muted: #6B7280;
    --crx-border: rgba(0, 122, 255, 0.12);
    --crx-shadow: 0 12px 40px rgba(0, 122, 255, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    --crx-radius: 18px;
    --crx-nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--crx-text);
    background: var(--crx-surface);
    overflow-x: hidden;
}

body.crx-home {
    background: #fff;
}

a {
    color: inherit;
}

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

/* Navbar */
.crx-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.crx-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.crx-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--crx-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.crx-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex-shrink: 0;
}

.crx-brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.crx-brand-text {
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--crx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crx-nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.crx-nav-menu a {
    text-decoration: none;
    color: var(--crx-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.crx-nav-menu a:hover,
.crx-nav-menu a.active {
    color: var(--crx-primary);
}

.crx-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.crx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crx-btn-primary {
    background: var(--crx-gradient);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35);
}

.crx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 122, 255, 0.45);
}

.crx-btn-outline {
    background: transparent;
    color: var(--crx-primary);
    border: 1.5px solid var(--crx-primary);
}

.crx-btn-outline:hover {
    background: rgba(0, 122, 255, 0.06);
}

.crx-btn-ghost {
    background: rgba(0, 122, 255, 0.08);
    color: var(--crx-primary);
}

.crx-user-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.crx-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 122, 255, 0.2);
    background: var(--crx-gradient-soft);
}

.crx-user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--crx-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.crx-user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--crx-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crx-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--crx-text);
    padding: 0.25rem;
}

/* Hero */
.crx-hero {
    min-height: 100vh;
    padding: calc(var(--crx-nav-height) + 3rem) 0 4rem;
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(110, 167, 255, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 85% 10%, rgba(0, 122, 255, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #E9F1FF 0%, #fff 45%, #F7F8F9 100%);
    display: flex;
    align-items: center;
}

.crx-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.crx-hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 122, 255, 0.1);
    color: var(--crx-primary);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.crx-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--crx-text);
}

.crx-hero h1 span {
    background: var(--crx-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crx-hero-lead {
    font-size: 1.15rem;
    color: var(--crx-text-muted);
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.crx-hero-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    color: var(--crx-text-muted);
}

.crx-hero-flow span {
    padding: 0.3rem 0.75rem;
    background: #fff;
    border: 1px solid var(--crx-border);
    border-radius: 999px;
}

.crx-hero-flow .arrow {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    background: none;
    color: var(--crx-accent);
}

.crx-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.crx-phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.crx-phone-glow {
    position: absolute;
    width: 320px;
    height: 620px;
    border-radius: 48px;
    background: radial-gradient(ellipse at 50% 40%, rgba(75, 140, 248, 0.35) 0%, rgba(0, 122, 255, 0.08) 45%, transparent 70%);
    filter: blur(24px);
    transform: translateY(12px);
    z-index: 0;
}

.crx-phone-device {
    position: relative;
    z-index: 1;
    transform: rotateY(-8deg) rotateX(4deg);
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.crx-phone-device:hover {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-4px);
}

.crx-phone-btn {
    position: absolute;
    background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 50%, #2c2c2e 100%);
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 2px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.crx-phone-btn-power {
    right: -3px;
    top: 28%;
    width: 3px;
    height: 72px;
    border-radius: 0 2px 2px 0;
}

.crx-phone-btn-vol-up {
    left: -3px;
    top: 22%;
    width: 3px;
    height: 36px;
    border-radius: 2px 0 0 2px;
}

.crx-phone-btn-vol-down {
    left: -3px;
    top: 30%;
    width: 3px;
    height: 36px;
    border-radius: 2px 0 0 2px;
}

.crx-phone-frame {
    width: 290px;
    height: 590px;
    padding: 10px;
    border-radius: 44px;
    background: linear-gradient(145deg, #4a4a4c 0%, #1d1d1f 18%, #0a0a0b 50%, #1d1d1f 82%, #3a3a3c 100%);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.28),
        0 20px 40px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.crx-phone-frame::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 42px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 3;
}

.crx-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(165deg, #5a9cf8 0%, #4B8CF8 35%, #2d6fd9 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.crx-phone-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 8px;
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.crx-phone-time {
    width: 54px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.crx-phone-island {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    width: 96px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.crx-phone-island-cam {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1a3a5c 0%, #0a1520 60%, #000 100%);
    box-shadow: inset 0 0 2px rgba(100, 150, 200, 0.3);
}

.crx-phone-signal {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 54px;
    justify-content: flex-end;
}

.crx-signal-bars {
    display: inline-block;
    width: 16px;
    height: 10px;
    background:
        linear-gradient(to top, #fff 0%, #fff 100%) 0 100% / 3px 40% no-repeat,
        linear-gradient(to top, #fff 0%, #fff 100%) 5px 100% / 3px 60% no-repeat,
        linear-gradient(to top, #fff 0%, #fff 100%) 10px 100% / 3px 80% no-repeat,
        linear-gradient(to top, #fff 0%, #fff 100%) 15px 100% / 3px 100% no-repeat;
    opacity: 0.95;
}

.crx-battery {
    display: inline-block;
    width: 22px;
    height: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    position: relative;
    box-sizing: border-box;
}

.crx-battery::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    bottom: 2px;
    width: 72%;
    background: #fff;
    border-radius: 1px;
}

.crx-battery::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 1px 1px 0;
}

.crx-phone-app {
    flex: 1;
    position: relative;
    padding: 8px 14px 0;
    overflow: hidden;
}

.crx-feed-card {
    position: absolute;
    left: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    animation: crxFloat 4s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.crx-feed-card:nth-child(1) { top: 6%; animation-delay: 0s; }
.crx-feed-card:nth-child(2) { top: 34%; animation-delay: 0.8s; }
.crx-feed-card:nth-child(3) { top: 62%; animation-delay: 1.6s; }

.crx-feed-card-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.crx-feed-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.crx-feed-icon-video {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
}

.crx-feed-icon-shop {
    background: linear-gradient(135deg, #FF374C, #FF6B8A);
    font-size: 0.7rem;
}

.crx-feed-icon-chat {
    background: linear-gradient(135deg, #4B8CF8, #6EA7FF);
    font-size: 0.7rem;
}

.crx-feed-card h4 {
    font-size: 0.88rem;
    margin: 0;
    font-weight: 700;
    color: var(--crx-text);
}

.crx-feed-card p {
    font-size: 0.72rem;
    color: var(--crx-text-muted);
    margin: 0 0 0.5rem;
    padding-left: 36px;
}

.crx-feed-meta {
    display: flex;
    gap: 0.75rem;
    padding-left: 36px;
    font-size: 0.68rem;
    color: var(--crx-text-muted);
}

.crx-feed-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34C759;
    display: inline-block;
    margin-right: 2px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(52, 199, 89, 0.6);
}

.crx-phone-tabbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
    font-size: 0.62rem;
    color: var(--crx-text-muted);
    font-weight: 500;
}

.crx-phone-tabbar span.active {
    color: var(--crx-primary);
    font-weight: 700;
}

.crx-phone-home-bar {
    width: 120px;
    height: 4px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    margin: 6px auto 8px;
    position: relative;
    z-index: 2;
}

.crx-phone-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, transparent 35%, transparent 65%, rgba(255, 255, 255, 0.06) 100%);
    pointer-events: none;
    z-index: 4;
    border-radius: 34px;
}

@keyframes crxFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Sections */
.crx-section {
    padding: 5rem 0;
}

.crx-section-alt {
    background: var(--crx-surface);
}

.crx-section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.crx-section-subtitle {
    text-align: center;
    color: var(--crx-text-muted);
    max-width: 640px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.crx-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.crx-feature-card {
    background: #fff;
    border-radius: var(--crx-radius);
    padding: 2rem;
    border: 1px solid var(--crx-border);
    box-shadow: var(--crx-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crx-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 122, 255, 0.18);
}

.crx-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--crx-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.crx-feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

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

/* Community section */
.crx-community-section {
    background: linear-gradient(180deg, #fff 0%, var(--crx-surface) 100%);
}

.crx-community-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: var(--crx-radius);
    border: 1px solid var(--crx-border);
    box-shadow: var(--crx-shadow);
}

.crx-stat-item {
    text-align: center;
    min-width: 90px;
}

.crx-stat-item strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--crx-primary);
    line-height: 1.2;
}

.crx-stat-item span {
    font-size: 0.82rem;
    color: var(--crx-text-muted);
}

.crx-community-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.crx-community-tab {
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    border: 1.5px solid var(--crx-border);
    background: #fff;
    color: var(--crx-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.crx-community-tab:hover {
    border-color: var(--crx-primary);
    color: var(--crx-primary);
}

.crx-community-tab.active {
    background: var(--crx-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
}

.crx-community-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.crx-tag-chip {
    padding: 0.35rem 0.85rem;
    background: rgba(0, 122, 255, 0.08);
    color: var(--crx-primary);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
}

.crx-community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.crx-community-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--crx-border);
    box-shadow: var(--crx-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.crx-community-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 122, 255, 0.15);
}

.crx-community-card.crx-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.crx-community-card.hidden {
    display: none;
}

.crx-card-cover {
    aspect-ratio: 9/14;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.crx-card-featured .crx-card-cover {
    aspect-ratio: auto;
    flex: 1;
    min-height: 220px;
}

.crx-cover-travel {
    background: linear-gradient(160deg, #FF9A56 0%, #FF6B6B 40%, #C44569 100%);
}

.crx-cover-food {
    background: linear-gradient(160deg, #F7971E 0%, #FFD200 50%, #F37335 100%);
}

.crx-cover-skill {
    background: linear-gradient(160deg, #6B4423 0%, #A67C52 50%, #D4A574 100%);
}

.crx-cover-dance {
    background: linear-gradient(160deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.crx-cover-funny {
    background: linear-gradient(160deg, #a8edea 0%, #fed6e3 50%, #ffecd2 100%);
}

.crx-cover-product {
    background: linear-gradient(160deg, #E8D5B7 0%, #C9A96E 40%, #8B6914 100%);
    aspect-ratio: 4/3;
}

.crx-cover-snack {
    background: linear-gradient(160deg, #FF6B6B 0%, #FF8E53 50%, #FFC371 100%);
    aspect-ratio: 4/3;
}

.crx-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.crx-card-play {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.crx-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 59, 48, 0.9);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 6px;
}

.crx-badge-sale {
    background: rgba(255, 55, 76, 0.92);
    top: auto;
    bottom: 10px;
    left: 10px;
}

.crx-badge-live {
    background: rgba(52, 199, 89, 0.9);
    animation: crxPulse 2s ease infinite;
}

@keyframes crxPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.crx-card-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.68rem;
    border-radius: 4px;
    font-weight: 600;
}

.crx-card-body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.crx-card-body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: var(--crx-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crx-card-featured .crx-card-body h3 {
    font-size: 1.05rem;
}

.crx-card-desc {
    font-size: 0.78rem;
    color: var(--crx-text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.crx-card-author {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.crx-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--crx-gradient);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.crx-avatar-2 { background: linear-gradient(135deg, #F7971E, #FFD200); }
.crx-avatar-3 { background: linear-gradient(135deg, #6B4423, #A67C52); }
.crx-avatar-4 { background: linear-gradient(135deg, #667eea, #764ba2); }
.crx-avatar-5 { background: linear-gradient(135deg, #a8edea, #fed6e3); color: #333; }

.crx-author-name {
    font-size: 0.78rem;
    color: var(--crx-text-muted);
    font-weight: 500;
}

.crx-card-tag {
    font-size: 0.72rem;
    color: var(--crx-primary);
    background: rgba(0, 122, 255, 0.08);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.crx-card-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.72rem;
    color: var(--crx-text-muted);
    margin-top: auto;
    padding-top: 0.35rem;
}

.crx-card-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.crx-price-now {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FF374C;
}

.crx-price-old {
    font-size: 0.78rem;
    color: var(--crx-text-muted);
    text-decoration: line-through;
}

.crx-coupon-tag {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    background: #FFF0F2;
    color: #FF374C;
    border-radius: 4px;
    font-weight: 600;
}

/* IM cards */
.crx-card-im {
    padding: 1rem 1.1rem;
}

.crx-card-im-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.crx-card-im-header h3 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.crx-im-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4B8CF8, #6EA7FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.crx-im-icon-call {
    background: linear-gradient(135deg, #34C759, #30D158);
}

.crx-im-icon-serve {
    background: linear-gradient(135deg, #FF9500, #FFCC00);
}

.crx-im-messages {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.crx-im-bubble {
    max-width: 88%;
    padding: 0.45rem 0.75rem;
    background: #F0F2F5;
    border-radius: 12px 12px 12px 4px;
    font-size: 0.75rem;
    color: var(--crx-text);
    line-height: 1.4;
}

.crx-im-bubble-self {
    align-self: flex-end;
    background: rgba(0, 122, 255, 0.12);
    border-radius: 12px 12px 4px 12px;
    color: var(--crx-primary);
}

.crx-im-bubble-at {
    background: #FFF8E6;
    color: #B8860B;
    font-size: 0.72rem;
}

.crx-im-call-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12), rgba(48, 209, 88, 0.06));
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.crx-call-wave {
    width: 4px;
    height: 16px;
    background: #34C759;
    border-radius: 2px;
    animation: crxWave 1s ease-in-out infinite;
}

.crx-call-wave:nth-child(2) { animation-delay: 0.15s; height: 22px; }
.crx-call-wave:nth-child(3) { animation-delay: 0.3s; height: 14px; }

@keyframes crxWave {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.crx-call-time {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: #34C759;
}

.crx-redpacket-visual {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: #FFE4B5;
    text-align: center;
    padding: 1.25rem 1rem;
}

.crx-redpacket-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.35rem;
}

.crx-redpacket-visual strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.crx-redpacket-visual p {
    font-size: 0.75rem;
    opacity: 0.9;
}

.crx-card-redpacket .crx-card-body {
    padding-top: 0.85rem;
}

.crx-serve-notice {
    font-size: 0.78rem;
    color: var(--crx-text-muted);
    padding: 0.65rem 0.75rem;
    background: #F7F8F9;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    line-height: 1.45;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.crx-serve-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF9500;
    flex-shrink: 0;
    margin-top: 5px;
}

.crx-community-hint {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.92rem;
    color: var(--crx-text-muted);
}

@media (max-width: 1100px) {
    .crx-community-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .crx-community-card.crx-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .crx-community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .crx-community-card.crx-card-featured {
        grid-column: span 2;
    }
    .crx-community-stats {
        gap: 1rem 1.5rem;
    }
    .crx-stat-item strong {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .crx-community-grid {
        grid-template-columns: 1fr;
    }
    .crx-community-card.crx-card-featured {
        grid-column: span 1;
    }
}

/* Platform band */
.crx-platform-band {
    background: var(--crx-gradient);
    color: #fff;
    border-radius: var(--crx-radius);
    padding: 3rem 2rem;
    text-align: center;
}

.crx-platform-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.crx-platform-tag {
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.crx-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.crx-trust-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: left;
}

.crx-trust-item h4 {
    margin-bottom: 0.5rem;
}

.crx-trust-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Download */
.crx-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.crx-download-card {
    background: #fff;
    border-radius: var(--crx-radius);
    padding: 2rem 1.75rem;
    text-align: center;
    border: 1px solid var(--crx-border);
    box-shadow: var(--crx-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.crx-download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--crx-gradient);
}

.crx-download-card:hover {
    transform: translateY(-6px);
}

.crx-download-card h4 {
    font-size: 1.1rem;
    margin: 0.5rem 0 1.25rem;
}

.crx-qr {
    width: 148px;
    height: 148px;
    margin: 0 auto 1.25rem;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--crx-border);
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.crx-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.crx-download-card .crx-btn-primary {
    width: 100%;
}

/* Sub-page layout */
.crx-page-body {
    padding-top: calc(var(--crx-nav-height) + 2rem);
    padding-bottom: 3rem;
    min-height: 60vh;
}

.crx-page-hero {
    background: var(--crx-gradient);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--crx-radius);
    margin-bottom: 2.5rem;
}

.crx-page-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.crx-content-card {
    background: #fff;
    border-radius: var(--crx-radius);
    padding: 2.5rem;
    border: 1px solid var(--crx-border);
    box-shadow: var(--crx-shadow);
}

.crx-content-card h2 {
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    color: var(--crx-primary);
}

.crx-content-card h2:first-child {
    margin-top: 0;
}

.crx-content-card p,
.crx-content-card li {
    color: var(--crx-text-muted);
    margin-bottom: 0.75rem;
}

.crx-content-card ul,
.crx-content-card ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.crx-content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.crx-content-card th,
.crx-content-card td {
    border: 1px solid #e5e7eb;
    padding: 0.65rem 0.75rem;
    text-align: left;
}

.crx-content-card th {
    background: #f3f4f6;
    font-weight: 600;
}

/* Footer wrapper */
.crx-footer-wrap {
    background: #1a1a2e;
    padding: 2.5rem 0 1.5rem;
    margin-top: 0;
}

.crx-footer-wrap .site-portal-footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    padding: 0;
}

.crx-footer-wrap .site-footer-item,
.crx-footer-wrap .site-legal-link {
    color: rgba(255, 255, 255, 0.75);
}

.crx-footer-wrap .site-legal-link:hover {
    color: var(--crx-accent-light);
}

.crx-footer-wrap .site-footer-sep {
    color: rgba(255, 255, 255, 0.35);
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .crx-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .crx-hero-lead,
    .crx-hero-flow {
        margin-left: auto;
        margin-right: auto;
    }

    .crx-hero-buttons {
        justify-content: center;
    }

    .crx-phone-mockup {
        order: -1;
    }

    .crx-phone-device {
        transform: none;
    }

    .crx-phone-device:hover {
        transform: translateY(-4px);
    }

    .crx-phone-frame {
        width: 250px;
        height: 510px;
    }

    .crx-phone-glow {
        width: 280px;
        height: 540px;
    }
}

@media (max-width: 768px) {
    .crx-nav-menu {
        display: none;
        position: absolute;
        top: var(--crx-nav-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem 2rem 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .crx-nav-menu.open {
        display: flex;
    }

    .crx-mobile-toggle {
        display: block;
    }

    .crx-user-name {
        display: none;
    }

    .crx-nav-actions .crx-btn-primary.crx-nav-download {
        display: none;
    }

    .crx-content-card {
        padding: 1.5rem;
    }
}
