:root {
    --paper: #f3efe8;
    --paper-deep: #e9e2d7;
    --ink: #1b1d1b;
    --muted: #78756f;
    --card: rgba(255, 255, 255, 0.76);
    --line: rgba(27, 29, 27, 0.12);
    --accent: #bf5638;
    --accent-dark: #8e3824;
    --gold: #d8b06b;
    --shadow: 0 24px 70px rgba(54, 43, 30, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 28%),
        var(--paper);
    font-family: "PingFang TC", "Hiragino Sans TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-orb {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

.page-orb--one {
    top: -180px;
    right: -130px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at 35% 35%, rgba(216, 176, 107, 0.34), rgba(216, 176, 107, 0));
}

.page-orb--two {
    bottom: -250px;
    left: -170px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle at 55% 45%, rgba(191, 86, 56, 0.12), rgba(191, 86, 56, 0));
}

.vote-page {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
    padding: 76px 0 36px;
}

.hero {
    max-width: 980px;
    margin-bottom: 58px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(27, 29, 27, 0.14);
    border-radius: 999px;
    color: #62605b;
    background: rgba(255, 255, 255, 0.44);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(191, 86, 56, 0.12);
}

.hero h1 {
    margin: 24px 0 20px;
    color: #151715;
    font-family: "Songti TC", "STSong", "Noto Serif TC", serif;
    font-size: clamp(58px, 9vw, 130px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.hero h1 span {
    color: var(--accent);
    font-style: italic;
    letter-spacing: -0.09em;
}

.hero__copy {
    margin: 0;
    color: #5d5a55;
    font-size: clamp(16px, 1.55vw, 21px);
    line-height: 1.75;
    letter-spacing: 0.03em;
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    color: #8a857d;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__line {
    width: 56px;
    height: 1px;
    background: rgba(27, 29, 27, 0.24);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.city-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 480ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 480ms ease, border-color 300ms ease;
}

.city-card::after {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    content: "";
    pointer-events: none;
    transition: border-color 300ms ease;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 90px rgba(54, 43, 30, 0.18);
}

.city-card.is-voted {
    transform: translateY(-10px);
}

.city-card.is-voted::after {
    border-color: rgba(191, 86, 56, 0.62);
}

.city-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    margin: 10px;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) - 9px);
    background: #d8d3ca;
}

.city-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 450ms ease;
}

.city-card[data-city="beijing"] img {
    object-position: center 58%;
}

.city-card[data-city="xian"] img {
    object-position: center 56%;
}

.city-card:hover .city-card__media img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.02);
}

.city-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(14, 15, 14, 0.12) 0%, rgba(14, 15, 14, 0) 38%),
        linear-gradient(0deg, rgba(14, 15, 14, 0.66) 0%, rgba(14, 15, 14, 0) 52%);
}

.city-card__number {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 16, 15, 0.18);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.vote-button {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 108px;
    padding: 11px 15px 11px 11px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 999px;
    color: #fff;
    background: rgba(19, 20, 19, 0.34);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(14px);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: color 250ms ease, background 250ms ease, border-color 250ms ease, transform 250ms ease;
}

.vote-button:hover {
    transform: translateY(-2px);
    background: rgba(191, 86, 56, 0.9);
    border-color: rgba(255, 255, 255, 0.7);
}

.vote-button:focus-visible {
    outline: 3px solid rgba(216, 176, 107, 0.8);
    outline-offset: 3px;
}

.vote-button__icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #191a19;
    background: #fff;
    font-size: 17px;
    line-height: 1;
    transition: background 250ms ease, color 250ms ease;
}

.is-voted .vote-button {
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.7);
}

.is-voted .vote-button__icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.city-card__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    min-height: 104px;
    padding: 18px 25px 25px;
}

.city-card__body h2 {
    margin: 0;
    font-family: "Songti TC", "STSong", "Noto Serif TC", serif;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 0.02em;
}

.city-card__body p {
    margin: 9px 0 0;
    color: #9a958c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.city-card__votes {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: var(--accent);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.city-card__votes strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.city-card__votes span {
    color: #938e86;
    font-size: 10px;
    font-weight: 700;
}

