:root {
    --bg: #f8f7f4;
    --surface: #ffffff;
    --surface-alt: #f5f4f0;
    --border: #e5e4df;
    --border-light: #edece8;
    --text: #3d3c38;
    --text-secondary: #6b6a65;
    --text-muted: #9a9993;
    --accent: #5b8a72;
    --accent-light: #7aaa92;
    --accent-dark: #466e57;
    --prompt-user: #5b8a72;
    --prompt-host: #8b9e8a;
    --prompt-path: #6b7f99;
    --cmd: #4a4945;
    --highlight: #fff8e6;
    --success: #6a9f7a;
    --warning: #c9a96e;
    --error: #c76e6e;
    --card-hover: #fafaf7;
    --featured: #d4763a;
    --featured-light: #e89862;
    --featured-dark: #b8632e;
    --featured-bg: #fdf6ef;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --radius: 8px;
    --radius-sm: 4px;
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', 'Consolas', 'Menlo', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(91, 138, 114, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 127, 153, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, #f2f1ed 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 24px;
}

.hero {
    margin-bottom: 40px;
}

.terminal-frame {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.terminal-bar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
}

.traffic-lights {
    display: flex;
    gap: 6px;
}

.tl {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.tl:hover {
    transform: scale(1.1);
}

.tl-close { background: #ff5f57; }
.tl-min { background: #febc2e; }
.tl-max { background: #28c840; }

.terminal-name {
    flex: 1;
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.terminal-time {
    color: var(--text-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.terminal-screen {
    padding: 28px 32px;
}

.screen-content {
    font-family: var(--font-mono);
    font-size: 14px;
}

.prompt-line {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
    line-height: 1.8;
}

.prompt-line .user { color: var(--prompt-user); font-weight: 600; }
.prompt-line .sep { color: var(--text-muted); }
.prompt-line .host { color: var(--prompt-host); }
.prompt-line .path { color: var(--prompt-path); }
.prompt-line .sym { color: var(--text-muted); margin-left: 4px; }
.prompt-line .cmd { color: var(--cmd); font-weight: 500; }

.output-block {
    margin: 8px 0 20px 0;
    padding-left: 16px;
    border-left: 2px solid var(--border-light);
}

.avatar-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 8px 0;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(91, 138, 114, 0.3);
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    background: #52c41a;
    border-radius: 50%;
    border: 3px solid var(--surface);
}

.identity {
    flex: 1;
}

.username {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.username::after {
    content: '_';
    color: var(--accent);
    animation: cursor-blink 1s step-end infinite;
    font-weight: 400;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.user-title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.meta-item {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-label {
    color: var(--text-muted);
    font-size: 11px;
}

.status-online {
    color: #52c41a;
    font-size: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    transition: all 0.2s ease;
}

.social-link:hover {
    color: var(--accent-dark);
    background: var(--highlight);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

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

.featured-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    font-family: var(--font-mono);
    font-size: 12px;
}

.featured-label {
    color: var(--featured);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
}

.featured-prompt {
    color: var(--text-muted);
    font-size: 11px;
}

.featured-card {
    background: var(--featured-bg);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--featured) 0%, var(--featured-light) 50%, var(--featured) 100%);
}

.featured-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.featured-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--featured) 0%, var(--featured-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(212, 118, 58, 0.3);
}

.featured-info {
    flex: 1;
}

.featured-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--featured);
    background: rgba(212, 118, 58, 0.1);
    border: 1px solid rgba(212, 118, 58, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.featured-name {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.featured-tagline {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.featured-desc {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--featured-light);
}

.featured-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
    list-style: none;
}

.featured-features li {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-features li::before {
    content: '▸';
    color: var(--featured);
    font-size: 10px;
}

.featured-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px dashed rgba(212, 118, 58, 0.3);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--featured) 0%, var(--featured-light) 100%);
    color: white;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(212, 118, 58, 0.35);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 118, 58, 0.45);
    background: linear-gradient(135deg, var(--featured-light) 0%, var(--featured) 100%);
}

.cta-button:hover::after {
    left: 100%;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 118, 58, 0.3);
}

.cta-arrow {
    font-size: 16px;
    transition: transform 0.25s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-note {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.cta-note .star {
    color: var(--featured);
}

.featured-section {
    margin-bottom: 16px;
}

.featured-section-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid rgba(212, 118, 58, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.platform-item:hover {
    border-color: var(--featured);
    background: var(--featured-bg);
    transform: translateY(-1px);
}

.platform-icon {
    font-size: 14px;
    line-height: 1;
}

.platform-name {
    font-weight: 500;
}

.highlight-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background: white;
    transition: all 0.2s ease;
}

.highlight-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.featured-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.price-card {
    position: relative;
    background: white;
    border: 1px solid rgba(212, 118, 58, 0.2);
    border-radius: var(--radius);
    padding: 16px 14px;
    text-align: center;
    transition: all 0.2s ease;
}

.price-card:hover {
    border-color: var(--featured);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 118, 58, 0.15);
}

.price-card.price-highlight {
    border-color: var(--featured);
    background: linear-gradient(180deg, #fff 0%, #fdf6ef 100%);
    box-shadow: 0 4px 14px rgba(212, 118, 58, 0.2);
}

.price-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.price-card.price-highlight .price-tag {
    color: var(--featured);
    font-weight: 600;
}

.price-amount {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--featured);
    line-height: 1;
    margin-bottom: 6px;
}

.price-period {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}

.price-traffic {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.price-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    background: var(--featured);
    color: white;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.products-section {
    margin-top: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--surface-alt);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    font-family: var(--font-mono);
    font-size: 12px;
}

.section-prompt {
    color: var(--text-muted);
    font-size: 11px;
}

.section-count {
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.product-card {
    background: var(--surface);
    padding: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.product-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card:hover::before {
    transform: scaleY(1);
}

.product-card:hover .card-arrow {
    transform: translate(4px, -4px);
    color: var(--accent);
}

.product-card:hover .card-tag {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--surface-alt) 0%, var(--border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    border: 1px solid var(--border-light);
}

.card-arrow {
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.25s ease;
}

.card-name {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.2px;
}

.card-desc {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    background: var(--surface-alt);
    transition: all 0.2s ease;
}

.grid-footer {
    margin-top: 16px;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.footer-text strong {
    color: var(--accent);
}

.page-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.footer-sep {
    color: var(--border);
}

.footer-email {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

::selection {
    background: var(--accent-light);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 24px 16px;
    }

    .terminal-screen {
        padding: 20px 18px;
    }

    .avatar-section {
        flex-direction: column;
        gap: 16px;
    }

    .avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    .username {
        font-size: 18px;
    }

    .user-meta {
        flex-direction: column;
        gap: 6px;
    }

    .featured-card {
        padding: 20px;
    }

    .featured-top {
        flex-direction: column;
        gap: 16px;
    }

    .featured-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .featured-name {
        font-size: 17px;
    }

    .platform-list {
        gap: 6px;
    }

    .platform-item {
        padding: 5px 10px;
        font-size: 11px;
    }

    .highlight-tag {
        padding: 3px 10px;
        font-size: 10px;
    }

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

    .featured-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .featured-pricing {
        grid-template-columns: 1fr;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

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

    .social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .terminal-bar {
        font-size: 11px;
        padding: 8px 10px;
    }

    .terminal-time {
        display: none;
    }

    .terminal-name {
        text-align: center;
    }

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