/* ================================================
   钢筋脚手架插件 - 官网样式
   ================================================ */

/* ── 变量 & 重置 ─────────────────────────────── */
:root {
    --primary: #3B82F6;
    --primary-dark: #1D4ED8;
    --accent: #06B6D4;
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --border: #334155;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ── 容器 ───────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── 导航栏 ─────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.nav-brand-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

.nav-brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-cta {
    padding: 8px 20px;
    background: var(--primary);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* 汉堡菜单（移动端） */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Hero 区域 ──────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 50px;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s 0.1s ease both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), #2563EB);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59,130,246,0.05);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── 特性区域 ───────────────────────────────── */
.section {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(59,130,246,0.1);
    border-radius: 50px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: rgba(59,130,246,0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-card:hover::before { opacity: 1; }

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

.fi-1 { background: rgba(59,130,246,0.15); }
.fi-2 { background: rgba(16,185,129,0.15); }
.fi-3 { background: rgba(245,158,11,0.15); }
.fi-4 { background: rgba(139,92,246,0.15); }
.fi-5 { background: rgba(236,72,153,0.15); }
.fi-6 { background: rgba(6,182,212,0.15); }

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(59,130,246,0.1);
    border-radius: 4px;
    font-size: 11px;
    color: var(--primary);
    margin-top: 14px;
}

/* ── 流程区域 ───────────────────────────────── */
.workflow {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: flex;
    gap: 32px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(60px + 16px);
    right: calc(60px + 16px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
    transition: all 0.3s;
}

.step:hover .step-num {
    background: var(--primary);
    transform: scale(1.1);
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── 操作指南区域 ────────────────────────────── */
.guide-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.guide-tab {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.2s;
    background: transparent;
}

.guide-tab.active,
.guide-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59,130,246,0.08);
}

.guide-content {
    display: none;
}

.guide-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.guide-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.guide-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
}

.guide-panel-header .icon {
    font-size: 22px;
}

.guide-panel-header .title {
    font-size: 15px;
    font-weight: 700;
}

.guide-panel-body {
    padding: 28px;
}

.guide-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.guide-row:last-child { margin-bottom: 0; }

.guide-label {
    min-width: 110px;
    padding: 6px 14px;
    background: rgba(59,130,246,0.1);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    flex-shrink: 0;
}

.guide-value {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.guide-value code {
    background: rgba(59,130,246,0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: var(--accent);
}

/* ── 功能详情 ───────────────────────────────── */
.capability {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.capability:last-child { margin-bottom: 0; }

.capability.reverse { direction: rtl; }
.capability.reverse > * { direction: ltr; }

.capability-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.capability-visual::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.1), transparent);
}

.capability-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59,130,246,0.1);
    border-radius: 4px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    align-self: flex-start;
}

.capability-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.capability-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
}

.capability-list {
    margin-top: 20px;
}

.capability-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.capability-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

/* ── 下载区域 ───────────────────────────────── */
.download {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(6,182,212,0.05));
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
}

.download h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-sub {
    color: var(--text-muted);
    margin-bottom: 36px;
}

.download-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 36px;
    min-width: 220px;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.download-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.download-card-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.download-card-ver {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── 底部 ───────────────────────────────────── */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-beian {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-beian a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-beian a:hover { color: var(--primary); }

/* ── 动画 ───────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.3); }
}

/* ── 滚动动画 ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── 响应式 ─────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .capability    { grid-template-columns: 1fr; gap: 32px; }
    .capability.reverse { direction: ltr; }
}

@media (max-width: 768px) {
    .nav-links    { display: none; }
    .nav-hamburger { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        gap: 16px;
    }

    .hero-stats { gap: 28px; }
    .hero-stat-num { font-size: 24px; }

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

    .steps {
        flex-direction: column;
        gap: 24px;
    }

    .steps::before { display: none; }

    .section { padding: 60px 0; }

    .download { padding: 40px 24px; }

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

    .hero h1 { font-size: 32px; }
}

/* ── 辅助类 ─────────────────────────────────── */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
