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

:root {
    --primary-color: #5856D6;
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --background-secondary: #F2F2F7;
    --border-color: #E5E5EA;
    --gradient-start: #6C63FF;
    --gradient-end: #3A36A8;
}

html {
    scroll-padding-top: 72px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

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

code {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace;
    font-size: 0.9em;
    background: var(--background-secondary);
    padding: 2px 6px;
    border-radius: 6px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 14px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text,
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero */
.hero {
    padding: 140px 0 90px;
    background: linear-gradient(135deg, #F5F7FA 0%, #E9ECEF 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: center;
}

.hero-content > * {
    min-width: 0;
    animation: fadeInUp 0.6s ease-out both;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.15s;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-description b {
    color: var(--text-primary);
}

.hero-buttons {
    margin-bottom: 14px;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 12px rgba(88, 86, 214, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 86, 214, 0.4);
}

.hero-note {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 菜单栏演示 */
.mac-window {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(40, 36, 120, 0.25), 0 2px 8px rgba(0, 0, 0, 0.08);
    background: linear-gradient(160deg, #8E7CFF 0%, #5856D6 45%, #2B2A7A 100%);
}

.menubar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.28);
    color: white;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}

.menubar-left,
.menubar-right,
.hideable {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menubar-left {
    gap: 14px;
    min-width: 0;
    overflow: hidden;
}

.menubar-right {
    flex: none;
    margin-left: 12px;
}

.apple {
    flex: none;
    width: 13px;
    height: 16px;
    background: white;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* SF Symbol 图标:PNG 作为遮罩,颜色跟随 currentColor */
.sym {
    display: inline-block;
    flex: none;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.sym-wide {
    width: 24px;
}

.hideable {
    max-width: 220px;
    overflow: hidden;
    transition: max-width 0.5s ease, opacity 0.35s ease, margin 0.5s ease;
}

.mac-window.collapsed .hideable {
    max-width: 0;
    opacity: 0;
    margin-right: -12px;
}

.toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(90deg);
}

.desktop {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: white;
}

.demo-hint {
    font-size: 15px;
    opacity: 0.85;
}

.demo-styles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
}

.demo-style {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-style:hover {
    background: rgba(255, 255, 255, 0.25);
}

.demo-style.active {
    background: white;
    color: var(--primary-color);
}

.demo-style .sym {
    width: 18px;
    height: 18px;
}

/* Features */
.features {
    padding: 64px 0 0;
}

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

.feature-card {
    padding: 28px;
    background: var(--background-secondary);
    border-radius: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* 安装 */
.install {
    padding: 64px 0 80px;
}

.install .container {
    max-width: 760px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 48px;
    color: #3A3A3C;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-note {
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 56px;
    }

    .hero-content {
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .menubar {
        padding: 0 10px;
        font-size: 12px;
    }

    .menubar-left {
        gap: 10px;
    }

    .menubar-right,
    .hideable {
        gap: 9px;
    }

    .sym {
        width: 14px;
        height: 14px;
    }

    .sym-wide {
        width: 20px;
    }

    .desktop {
        height: 240px;
    }

    .features {
        padding-top: 48px;
    }

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

    .feature-card {
        padding: 22px;
    }

    .install {
        padding: 48px 0 56px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 420px) {
    .menubar-left > :not(.apple),
    .hideable .sym:nth-child(n+5) {
        display: none;
    }

    .hero-title {
        font-size: 30px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