.city-card__note {
    max-width: 140px;
    color: #78756f;
    font-size: 11px;
    line-height: 1.6;
    text-align: right;
    letter-spacing: 0.05em;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding: 0 4px;
    color: #938e86;
    font-size: 11px;
    letter-spacing: 0.05em;
}

@media (max-width: 1080px) {
    .vote-page {
        width: min(920px, calc(100% - 40px));
        padding-top: 54px;
    }

    .city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        margin-bottom: 42px;
    }
}

@media (max-width: 640px) {
    .vote-page {
        width: calc(100% - 16px);
        padding-top: 20px;
    }

    .hero {
        margin-bottom: 26px;
        padding: 0 4px;
    }

    .eyebrow {
        padding: 6px 10px;
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .hero h1 {
        margin: 16px 0 12px;
        font-size: clamp(42px, 16vw, 64px);
        line-height: 0.96;
    }

    .hero__copy {
        font-size: 13px;
        line-height: 1.6;
    }

    .hero__meta {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 18px;
        font-size: 9px;
    }

    .hero__line {
        width: 18px;
    }

    .city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .city-card {
        border-radius: 18px;
    }

    .city-card__media {
        margin: 4px;
        border-radius: 15px;
    }

    .city-card__number {
        top: 7px;
        left: 7px;
        width: 28px;
        height: 28px;
        font-size: 8px;
    }

    .vote-button {
        right: 7px;
        bottom: 7px;
        min-width: 0;
        gap: 5px;
        padding: 6px 8px 6px 6px;
        font-size: 9px;
        letter-spacing: 0.02em;
    }

    .vote-button__icon {
        width: 19px;
        height: 19px;
        font-size: 12px;
    }

    .city-card__body {
        min-height: 58px;
        gap: 6px;
        padding: 8px 10px 11px;
    }

    .city-card__body h2 {
        font-size: 21px;
    }

    .city-card__body p {
        margin-top: 4px;
        font-size: 7px;
        letter-spacing: 0.12em;
    }

    .city-card__votes {
        gap: 2px;
    }

    .city-card__votes strong {
        font-size: 16px;
    }

    .city-card__votes span {
        font-size: 8px;
    }

    .city-card__note {
        display: none;
    }

    .page-footer {
        display: block;
        margin-top: 16px;
        font-size: 9px;
        line-height: 1.6;
    }

    .page-footer span {
        display: block;
    }
}

@media (max-width: 360px) {
    .city-grid {
        gap: 7px;
    }

    .city-card__body {
        padding-right: 7px;
        padding-left: 7px;
    }

    .vote-button {
        padding: 5px;
    }

    .vote-button__label {
        display: none;
    }
}

.verify-page {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    padding: 32px 20px;
    place-items: center;
}

.verify-shell {
    width: min(560px, 100%);
    padding: 46px 48px 42px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.verify-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #817c74;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: color 220ms ease, transform 220ms ease;
}

.verify-back:hover {
    color: var(--accent);
    transform: translateX(-2px);
}

.verify-step {
    margin-top: 38px;
    color: #9a958c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.verify-city {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 9px 13px;
    border: 1px solid rgba(191, 86, 56, 0.18);
    border-radius: 999px;
    color: #6f6a63;
    background: rgba(191, 86, 56, 0.06);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.verify-city strong {
    color: var(--accent);
    font-size: 13px;
}

.verify-city__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(191, 86, 56, 0.12);
}

.verify-shell h1 {
    margin: 20px 0 16px;
    font-family: "Songti TC", "STSong", "Noto Serif TC", serif;
    font-size: clamp(42px, 7vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.verify-shell h1 span {
    color: var(--accent);
    font-style: italic;
}

.verify-copy {
    margin: 0;
    color: #77726b;
    font-size: 14px;
    line-height: 1.75;
}

.phone-form {
    margin-top: 32px;
}

.phone-label {
    display: block;
    margin-bottom: 10px;
    color: #413f3a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.phone-field {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(27, 29, 27, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.phone-field:focus-within {
    border-color: rgba(191, 86, 56, 0.72);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(191, 86, 56, 0.1);
}

.phone-prefix {
    padding: 0 15px;
    border-right: 1px solid rgba(27, 29, 27, 0.1);
    color: #77726b;
    font-size: 14px;
    font-weight: 700;
}

.phone-field input {
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    color: #1b1d1b;
    background: transparent;
    font: inherit;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.code-label {
    margin-top: 20px;
}

.code-field input {
    padding-right: 10px;
    letter-spacing: 0.22em;
}

.code-button {
    flex: 0 0 auto;
    min-width: 118px;
    min-height: 44px;
    margin-right: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: var(--accent);
    background: rgba(191, 86, 56, 0.08);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 220ms ease, background 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.code-button:hover:not(:disabled) {
    color: #fff;
    background: var(--accent);
    transform: translateY(-1px);
}

.code-button:focus-visible {
    outline: 3px solid rgba(216, 176, 107, 0.85);
    outline-offset: 2px;
}

.code-button:disabled {
    color: #aaa49b;
    background: rgba(27, 29, 27, 0.06);
    cursor: not-allowed;
    opacity: 0.72;
}

.phone-field input::placeholder {
    color: #b1aca4;
    letter-spacing: 0.02em;
}

.form-message {
    min-height: 22px;
    margin: 8px 2px 0;
    color: #69826a;
    font-size: 11px;
    line-height: 1.5;
}

.form-message.is-error {
    color: #b63d33;
}

.verify-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 34px rgba(191, 86, 56, 0.22);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.verify-submit:hover {
    background: var(--accent-dark);
    box-shadow: 0 18px 40px rgba(142, 56, 36, 0.26);
    transform: translateY(-2px);
}

.verify-submit:focus-visible {
    outline: 3px solid rgba(216, 176, 107, 0.85);
    outline-offset: 3px;
}

.privacy-note {
    margin: 18px 0 0;
    color: #9b968e;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 640px) {
    .verify-page {
        padding: 14px;
    }

    .verify-shell {
        padding: 28px 20px 26px;
        border-radius: 24px;
    }

    .verify-step {
        margin-top: 28px;
    }

    .verify-shell h1 {
        margin-top: 16px;
        font-size: clamp(36px, 11vw, 48px);
    }

    .verify-copy {
        font-size: 13px;
    }

    .phone-form {
        margin-top: 24px;
    }

    .phone-field input {
        height: 52px;
        font-size: 15px;
    }

    .code-label {
        margin-top: 16px;
    }

    .code-field input {
        padding-left: 12px;
        padding-right: 6px;
        letter-spacing: 0.16em;
    }

    .code-button {
        min-width: 104px;
        min-height: 40px;
        margin-right: 6px;
        padding: 0 11px;
        font-size: 11px;
    }

    .verify-submit {
        min-height: 52px;
    }
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    padding: 20px;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.notice-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.notice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 22, 0.48);
    backdrop-filter: blur(8px);
}

.notice-modal__card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 34px 30px 30px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: #fffdf9;
    box-shadow: 0 32px 90px rgba(31, 25, 20, 0.28);
    text-align: center;
    transform: translateY(14px) scale(0.97);
    transition: transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.notice-modal.is-visible .notice-modal__card {
    transform: translateY(0) scale(1);
}

.notice-modal__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 34px rgba(191, 86, 56, 0.25);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
}

.notice-modal__eyebrow {
    color: #a19a91;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.notice-modal__title {
    margin: 12px 0 24px;
    color: #1b1d1b;
    font-family: "Songti TC", "STSong", "Noto Serif TC", serif;
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.25;
}

.notice-modal__button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 32px rgba(191, 86, 56, 0.2);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: background 200ms ease, transform 200ms ease;
}

.notice-modal__button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.notice-modal__button:focus-visible {
    outline: 3px solid rgba(216, 176, 107, 0.85);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .notice-modal__card {
        padding: 28px 20px 22px;
        border-radius: 22px;
    }

    .notice-modal__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
        border-radius: 17px;
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
