/* ====================
   变量与主题
   ==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #ec4899;
    --accent-2: #f59e0b;
    --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(236,72,153,0.15) 100%);

    /* 暗色主题（默认） */
    --bg: #0f0f17;
    --bg-soft: #181826;
    --bg-card: #1e1e2e;
    --bg-hover: #262638;
    --border: #2a2a3e;
    --text: #e4e4ef;
    --text-soft: #a0a0b8;
    --text-muted: #6b6b85;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

[data-theme="light"] {
    --bg: #f7f7fb;
    --bg-soft: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f5;
    --border: #e4e4ed;
    --text: #1a1a2e;
    --text-soft: #5a5a72;
    --text-muted: #9a9ab0;
    --shadow: 0 8px 32px rgba(99,102,241,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
}

/* ====================
   基础重置
   ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

kbd {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
    color: var(--text-soft);
}

/* ====================
   顶部导航
   ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15,15,23,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

[data-theme="light"] .header {
    background: rgba(255,255,255,0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}

.logo-icon {
    font-size: 24px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-soft);
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-link.active {
    color: var(--primary-light);
    background: var(--gradient-soft);
}

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

[data-theme="dark"] .theme-icon-light {
    display: none;
}
[data-theme="light"] .theme-icon-dark {
    display: none;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ====================
   Hero 区域
   ==================== */
.hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 12s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    top: 100px;
    right: -80px;
    animation-delay: -4s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #8b5cf6;
    bottom: -80px;
    left: 40%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-soft);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ====================
   解析输入框
   ==================== */
.parser-box {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease;
}

.parser-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1), var(--shadow);
}

.parser-input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.parser-input-icon {
    font-size: 20px;
    padding-top: 10px;
    flex-shrink: 0;
}

.parser-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    resize: none;
    line-height: 1.6;
    padding: 8px 0;
}

.parser-input::placeholder {
    color: var(--text-muted);
}

.clear-btn {
    position: absolute;
    right: 0;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-soft);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: var(--accent);
    color: #fff;
}

.parse-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.parse-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.parse-btn:hover::before {
    opacity: 1;
}

.parse-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.parse-btn:active {
    transform: translateY(0);
}

.parse-btn-text,
.parse-btn-icon {
    position: relative;
    z-index: 1;
}

.parse-btn-icon {
    transition: transform 0.2s ease;
}

.parse-btn:hover .parse-btn-icon {
    transform: translateX(4px);
}

.parse-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.parse-btn.loading .parse-btn-text {
    display: none;
}

.parse-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================
   解析结果
   ==================== */
.parse-result {
    max-width: 720px;
    margin: 24px auto 0;
    text-align: left;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    animation: slideUp 0.4s ease;
}

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

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.result-platform {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--gradient-soft);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.result-author {
    font-size: 14px;
    color: var(--text-soft);
}

.result-body {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.result-preview {
    flex-shrink: 0;
    width: 200px;
}

.result-preview video,
.result-preview img {
    width: 100%;
    border-radius: var(--radius-sm);
    display: block;
    background: var(--bg);
}

.result-info {
    flex: 1;
    min-width: 240px;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

.result-desc {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gradient);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.download-btn.secondary {
    background: var(--bg-hover);
    color: var(--text);
}

.download-btn.secondary:hover {
    background: var(--border);
}

/* 解析中状态 */
.parsing-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-soft);
}

.parsing-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.parsing-steps {
    width: 100%;
}

.parsing-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.parsing-step.active {
    color: var(--text);
    background: var(--bg-hover);
}

.parsing-step.done {
    color: #10b981;
}

.parsing-step .step-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid var(--border);
}

.parsing-step.active .step-status {
    border-color: var(--primary);
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

.parsing-step.done .step-status {
    background: #10b981;
    border-color: #10b981;
}

/* 错误提示 */
.result-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    color: #f87171;
    font-size: 14px;
}

/* ====================
   平台滚动条
   ==================== */
.platform-marquee {
    margin-top: 48px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 32px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-size: 15px;
    color: var(--text-muted);
    white-space: nowrap;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.hero-hint {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ====================
   通用 Section
   ==================== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-soft);
}

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

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 16px;
    color: var(--text-soft);
}

/* ====================
   平台网格
   ==================== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 12px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: default;
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.platform-emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

.platform-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* ====================
   特性卡片
   ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

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

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-icon-1 { background: rgba(99,102,241,0.15); }
.feature-icon-2 { background: rgba(236,72,153,0.15); }
.feature-icon-3 { background: rgba(16,185,129,0.15); }
.feature-icon-4 { background: rgba(245,158,11,0.15); }
.feature-icon-5 { background: rgba(139,92,246,0.15); }
.feature-icon-6 { background: rgba(236,72,153,0.15); }

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

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

/* ====================
   使用步骤
   ==================== */
.steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
    margin-top: 8px;
}

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

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

.step-connector {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-connector::before {
    content: "→";
    font-size: 24px;
    color: var(--text-muted);
}

/* ====================
   历史记录
   ==================== */
.history-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-count {
    font-size: 14px;
    color: var(--text-soft);
}

.btn-text {
    font-size: 14px;
    color: var(--text-soft);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-text:hover {
    color: #f87171;
    background: rgba(239,68,68,0.1);
}

.history-list {
    display: grid;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: var(--primary);
}

.history-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-platform {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.history-title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.history-time {
    font-size: 12px;
    color: var(--text-muted);
}

.history-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.history-actions .download-btn {
    padding: 6px 14px;
    font-size: 13px;
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* ====================
   FAQ
   ==================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

.faq-toggle {
    font-size: 24px;
    color: var(--primary-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
}

/* ====================
   页脚
   ==================== */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 320px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.footer-notice {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ====================
   返回顶部
   ==================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ====================
   响应式
   ==================== */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .step-connector {
        display: none;
    }

    .steps {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .section {
        padding: 60px 0;
    }

    .result-body {
        flex-direction: column;
    }

    .result-preview {
        width: 100%;
    }

    .history-item {
        flex-wrap: wrap;
    }

    .history-actions {
        width: 100%;
    }
}

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

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

    .platform-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .platform-card {
        padding: 14px 8px;
    }

    .platform-emoji {
        font-size: 24px;
    }
}
