/* ==========================================================================
   Xiuno X Landing Page — Custom Styles
   Design System + Component Styles + Animations + Responsive
   ==========================================================================

   1. Design System (CSS Variables)
   2. Global Reset & Base
   3. Utility Classes
   4. Navigation
   5. Hero Section
   6. Features Section
   7. Screenshots Section
   8. Beta Recruitment
   9. Tech Stack
   10. Community
   11. CTA Banner
   12. Footer
   13. Back to Top
   14. Animations
   15. Responsive

   ==========================================================================

   作用域说明：本文件仅在 landing 页加载。全局 reset 已限定到 .landing-page
   作用域（landing 页 body 需添加 class="landing-page"），避免污染论坛其他页面。
   :root 的 CSS 变量保留全局（--xiuno-* 前缀，不与论坛 theme.css 冲突）。
   Footer 样式已拆分到 landing_footer.css（全局加载）。


/* ==========================================================================
   1. Design System — CSS Variables
   ========================================================================== */
:root {
    /* Brand Colors */
    --xiuno-primary: #2563eb;
    --xiuno-primary-light: #3b82f6;
    --xiuno-primary-dark: #1d4ed8;
    --xiuno-space-dark: #1a1a2e;

    /* Gradient */
    --xiuno-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --xiuno-gradient-blue: linear-gradient(135deg, #2563eb 0%, #667eea 100%);
    --xiuno-gradient-hero: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);

    /* Accent Colors */
    --xiuno-accent-orange: #f59e0b;
    --xiuno-accent-cyan: #06b6d4;
    --xiuno-accent-green: #10b981;
    --xiuno-accent-purple: #8b5cf6;
    --xiuno-accent-red: #ef4444;

    /* Text */
    --xiuno-text-dark: #1f2937;
    --xiuno-text-light: #f9fafb;
    --xiuno-text-muted: #6b7280;
    --xiuno-text-secondary: #4b5563;

    /* Background */
    --xiuno-bg: #ffffff;
    --xiuno-bg-light: #f9fafb;
    --xiuno-bg-section: #f3f4f6;
    --xiuno-bg-dark: #1a1a2e;

    /* Border */
    --xiuno-border: #e5e7eb;
    --xiuno-border-light: #f3f4f6;

    /* Typography */
    --xiuno-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Inter", "Segoe UI", Roboto, sans-serif;
    --xiuno-font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;

    /* Spacing (8px grid) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 3rem;     /* 48px */
    --space-6: 4rem;     /* 64px */
    --space-7: 6rem;     /* 96px */

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(102, 126, 234, 0.3);

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

    /* Container */
    --container-max: 1200px;
}


/* ==========================================================================
   2. Global Reset & Base
   ========================================================================== */
/* 全局 reset 限定到 .landing-page 作用域（landing 页 body 需 class="landing-page"），
   避免污染论坛其他页面。html 保留全局（根元素无法用 body class 限定，仅影响 landing 页）。 */
 
#notify-bell, .dropdown.ms-2,.ti-search,#fabPost{
    display: none;
}
 

body.landing-page {
    font-family: var(--xiuno-font);
    color: var(--xiuno-text-dark);
    background: var(--xiuno-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.landing-page a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.landing-page ul {
    list-style: none;
}

 

.landing-page ::selection {
    background: var(--xiuno-primary);
    color: white;
}

/* Custom scrollbar (landing 页内) */
.landing-page ::-webkit-scrollbar {
    width: 10px;
}
.landing-page ::-webkit-scrollbar-track {
    background: var(--xiuno-bg-light);
}
.landing-page ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}
.landing-page ::-webkit-scrollbar-thumb:hover {
    background: var(--xiuno-primary);
}


/* ==========================================================================
   3. Utility Classes
   ========================================================================== */
.gradient-text {
    background: var(--xiuno-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: var(--space-7) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-5);
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--xiuno-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--xiuno-text-dark);
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--xiuno-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.xiuno-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--xiuno-gradient-blue);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.xiuno-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.xiuno-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white !important;
}

.xiuno-btn-primary:hover::before {
    left: 100%;
}

.xiuno-btn-primary i {
    font-size: 1.2em;
}

