/*========================================================================
  Explore 子站样式 — 独立于主站，仅复用主站的配色变量与气质
  主题通过 <html data-theme="light|dark"> 切换，值来自 localStorage 'theme'
========================================================================*/
:root {
    /* 浅色主题变量（与主站 css/style.css 保持一致） */
    --primary-color: #E04343;
    --primary-hover: #FFE800;
    --text-dark: #353535;
    --text-gray: #8c9398;
    --bg-light: #f3f5f8;
    --bg-white: #fff;
    --border-color: #CCCCCC;
}

[data-theme="dark"] {
    --primary-color: #ff6b6b;
    --primary-hover: #ffd93d;
    --text-dark: #ffffff;
    --text-gray: #b0b8c1;
    --bg-light: #2c3e50;
    --bg-white: #1a1a1a;
    --border-color: #4a4a4a;
}

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

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* ---------- Header ---------- */
.site-header {
    padding: 24px 32px;
}

.back-link {
    font-size: 0.95rem;
    color: var(--text-gray);
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

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

/* ---------- Hero ---------- */
.container {
    flex: 1;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 32px;
}

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

.title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.accent {
    color: var(--primary-color);
}

.tagline {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--text-gray);
}

/* ---------- App List ---------- */
.app-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 96px;
}

.app-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.app-name {
    font-size: 1.15rem;
    font-weight: 600;
}

.app-desc {
    margin-top: 6px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.app-arrow {
    font-size: 1.25rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 24px 32px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-gray);
}

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

@media (max-width: 600px) {
    .site-header,
    .site-footer {
        padding: 20px;
    }
    .container {
        padding: 0 20px;
    }
    .hero {
        padding: 48px 0 40px;
    }
}
