/* ==========================================================================
   极客大白-DDNS 官方首页全局样式表 (Harmonious with Management Console Style)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #080B11;
    --card-bg: rgba(13, 20, 35, 0.65);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --primary-color: #5F5DEC;
    --primary-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --accent-cyan: #06B6D4;
    --danger-color: #EF4444;
    --success-color: #10B981;
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* 额外配色 */
    --purple-glow: rgba(99, 102, 241, 0.15);
    --cyan-glow: rgba(6, 182, 212, 0.15);
}

/* ==================== 基础与布局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    scroll-behavior: smooth;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 45%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== 通用辅助样式 ==================== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-cyan {
    color: var(--accent-cyan);
}

.color-white {
    color: #FFF;
}

.text-glow {
    color: #FFF;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

/* ==================== 按钮系统 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.55);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 14px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.9;
    filter: blur(12px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 14px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 15px 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    background: rgba(8, 11, 17, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

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

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.domain-badge {
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

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

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.nav-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==================== Hero 核心展示区 ==================== */
.hero-section {
    padding: 160px 0 50px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    padding: 0 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-glow {
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #A5B4FC;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 24px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.hero-title {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-brand-name {
    font-size: 5.2rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 8px;
    display: inline-block;
}

.hero-subtext-main {
    font-size: 2.8rem;
    font-weight: 800;
    display: inline-block;
    letter-spacing: -0.5px;
}

.hero-subtext-sub {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: inline-block;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-meta-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFF;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

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

/* 模拟终端窗口 */
.hero-visual {
    display: flex;
    justify-content: center;
    width: 100%;
}

.terminal-window {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-header {
    background: rgba(8, 11, 17, 0.8);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: monospace;
    margin-left: 8px;
}

.terminal-body {
    padding: 20px;
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    background: rgba(13, 20, 35, 0.45);
    min-height: 250px;
    line-height: 1.6;
}

.terminal-body p {
    margin-bottom: 8px;
}

.terminal-body p:last-child {
    margin-bottom: 0;
}

.prompt {
    color: #818cf8;
    margin-right: 8px;
    font-weight: 600;
}

.text-cyan { color: #22d3ee; }
.text-green { color: #34d399; }
.cmd { color: #f3f4f6; }
.output { color: #9ca3af; }

/* ==================== 核心特点网格 ==================== */
.features-section {
    padding: 0 40px 25px 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

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

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

.feature-card {
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(13, 20, 35, 0.8);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bg-purple { background: rgba(99, 102, 241, 0.12); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.2); }
.bg-cyan { background: rgba(6, 182, 212, 0.12); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.2); }
.bg-indigo { background: rgba(79, 70, 229, 0.12); color: #6366f1; border: 1px solid rgba(79, 70, 229, 0.2); }
.bg-emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 快速指南板块 ==================== */
.quickstart-section {
    padding: 25px 40px 100px 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.step-card {
    padding: 30px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.step-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    user-select: none;
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.step-card h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-card a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
}

.step-card a:hover {
    text-decoration: underline;
}

/* 指南代码交互面板 */
.tutorial-console {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.console-tabs {
    background: rgba(8, 11, 17, 0.8);
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
}

.tab-btn {
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: rgba(13, 20, 35, 0.45);
    color: var(--text-primary);
    border-bottom: 2px solid #6366F1;
}

.console-content-container {
    background: rgba(13, 20, 35, 0.45);
    position: relative;
}

.console-content {
    display: none;
    padding: 30px;
}

.console-content.active {
    display: block;
}

.console-content pre {
    font-family: 'Consolas', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #E5E7EB;
    overflow-x: auto;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}

.comment { color: #6b7280; font-style: italic; }
.highlight { color: #f472b6; font-weight: 600; }

.btn-copy-code {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

/* ==================== 常见问题解答 ==================== */
.faq-section {
    padding: 100px 40px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

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

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    padding: 24px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1;
    font-weight: 300;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-top: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(13, 20, 35, 0.85);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #6366F1;
}

/* ==================== 底部 CTA 广告板块 ==================== */
.cta-banner-section {
    padding: 100px 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-banner {
    padding: 80px 40px;
    text-align: center;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-glow-element {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.cta-banner p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px auto;
    position: relative;
    z-index: 2;
}

.cta-banner .btn {
    position: relative;
    z-index: 2;
}

/* ==================== 页脚 ==================== */
.footer {
    background: rgba(8, 11, 17, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 50px 40px;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-link {
    color: #818cf8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-sep {
    color: var(--border-color);
    font-size: 0.85rem;
}

/* ==================== 响应式设计断点 (Mobile & Tablet Optimization) ==================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-brand-name {
        font-size: 4.2rem;
    }
    .hero-subtext-main {
        font-size: 2.4rem;
    }
    .hero-subtext-sub {
        font-size: 1.9rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-meta-stats {
        justify-content: center;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 移动端菜单激活样式 */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 85px;
        right: -100%;
        width: calc(100vw - 40px);
        max-width: 320px;
        height: auto;
        background: rgba(13, 20, 35, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 30px;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        right: 20px;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .hero-section {
        padding-top: 140px;
    }
    
    .hero-brand-name {
        font-size: 3.4rem;
    }
    .hero-subtext-main {
        font-size: 2rem;
    }
    .hero-subtext-sub {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-banner {
        padding: 60px 20px;
    }
    
    .cta-banner h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: 95%;
        padding: 12px 20px;
    }
    
    .nav-brand {
        font-size: 1.15rem;
    }
    
    .hero-brand-name {
        font-size: 2.8rem;
    }
    .hero-subtext-main {
        font-size: 1.7rem;
    }
    .hero-subtext-sub {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-meta-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .console-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 12px 20px;
        text-align: left;
    }
    
    .tab-btn.active {
        border-left: 2px solid #6366F1;
        border-bottom: none;
    }
    
    .btn-copy-code {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 15px;
        display: inline-block;
    }
}