.xiuno-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--xiuno-text-dark);
    border: 2px solid var(--xiuno-border);
    padding: 10px 26px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.xiuno-btn-outline:hover {
    border-color: var(--xiuno-primary);
    color: var(--xiuno-primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.xiuno-btn-outline i {
    font-size: 1.2em;
}

.xiuno-btn-ghost {
    color: var(--xiuno-text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    background: transparent;
}

.xiuno-btn-ghost:hover {
    color: var(--xiuno-primary);
    background: rgba(37, 99, 235, 0.08);
}

.btn-lg {
    padding: 14px 32px !important;
    font-size: 1.05rem !important;
}


/* ==========================================================================
   4. Navigation
   ========================================================================== */
.xiuno-nav {
    background: transparent;
    padding: 20px 0;
    transition: var(--transition);
    z-index: 1000;
}

.xiuno-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.xiuno-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--xiuno-text-dark);
    letter-spacing: -0.02em;
}

.xiuno-logo-x {
    background: var(--xiuno-gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xiuno-nav-link {
    font-weight: 500;
    color: var(--xiuno-text-secondary) !important;
    padding: 8px 18px !important;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

.xiuno-nav-link:hover {
    color: var(--xiuno-primary) !important;
    background: rgba(37, 99, 235, 0.08);
}

.xiuno-nav-link.active {
    color: var(--xiuno-primary) !important;
}

.nav-buttons {
    gap: 8px;
}

.xiuno-toggler {
    border: 1px solid var(--xiuno-border);
    padding: 6px 10px;
}

.xiuno-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Nav on Hero (dark background) - white text */
.xiuno-nav:not(.scrolled) .xiuno-logo-text,
.xiuno-nav:not(.scrolled) .xiuno-nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.xiuno-nav:not(.scrolled) .xiuno-nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
}

.xiuno-nav:not(.scrolled) .xiuno-btn-ghost {
    color: rgba(255, 255, 255, 0.9);
}

.xiuno-nav:not(.scrolled) .xiuno-btn-ghost:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.xiuno-nav:not(.scrolled) .navbar-toggler-icon {
    filter: invert(1);
}

.xiuno-nav:not(.scrolled) .xiuno-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

#navSearchForm{
    display: none!important;
  
}
/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--xiuno-gradient-hero);
    padding-top: 120px;
    padding-bottom: 60px;
    margin-top: -76px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.6;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2563eb, transparent);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #667eea, transparent);
    bottom: -50px;
    left: -80px;
    animation-delay: 2s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #764ba2, transparent);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8)!important;
 
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 1;
}

/* 左右两栏布局：左文字 + 右 mock display */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-3);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--xiuno-accent-orange);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: var(--space-3);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

/* On dark hero, outline button should be white */
.hero .xiuno-btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.hero .xiuno-btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    font-family: "Inter", sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}


/* ==========================================================================
   5b. Hero Mock Display (PC + Mobile)
   ========================================================================== */
