/* Pacerlandt 设计系统 —— 两个生产页(index / impressum)共用
   基准:首页 —— 白底 / Avenir-Montserrat / 灰调文字 / 彩虹点缀。
   impressum 向首页看齐:白底 + 同字体 + 灰调,保留卡片结构。 */

/* ===== 设计 tokens ===== */
:root {
    /* 颜色 */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7f7f8;
    --title: #242424;
    --text: #1f2328;
    --muted: #767676;
    --line: rgba(23, 23, 23, 0.1);

    /* 排版 */
    --font-sans: "Avenir Next", "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* 形状 */
    --radius-lg: 28px;
    --radius-md: 22px;

    /* 品牌彩虹渐变(点缀) */
    --rainbow: linear-gradient(
        90deg,
        #ff5f6d 0%,
        #ffc371 18%,
        #fff56b 36%,
        #6bff95 54%,
        #6bdcff 72%,
        #8b6bff 88%,
        #ff5fcb 100%
    );
}

/* ===== 复位与基础 ===== */
* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
}

a {
    color: inherit;
}

/* ===== 共享组件:彩虹分隔线 ===== */
.divider {
    width: 42px;
    height: 2px;
    background: var(--rainbow);
    background-size: 220% 100%;
    animation: rainbow-shift 5s linear infinite;
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 220% 50%;
    }
}

/* ===== 页面:首页(index) ===== */
.page-home {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 32px 32px 64px;
    text-align: center;
}

.hero img {
    width: 100px;
    height: auto;
    display: block;
}

.tagline {
    margin: 0;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 400;
    letter-spacing: 0.34em;
    color: var(--title);
}

.legal-link {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-note {
    position: absolute;
    left: 50%;
    bottom: 46px;
    transform: translateX(-50%);
    width: min(92vw, 960px);
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===== 页面:Impressum(向首页看齐:白底 + 同字体 + 灰调) ===== */
.page {
    width: min(960px, calc(100% - 28px));
    margin: 0 auto;
    padding: 20px 0 36px;
}

.stack {
    display: grid;
    gap: 22px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 44px rgba(23, 23, 23, 0.06);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 18px 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand img {
    width: 38px;
    height: auto;
    display: block;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 0.98rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--title);
}

.brand-copy span {
    color: var(--muted);
    font-size: 0.82rem;
}

.content {
    padding: clamp(26px, 4vw, 40px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: var(--title);
}

.intro {
    margin: 0 0 28px;
    color: var(--muted);
    line-height: 1.8;
}

.legal-grid {
    display: grid;
    gap: 16px;
}

.legal-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.legal-card h2 {
    margin: 0 0 14px;
    font-size: 1.1rem;
    color: var(--title);
}

.legal-card p {
    margin: 0;
    line-height: 1.8;
}

.legal-card p + p {
    margin-top: 10px;
}

.name-mark {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
}

.name-mark img {
    width: auto;
    height: 18px;
    display: block;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
}

/* ===== 页面:问卷(umfrage) ===== */
.page-umfrage {
    width: min(100% - 32px, 680px);
    margin: 0 auto;
    padding: 28px 0 64px;
}

.umfrage-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
}

.umfrage-header img.logo {
    height: 34px;
    width: auto;
}

.umfrage-header .brand-copy strong {
    display: block;
    color: var(--title);
    letter-spacing: 0.04em;
}

.umfrage-header .brand-copy span {
    color: var(--muted);
    font-size: 0.85rem;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
}

.product-card img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--surface);
}

.product-card .product-name {
    color: var(--title);
    font-weight: 600;
}

.product-card .product-serial {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.umfrage-progress {
    height: 3px;
    background: var(--line);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 26px;
}

.umfrage-progress .bar {
    height: 100%;
    width: 0;
    background: var(--rainbow);
    background-size: 220% 100%;
    animation: rainbow-shift 5s linear infinite;
    transition: width 0.25s ease;
}

.umfrage-step {
    display: none;
}

.umfrage-step.active {
    display: block;
}

.umfrage-step h2 {
    color: var(--title);
    font-size: 1.15rem;
    margin: 0 0 4px;
}

.umfrage-step .step-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 20px;
}

.q-block {
    margin-bottom: 22px;
}

.q-block > label,
.q-block > .q-label {
    display: block;
    color: var(--title);
    font-weight: 500;
    margin-bottom: 10px;
}

.q-block input[type="text"],
.q-block input[type="date"],
.q-block input[type="number"],
.q-block input[type="email"],
.q-block textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
}

.q-block textarea {
    min-height: 88px;
    resize: vertical;
}

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

.choice-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
}

.choice-list label:has(input:checked) {
    border-color: var(--title);
    background: var(--surface-soft);
}

.scale-row {
    display: flex;
    gap: 8px;
}

.scale-row label {
    flex: 1;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 0;
    cursor: pointer;
}

.scale-row label:has(input:checked) {
    border-color: var(--title);
    background: var(--surface-soft);
    font-weight: 600;
}

.scale-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.scale-legend {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 6px;
}

.umfrage-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}

.umfrage-nav button {
    font: inherit;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--title);
    cursor: pointer;
}

.umfrage-nav button.primary {
    background: var(--title);
    color: var(--bg);
    border-color: var(--title);
}

.umfrage-nav button:disabled {
    opacity: 0.5;
    cursor: default;
}

.umfrage-error {
    color: #b3261e;
    font-size: 0.9rem;
    margin-top: 14px;
    min-height: 1.2em;
}

.umfrage-notice {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px;
    color: var(--text);
}

.umfrage-privacy {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin-top: 18px;
}

.privacy-ack {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
}

.privacy-ack input {
    margin-top: 3px;
    flex-shrink: 0;
}

.umfrage-footer {
    margin-top: 42px;
    color: var(--muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.umfrage-footer a {
    text-decoration: none;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

@media (max-width: 520px) {
    .scale-row {
        flex-wrap: wrap;
    }

    .scale-row label {
        min-width: 52px;
    }

    .product-card {
        flex-direction: row;
        padding: 12px 14px;
    }

    .product-card img {
        width: 64px;
        height: 64px;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 720px) {
    .page {
        width: min(100% - 18px, 960px);
        padding-top: 12px;
    }

    .topbar,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero {
        gap: 22px;
        padding-bottom: 92px;
    }

    .tagline {
        letter-spacing: 0.22em;
    }

    .footer-note {
        bottom: 50px;
        font-size: 0.5rem;
        letter-spacing: 0.14em;
        white-space: normal;
        line-height: 1.6;
    }
}
