/* OpenClaw 部署指南 - 紧凑版 */

:root {
    --bg: #080808;
    --surface: #111111;
    --surface-elevated: #1a1a1a;
    --text: #ffffff;
    --text-secondary: #888888;
    --accent: #00d4ff;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
    --border: rgba(255,255,255,0.1);
    --card-bg: #111111;
}

[data-theme="light"] {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --surface-elevated: #fafafa;
    --text: #111111;
    --text-secondary: #666666;
    --accent: #0066ff;
    --gradient: linear-gradient(135deg, #0066ff 0%, #6366f1 100%);
    --border: rgba(0,0,0,0.1);
    --card-bg: #ffffff;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    transition: background 0.3s, color 0.3s;
}

/* 主题切换 */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.1);
}

/* Hero - 紧凑 */
.hero {
    min-height: auto;
    padding: 40px 20px 30px;
    text-align: center;
}


.hero-logo {
    font-size: 60px;
    margin-bottom: 4px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

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

.hero p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* 容器 - 紧凑 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* 网格 */
.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .two-col-grid, .three-col-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2rem; }
}

/* 卡片 - 紧凑 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    display: block;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.card h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.card .price {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 6px;
}

/* 教程页 - 紧凑 */
.tutorials-hero {
    padding: 70px 20px 20px;
    text-align: center;
    background: var(--bg);
}

.tutorials-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.tutorials-hero p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.back-link {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.tutorials-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.section { margin-bottom: 24px; }

.section-title-old {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.tutorial-list { display: flex; flex-direction: column; gap: 8px; }

.tutorial-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.tutorial-item:hover {
    border-color: var(--accent);
    background: var(--surface-elevated);
}

.tutorial-item .number {
    width: 28px;
    height: 28px;
    background: var(--gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.6875rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.tutorial-item .content { flex: 1; min-width: 0; }

.tutorial-item h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tutorial-item p {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.tutorial-item .tag {
    background: var(--surface-elevated);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.625rem;
    font-weight: 600;
    margin-left: 10px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .tutorial-item h3 { white-space: normal; }
}

/* 底部 */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

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

.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* 背景 */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