.hero-mock {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

/* PC 浏览器窗口 */
.hero-mock-pc {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease-out, box-shadow 0.4s ease;
    z-index: 2;
}

.hero-mock-pc:hover {
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
}

.hero-mock-pc-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mock-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.hero-mock-dot.red { background: #ff5f57; }
.hero-mock-dot.yellow { background: #ffbd2e; }
.hero-mock-dot.green { background: #28ca42; }

.hero-mock-url {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mock-url i {
    font-size: 0.7rem;
    color: var(--xiuno-accent-green);
}

.hero-mock-pc-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* mock 内论坛 header */
.hero-mock-forum-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-mock-forum-logo {
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.hero-mock-forum-logo span {
    background: var(--xiuno-gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-mock-forum-nav {
    display: flex;
    gap: 6px;
    flex: 1;
}

.hero-mock-nav-pill {
    height: 6px;
    width: 32px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-mock-nav-pill.active {
    width: 40px;
    background: var(--xiuno-primary);
}

.hero-mock-forum-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--xiuno-gradient);
    flex-shrink: 0;
}

/* mock 内论坛帖子列表 */
.hero-mock-forum-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-mock-thread {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.hero-mock-thread:hover {
    background: rgba(255, 255, 255, 0.07);
}

.hero-mock-thread-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-mock-thread-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-mock-line {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
}

.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }

.hero-mock-tag {
    width: 28px;
    height: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* 手机框 */
.hero-mock-phone {
    position: absolute;
    bottom: -20px;
    right: -10px;
    width: 130px;
    background: rgba(20, 20, 35, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 3;
    transition: transform 0.2s ease-out, box-shadow 0.4s ease;
}

.hero-mock-phone:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.hero-mock-phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 0 0 8px 8px;
    z-index: 4;
}

.hero-mock-phone-screen {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    height: 220px;
}

.hero-mock-phone-header {
    height: 32px;
    background: var(--xiuno-gradient-blue);
    border-radius: 0 0 10px 10px;
    margin-bottom: 8px;
}

.hero-mock-phone-cards {
    flex: 1;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-mock-phone-card {
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-mock-phone-card .hero-mock-line {
    height: 4px;
}

.hero-mock-phone-tabbar {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 8px;
}

.hero-mock-tab {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-mock-tab.active {
    background: var(--xiuno-primary);
}

/* 浮动标签 */
.hero-mock-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 4;
    animation: floatBadge 4s ease-in-out infinite;
}

.hero-mock-float i {
    font-size: 1rem;
}

.hero-mock-float-1 {
    top: 10px;
    left: -15px;
    animation-delay: 0s;
}

.hero-mock-float-1 i {
    color: var(--xiuno-accent-green);
}

.hero-mock-float-2 {
    bottom: 80px;
    right: -20px;
    animation-delay: 2s;
}

.hero-mock-float-2 i {
    color: var(--xiuno-accent-orange);
}

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


/* ==========================================================================
   6. Features Section
   ========================================================================== */
.features {
    background: var(--xiuno-bg-light);
}

.features-grid {
    margin-top: var(--space-5);
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    height: 100%;
    border: 1px solid var(--xiuno-border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--icon-color, var(--xiuno-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card-highlight {
    background: var(--xiuno-gradient);
    color: white;
    border: none;
}

.feature-card-highlight::before {
    display: none;
}

.feature-card-highlight .feature-title,
.feature-card-highlight .feature-desc {
    color: white;
}

.feature-card-highlight .feature-tags li {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--icon-color, var(--xiuno-primary)) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--icon-color, var(--xiuno-primary));
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--icon-color, var(--xiuno-primary));
    transition: var(--transition);
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card-highlight .feature-icon {
    background: rgba(255, 255, 255, 0.15);
}

.feature-card-highlight .feature-icon i {
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--xiuno-text-dark);
    margin-bottom: var(--space-1);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--xiuno-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tags li {
    padding: 4px 10px;
    background: var(--xiuno-bg-section);
    color: var(--xiuno-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}


/* ==========================================================================
   7. Screenshots Section
   ========================================================================== */
.screenshots {
    background: white;
}

.screenshots-showcase {
    margin-top: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.screenshot-card {
    width: 100%;
}

.screenshot-main {
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.screenshot-browser {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--xiuno-border);
    transition: var(--transition);
}

.screenshot-browser:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--xiuno-bg-light);
    border-bottom: 1px solid var(--xiuno-border);
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #28ca42; }

.browser-url {
    margin-left: auto;
    padding: 4px 12px;
    background: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--xiuno-text-muted);
    border: 1px solid var(--xiuno-border);
}

.screenshot-content {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-main .screenshot-content {
    height: 400px;
}

.screenshot-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--xiuno-text-muted);
    margin-top: var(--space-2);
    font-weight: 500;
}

/* 真实截图图片：加载后覆盖整个区域 */
.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* 占位符状态：图片有 src 但未加载完时，显示条纹背景 + photo-off 图标 */
.screenshot-content:has(.screenshot-img[src]:not([src=""]))::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 12px,
            rgba(37, 99, 235, 0.03) 12px,
            rgba(37, 99, 235, 0.03) 24px
        ),
        linear-gradient(135deg, #f8fafc, #eef2f7);
    z-index: 0;
}

.screenshot-content:has(.screenshot-img[src]:not([src=""]))::after {
    content: '\eb44'; /* tabler: photo-off 图标 */
    font-family: 'tabler-icons';
    font-size: 2.5rem;
    color: #cbd5e1;
    position: absolute;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* 图片加载成功后隐藏占位符 */
.screenshot-content:has(.screenshot-img.natural-loaded)::before,
.screenshot-content:has(.screenshot-img.natural-loaded)::after {
    opacity: 0;
    pointer-events: none;
}


/* ==========================================================================
   8. Beta Recruitment
   ========================================================================== */
.beta {
    background: var(--xiuno-bg-light);
}

.beta-users-bar {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.beta-users-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 12px 24px;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--xiuno-border);
}

.beta-avatars {
    display: flex;
}

.beta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid white;
    margin-left: -10px;
}

.beta-avatar:first-child {
    margin-left: 0;
}

.beta-avatar-more {
    background: var(--xiuno-bg-section);
    color: var(--xiuno-text-secondary);
}

/* 真实用户头像：覆盖字母占位符的背景/文字样式，用图片填充 */
.beta-avatar-real {
    background: var(--xiuno-bg-section);
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s ease, z-index 0s 0.2s;
}
.beta-avatar-real:hover {
    transform: translateY(-2px);
    z-index: 10;
    transition: transform 0.2s ease, z-index 0s 0s;
}
.beta-avatar-real img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beta-users-text {
    font-size: 0.9rem;
    color: var(--xiuno-text-muted);
}

.beta-users-text strong {
    color: var(--xiuno-primary);
    font-size: 1.1rem;
}

.beta-cards {
    margin-top: var(--space-3);
}

.beta-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    height: 100%;
    border: 1px solid var(--xiuno-border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.beta-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.beta-card-featured {
    background: white;
    border: 2px solid var(--xiuno-primary);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
}

.beta-card-badge {
    position: absolute;
    top: -12px;
    right: var(--space-4);
    padding: 4px 14px;
    background: var(--xiuno-gradient-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.beta-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.beta-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--beta-color, var(--xiuno-primary)) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.beta-card-icon i {
    font-size: 1.5rem;
    color: var(--beta-color, var(--xiuno-primary));
}

.beta-card-tag {
    padding: 4px 12px;
    background: var(--xiuno-bg-section);
    color: var(--xiuno-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.beta-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--xiuno-text-dark);
    margin-bottom: var(--space-1);
}

.beta-card-desc {
    font-size: 0.9rem;
    color: var(--xiuno-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.beta-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-4);
    flex: 1;
}

.beta-card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--xiuno-text-secondary);
}

.beta-card-list li i {
    color: var(--xiuno-accent-green);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.beta-apply-btn {
    width: 100%;
    justify-content: center;
}


/* ==========================================================================
   9. Tech Stack
   ========================================================================== */
.tech-stack {
    background: white;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: var(--space-3) var(--space-4);
    background: white;
    border: 1px solid var(--xiuno-border);
    border-radius: var(--radius-lg);
    min-width: 120px;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-6px);
    border-color: var(--xiuno-primary);
    box-shadow: var(--shadow-lg);
}

.tech-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--xiuno-bg-light);
    transition: var(--transition);
}

.tech-icon i {
    font-size: 1.5rem;
    color: var(--xiuno-primary);
}

.tech-item:hover .tech-icon {
    background: var(--xiuno-gradient-blue);
}

.tech-item:hover .tech-icon i {
    color: white;
}

.tech-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--xiuno-text-secondary);
}

.tech-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--xiuno-bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--xiuno-border);
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tech-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tech-info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-info-icon i {
    font-size: 1.25rem;
    color: var(--xiuno-primary);
}

.tech-info-text {
    display: flex;
    flex-direction: column;
}

.tech-info-text strong {
    font-size: 0.95rem;
    color: var(--xiuno-text-dark);
}

.tech-info-text span {
    font-size: 0.8rem;
    color: var(--xiuno-text-muted);
}

.tech-info-actions {
    display: flex;
    gap: var(--space-1);
}

.tech-repo-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--xiuno-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--xiuno-text-secondary);
    transition: var(--transition);
}

.tech-repo-link:hover {
    border-color: var(--xiuno-primary);
    color: var(--xiuno-primary);
    transform: translateY(-2px);
}

.tech-repo-link i:last-child {
    font-size: 0.8rem;
    opacity: 0.5;
}


/* ==========================================================================
   10. Community
   ========================================================================== */
.community {
    background: var(--xiuno-bg-light);
}

.community-grid {
    margin-top: var(--space-5);
}

.community-card {
    display: block;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    height: 100%;
    border: 1px solid var(--xiuno-border);
    transition: var(--transition);
    text-align: center;
}

.community-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.community-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--comm-color, var(--xiuno-primary)) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-2);
    transition: var(--transition);
}

