/* Reset & Base Styles */
:root {
    /* Minimal Color Palette */
    --bg-deep: #050a14;
    --bg-surface: #0f172a;
    --primary-accent: #3b82f6;
    --secondary-accent: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Panel Styles */
    --panel-bg: rgba(15, 23, 42, 0.7);
    --panel-border: rgba(255, 255, 255, 0.05);
    --panel-hover: rgba(30, 41, 59, 0.8);
    
    /* Layout */
    --container-width: 1200px;
    --radius-lg: 8px;
    --radius-pill: 100px;

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

ul {
    list-style: none;   /* 去掉所有列表项前面的小圆点 */
    padding-left: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-deep);
    color: var(--secondary-accent);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4 { 
    letter-spacing: -0.02em; 
    font-weight: 700; 
    color: var(--secondary-accent);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

.text-gradient {
    color: var(--primary-accent);
}

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

/* Layout Utilities */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 5.5rem 0; }

.section-alt {
    background: linear-gradient(180deg, rgba(10, 16, 30, 0.55) 0%, rgba(5, 10, 20, 0.92) 100%);
}

.section,
.section-alt {
    position: relative;
    z-index: 0;
}

.section::before,
.section-alt::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -70px;
    height: 140px;
    background: linear-gradient(180deg, rgba(5, 10, 20, 0) 0%, rgba(5, 10, 20, 0.4) 50%, rgba(5, 10, 20, 0) 100%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.section::after,
.section-alt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -80px;
    height: 160px;
    background: linear-gradient(180deg, rgba(5, 10, 20, 0) 0%, rgba(5, 10, 20, 0.4) 55%, rgba(5, 10, 20, 0) 100%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

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

.section > .container,
.section-alt > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0.5rem auto 0;
    font-size: 0.96rem;
    line-height: 1.75;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 4px; /* Professional squared-off look */
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: #fff;
    border: 1px solid var(--primary-accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-accent);
}

/* ICP & GA Filing Styles */
.cn-icp-links {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.beian-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.beian-link:hover {
    color: var(--secondary-accent);
}

.beian-link img {
    width: 16px;
    height: 16px;
    display: block;
}

.btn-outline:hover {
    border-color: var(--secondary-accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 0; /* Taller padding initially */
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 10, 20, 0.95); /* Dark background only on scroll */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
    padding: 1rem 0;
}

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

.logo a {
    color: var(--secondary-accent);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;   /* 去掉 CORAYSKY 下划线 */
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    font-weight: 500;
    padding: 0.25rem 0;
    letter-spacing: 0.04em;
    text-transform: none;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-accent);
    font-weight: 700; /* 当前页面标题加粗 */
}

.nav-actions { display: flex; gap: 1rem; }
.nav-actions .btn { padding: 0.5rem 1.25rem; font-size: 0.85rem; border-radius: 4px; }

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    padding-top: 96px;          /* 给导航栏预留空间 */
    background-color: #050a14;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(1.05) brightness(0.85);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(2, 6, 23, 0.95) 0%,
        rgba(2, 6, 23, 0.75) 45%,
        rgba(2, 6, 23, 0.25) 100%
    );
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    right: -120px;
    top: 10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(59, 130, 246, 0) 70%);
    filter: blur(10px);
    opacity: 0.9;
    animation: glow-drift 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}

.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* 水平从左开始排布 */
    margin-left: 0;                /* 覆盖 .container 的居中效果 */
    margin-right: auto;
    padding-left: 160px;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin-left: 0;           /* 紧贴 container 左侧内边距 */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 { font-size: 3.6rem; margin-bottom: 1.2rem; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

/* Page Hero (Non-Home Pages) */
.page-hero {
    padding: 10rem 0 4rem; /* 增加顶部内边距以避开固定导航栏 */
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18) 0%, rgba(5, 10, 20, 0.95) 55%), #050a14;
    border-bottom: 1px solid var(--panel-border);
    margin-top: 0;
}

.page-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
}

.page-hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.page-hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Feature Sections (Alternating) */
.feature-section {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 8rem;
}

.feature-section:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content { flex: 1; }
.feature-content h3 { margin-bottom: 1rem; color: var(--primary-accent); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.feature-content h2 { margin-bottom: 1.5rem; }
.feature-content p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

.feature-visual {
    flex: 1.2;
    position: relative;
}

.mockup-window {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 9;   /* 三张图保持统一比例 */
}

.mockup-window img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.mockup-window:hover img { opacity: 1; }

.floating-alert {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 340px;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(248, 250, 252, 0.18);
    box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    font-size: 1rem;
    flex-shrink: 0;
}

.alert-content h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.alert-content p {
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .floating-alert {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
    }
}/* CTA Banner */
.cta-banner {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
                rgba(30, 41, 59, 0.6);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 3.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.cta-banner h3 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
}

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }
}

/* Info & Steps Grid */
.info-grid,
.steps-grid,
.resource-grid,
.faq-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-card,
.resource-card,
.faq-item,
.step-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.info-card:hover,
.resource-card:hover,
.faq-item:hover,
.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 40px -25px rgba(59, 130, 246, 0.35);
}

.info-card h4,
.resource-card h4,
.faq-item h4,
.step-card h4 {
    margin-bottom: 0.75rem;
    color: #fff;
    font-size: 1.1rem;
}

.info-card p,
.resource-card p,
.faq-item p,
.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Step Card Specifics */
.step-card {
    position: relative;
    padding-top: 3.5rem;
}

.step-index {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.step-card:hover .step-index {
    color: rgba(59, 130, 246, 0.1);
}

/* Resource Card Links */
.resource-card .btn-outline {
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Contact Panel */
.contact-panel {
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-panel h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.contact-panel p {
    color: var(--text-muted);
    margin: 0;
}

/* Feature Grid (Advantages) */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.2s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
}

.advantage-icon {
    font-size: 1.5rem;
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.footer-tagline {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.footer-social a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h5 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--primary-accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .feature-section { flex-direction: column; gap: 3rem; text-align: center; }
    .feature-section:nth-child(even) { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .advantages-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form Error Animation & Styles */
.input-error {
    border-color: #ef4444 !important;
    animation: shakeError 0.5s ease-in-out;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
