/* ===== Sakura Panel 现代首页样式 ===== */

:root {
    --grad-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --grad-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --grad-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --grad-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --grad-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --bg-dark: #1a1a2e;
    --bg-dark-2: #16213e;
    --bg-light: #f5f7fa;
    --bg-card: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --border-color: #e9ecef;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-card: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-glow: 0 8px 30px rgba(102,126,234,0.3);
    --font-sans: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    --container-max: 1140px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

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

section { position: relative; }

.section-padding { padding: 80px 0; }
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 50px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(102,126,234,0.4); }
.btn-success {
    background: var(--grad-success);
    color: #fff;
    box-shadow: 0 8px 25px rgba(17,153,142,0.3);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(17,153,142,0.4); }
.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}
.btn-outline:hover { border-color: #667eea; color: #667eea; }
.btn-ghost {
    background: transparent;
    color: var(--text-dark);
    padding: 10px 20px;
}
.btn-ghost:hover { color: #667eea; }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ===== 顶部公告条 ===== */
.announce-bar {
    background: var(--grad-warm);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s;
}
.announce-bar:hover { opacity: 0.9; }
.announce-bar i { margin-right: 8px; }
.announce-bar .announce-text { font-weight: 500; }

/* ===== 导航栏 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.navbar.is-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: height 0.3s;
}
.navbar.is-scrolled .navbar-inner { height: 60px; }
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}
.navbar-brand img { height: 36px; }
.navbar-brand .brand-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: #667eea; }

/* 导航栏按钮样式修正（防止 .nav-links a 覆盖按钮颜色和字重） */
.nav-links .btn {
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
}
.nav-links .btn-primary,
.nav-links .btn-primary:hover { color: #fff; }
.nav-links .btn-ghost { color: var(--text-dark); }
.nav-links .btn-ghost:hover { color: #667eea; }
.nav-links .btn-outline,
.nav-links .btn-outline:hover { color: var(--text-dark); }
.nav-links .btn-outline:hover { border-color: #667eea; color: #667eea; }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    background: var(--bg-dark);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.hero::before {
    width: 500px; height: 500px;
    background: #667eea;
    top: -150px; right: -100px;
}
.hero::after {
    width: 400px; height: 400px;
    background: #11998e;
    bottom: -100px; left: -100px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-copy h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #c3cfe2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-copy p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 35px;
    line-height: 1.8;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-cta .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.hero-cta .btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Hero 终端 mockup */
.hero-terminal {
    background: #0d1117;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-bar .dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.terminal-bar .dot.red { background: #ff5f56; }
.terminal-bar .dot.yellow { background: #ffbd2e; }
.terminal-bar .dot.green { background: #27c93f; }
.terminal-bar .terminal-title {
    margin-left: auto;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-family: var(--font-mono);
}
.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    color: #c9d1d9;
    overflow-x: auto;
    white-space: pre;
    word-break: break-all;
}
.terminal-body .cmd { color: #58a6ff; }
.terminal-body .info { color: #8b949e; }
.terminal-body .success { color: #3fb950; }
.terminal-body .url { color: #79c0ff; }

/* ===== 数据统计 ===== */
.stats {
    background: #fff;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.stat-card {
    text-align: center;
}
.stat-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 26px;
    color: #fff;
}
.stat-icon.purple { background: var(--grad-primary); }
.stat-icon.green { background: var(--grad-success); }
.stat-icon.blue { background: var(--grad-info); }
.stat-icon.pink { background: var(--grad-accent); }
.stat-number {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== 核心功能 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(102,126,234,0.15);
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}
.feature-card h4 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 使用流程 ===== */
.steps-section { background: #fff; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #11998e);
    opacity: 0.3;
}
.step-card {
    text-align: center;
    position: relative;
}
.step-number {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(102,126,234,0.3);
}
.step-card:nth-child(2) .step-number { background: var(--grad-info); box-shadow: 0 8px 25px rgba(79,172,254,0.3); }
.step-card:nth-child(3) .step-number { background: var(--grad-success); box-shadow: 0 8px 25px rgba(17,153,142,0.3); }
.step-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.step-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== 节点展示 ===== */
.nodes-section { background: var(--bg-light); }
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.node-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}
.node-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.node-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(17,153,142,0.1);
    color: #11998e;
    margin-bottom: 12px;
}
.node-status .pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #11998e;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.node-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.node-meta {
    font-size: 13px;
    color: var(--text-muted);
}
.node-meta i { margin-right: 4px; }

/* ===== 价格方案 ===== */
.pricing-section { background: #fff; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 760px;
    margin: 0 auto;
}
.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 35px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pricing-card.recommended {
    border-color: #667eea;
    box-shadow: var(--shadow-glow);
}
.pricing-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-accent);
    color: #fff;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.pricing-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}
.pricing-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
}
.pricing-price .currency { font-size: 20px; vertical-align: top; }
.pricing-price .period { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.pricing-features {
    margin-bottom: 30px;
}
.pricing-features li {
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: #11998e; margin-right: 8px; }

/* ===== 用户评价 ===== */
.testimonials-section { background: #fff; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.testimonial-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 35px 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: var(--shadow-card);
    border-color: rgba(102,126,234,0.1);
}
.testimonial-quote-icon {
    color: rgba(102,126,234,0.15);
    font-size: 32px;
    margin-bottom: 15px;
}
.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 22px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}
.testimonial-info {
    display: flex;
    flex-direction: column;
}
.testimonial-info strong {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 700;
}
.testimonial-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== 公告区 ===== */
.ann-list {
    margin: 0;
}
.ann-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
}
.ann-card:hover { box-shadow: var(--shadow-card); }
.ann-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.ann-meta i { color: #667eea; }
.ann-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.ann-content { font-size: 14px; line-height: 1.8; color: #495057; }
.ann-content h1, .ann-content h2, .ann-content h3 { font-size: 16px; margin: 12px 0 8px; }
.ann-content p { margin-bottom: 10px; }
.ann-content ul, .ann-content ol { margin: 8px 0 12px 20px; }
.ann-content li { margin-bottom: 4px; }
.ann-content code {
    background: #f1f3f5; padding: 2px 6px; border-radius: 4px;
    font-family: var(--font-mono); font-size: 13px; color: #e83e8c;
}
.ann-content pre {
    background: #f8f9fa; padding: 15px; border-radius: 8px;
    overflow-x: auto; margin: 10px 0; border: 1px solid var(--border-color);
}
.ann-content pre code { background: none; color: #333; }
.ann-content img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.ann-content a { color: #667eea; }
.ann-content blockquote {
    border-left: 4px solid #667eea; padding-left: 15px; margin: 10px 0; color: var(--text-muted);
}

/* ===== 横排两列：公告 + 帮助 ===== */
.dual-section { background: var(--bg-light); }
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.dual-col-header {
    margin-bottom: 25px;
}
.dual-col-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dual-col-header h2 i {
    color: #667eea;
    font-size: 22px;
}
.dual-col-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== 帮助文档 ===== */
.helps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.help-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    border: 1px solid transparent;
}
.help-item:hover {
    background: #fff;
    border-color: rgba(102,126,234,0.2);
    box-shadow: var(--shadow-soft);
    transform: translateX(4px);
}
.help-item i.fa-question-circle { color: #11998e; font-size: 18px; }
.help-item .help-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}
.help-item .help-platform {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(79,172,254,0.1);
    color: #4facfe;
    font-weight: 600;
    white-space: nowrap;
}
.help-item .help-arrow { color: var(--text-light); font-size: 14px; }

/* ===== 最终 CTA ===== */
.final-cta {
    background: var(--grad-primary);
    color: #fff;
    text-align: center;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.final-cta::before, .final-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.final-cta::before { width: 300px; height: 300px; top: -100px; right: -50px; }
.final-cta::after { width: 200px; height: 200px; bottom: -80px; left: -50px; }
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}
.final-cta p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 30px;
}
.final-cta .btn {
    background: #fff;
    color: #667eea;
    font-size: 17px;
    padding: 16px 40px;
}
.final-cta .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(226,232,240,1);
    padding: 48px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.footer-brand .brand-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
    flex-shrink: 0;
}
.footer-brand img { height: 28px; }
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }
.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; opacity: 0.2; margin-bottom: 15px; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-copy h1 { font-size: 38px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .dual-grid { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 26px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-links.is-open { display: flex; }
    .nav-toggle { display: block; }
    .nav-actions { display: none; }
    .nav-links.is-open .nav-actions { display: flex; flex-direction: column; width: 100%; }
    .nav-links.is-open .nav-actions .btn { width: 100%; }

    .hero { padding: 60px 0 50px; }
    .hero-copy h1 { font-size: 30px; }
    .hero-copy p { font-size: 15px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 28px 24px; }

    .steps-grid { grid-template-columns: 1fr; gap: 30px; }
    .steps-grid::before { display: none; }

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

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-copy h1 { font-size: 26px; }
    .section-title { font-size: 22px; }
    .terminal-body { font-size: 12px; }
    .dual-col-header h2 { font-size: 20px; }
}