.community-card:hover .community-icon {
    background: var(--comm-color, var(--xiuno-primary));
    transform: scale(1.1);
}

.community-icon i {
    font-size: 1.5rem;
    color: var(--comm-color, var(--xiuno-primary));
    transition: var(--transition);
}

.community-card:hover .community-icon i {
    color: white;
}

.community-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--xiuno-text-dark);
    margin-bottom: 6px;
}

.community-card p {
    font-size: 0.85rem;
    color: var(--xiuno-text-muted);
    margin-bottom: var(--space-2);
}

.community-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--xiuno-primary);
    transition: var(--transition);
}

.community-card:hover .community-link {
    gap: 8px;
}

.contributors-section {
    margin-top: var(--space-6);
    text-align: center;
}

.contributors-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--xiuno-text-dark);
    margin-bottom: var(--space-3);
}

.contributors-avatars {
    display: flex;
    justify-content: center;
    gap: 0;
}

.contributor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--xiuno-bg-light);
    margin-left: -12px;
    transition: var(--transition);
    cursor: pointer;
}

.contributor-avatar:first-child {
    margin-left: 0;
}

.contributor-avatar:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 1;
}

.contributor-more {
    background: var(--xiuno-bg-section);
    color: var(--xiuno-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}


/* ==========================================================================
   11. CTA Banner
   ========================================================================== */
.cta-banner {
    background: var(--xiuno-gradient-hero);
    padding: var(--space-6) 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-2);
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-4);
}

.cta-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-banner .xiuno-btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.cta-banner .xiuno-btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   12. Footer
   （Footer 样式已拆分到 landing_footer.css，全局加载）
   ========================================================================== */


/* ==========================================================================
   13. Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--xiuno-gradient-blue);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.4);
}


/* ==========================================================================
   14. Animations — Scroll Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grids */
.reveal[data-reveal-delay="0"] { transition-delay: 0s; }
.reveal[data-reveal-delay="100"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="150"] { transition-delay: 0.15s; }
.reveal[data-reveal-delay="200"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="300"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="400"] { transition-delay: 0.4s; }
.reveal[data-reveal-delay="600"] { transition-delay: 0.6s; }


/* ==========================================================================
   15. Responsive
   ========================================================================== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 991.98px) {
    /* hero-grid 降级为单列，文字居中 */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-badge,
    .hero-cta,
    .hero-stats {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-mock {
        max-width: 500px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-buttons {
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
        margin-top: var(--space-2);
    }

    .nav-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .screenshot-row {
        grid-template-columns: 1fr;
    }

    .stat-divider {
        display: none;
    }

    .hero-stats {
        gap: var(--space-3);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 767.98px) {
    .section {
        padding: var(--space-6) 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-mock-pc {
        max-width: 380px;
    }

    .hero-mock-phone {
        width: 110px;
    }

    .hero-mock-phone-screen {
        height: 185px;
    }

    .hero-mock-float {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-desc {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .screenshot-content {
        height: 200px;
    }

    .screenshot-main .screenshot-content {
        height: 280px;
    }

    .tech-info-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .tech-info-actions {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* Small devices (mobile, 576px and up) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-2);
    }

    .hero-mock-pc {
        max-width: 320px;
    }

    .hero-mock-phone {
        width: 95px;
        bottom: -10px;
        right: 0;
    }

    .hero-mock-phone-screen {
        height: 160px;
    }

    .hero-mock-float {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .feature-card,
    .beta-card {
        padding: var(--space-3);
    }

    .tech-item {
        min-width: 100px;
        padding: var(--space-2);
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}


/* ==========================================================================
   12. Landing Page Navbar 透明效果
   ==========================================================================
   landing 页复用论坛 header.inc.htm 的 <header id="header" class="navbar bg-body shadow-sm">
   顶部时（未滚动）：背景透明，文字/图标白色，与深色 hero 渐变融合
   滚动 60px 后：landing.js 加 .scrolled class，恢复 navbar 原样式（bg-body + shadow-sm）
   只影响 navbar 顶栏本身，下拉菜单（dropdown-menu）保持原主题样式
   ========================================================================== */
.landing-page #header:not(.scrolled) {
    background: transparent !important;
    box-shadow: none !important;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 顶部时文字/图标变白 */
.landing-page #header:not(.scrolled) .site-name,
.landing-page #header:not(.scrolled) .nav-link,
.landing-page #header:not(.scrolled) .nav-icon-btn,
.landing-page #header:not(.scrolled) .navbar-nav > .nav-item > .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.landing-page #header:not(.scrolled) .nav-link:hover,
.landing-page #header:not(.scrolled) .nav-icon-btn:hover {
    color: #fff !important;
}

/* 顶部时站点 logo 图标也变白（如果有白色 logo）*/
/* .landing-page #header:not(.scrolled) .site-logo {
    filter: brightness(0) invert(1);
} */

/* 滚动后恢复 navbar 原样式（无需显式覆盖，移除上述规则即可）*/
.landing-page #header.scrolled {
    background: var(--bs-body-bg) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* dark mode 下 hero 也是深色渐变，文字仍用白色 */
[data-bs-theme="dark"] .landing-page #header:not(.scrolled) .site-name,
[data-bs-theme="dark"] .landing-page #header:not(.scrolled) .nav-link,
[data-bs-theme="dark"] .landing-page #header:not(.scrolled) .nav-icon-btn,
[data-bs-theme="dark"] .landing-page #header:not(.scrolled) .navbar-nav > .nav-item > .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}
