﻿:root {
    --page-bg-start: #e6f3ff;
    --page-bg-end: #ffffff;
    --surface-bg: rgba(255, 255, 255, 0.92);
    --surface-border: rgba(255, 255, 255, 0.6);
    --text-main: #333333;
    --text-muted: #555555;
    --nav-bg: #1f1f1f;
    --nav-bg-strong: #121212;
    --nav-hover: #4f4f4f;
    --accent: #ffd700;
    --accent-strong: #c9a400;
    --primary: #007bff;
    --primary-strong: #0056b3;
    --error: #c62828;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.18);
    --scroll-offset: 32px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background: linear-gradient(to right, var(--page-bg-start), var(--page-bg-end));
    overflow-x: hidden;
}

/* 閿洏璺宠繃瀵艰埅 */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--text-main);
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

body.scroll-locked {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

a,
button,
.menu-toggle,
.nav-disclosure,
.carousel-button,
.image-card,
.download-btn,
.back-to-home,
.form-submit {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 215, 0, 0.18);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 123, 255, 0.45);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(41, 41, 41, 0.96));
    color: #ffffff;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

h1,
h2,
h3,
h4,
p {
    margin: 0 0 20px;
    line-height: 1.6;
}

h1 {
    font-size: 24px;
    color: #ffffff;
}

h2,
h3,
h4,
p,
label,
li {
    color: var(--text-muted);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 12px 0 0;
}

#nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

nav ul li {
    position: relative;
}

nav ul li > a,
.nav-item-row > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav ul li > a:hover,
nav ul li > a.active,
.nav-item-row > a:hover,
.nav-item-row > a.active {
    background-color: var(--nav-hover);
    color: var(--accent);
}

.nav-item-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.menu-toggle,
.nav-disclosure {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover,
.nav-disclosure:hover,
.menu-toggle[aria-expanded="true"],
.nav-disclosure[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
}

.nav-disclosure i {
    transition: transform 0.2s ease;
}

nav ul li .dropdown {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 170px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.97);
    box-shadow: var(--shadow-card);
    z-index: 1000;
}

nav ul li:hover > .dropdown,
nav ul li:focus-within > .dropdown {
    display: grid;
    gap: 6px;
}

/* 閫忔槑妗ユ帴鍖猴細li 涓嬫柟寤朵几 16px锛岄紶鏍囩┛杩囨椂 li:hover 涓嶄腑鏂?*/
nav ul li.has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 16px;
}

nav ul li .dropdown a {
    display: block;
    min-height: 44px;
    padding: 10px 14px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav ul li .dropdown a:hover,
nav ul li .dropdown a.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--accent);
}

.brand-navigation {
    margin: 20px 0 28px;
    padding: 0 24px;
    text-align: center;
}

.brand-navigation h3 {
    font-size: 1.45rem;
    font-weight: 500;
}

.catalog-status {
    margin: 0 24px 24px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-main);
    box-shadow: var(--shadow-card);
}

.catalog-status.is-loading {
    color: #334155;
}

.catalog-status.is-error {
    background: rgba(255, 245, 245, 0.96);
    color: #b42318;
}

.catalog-status.is-notice {
    background: rgba(255, 248, 230, 0.96);
    color: #8a5a00;
}

.brand-chip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-chip-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.brand-chip-list a:hover,
.brand-chip-list a:focus-visible {
    background: #555555;
    color: #ffffff;
    transform: translateY(-1px);
}

.account-section {
    margin: 24px;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.account-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 460px);
    gap: 28px;
    align-items: start;
}

.account-overview {
    display: grid;
    gap: 18px;
    max-width: 620px;
}

.account-kicker {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a6b00;
}

.account-overview h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.account-overview > p {
    margin: 0;
    max-width: 56ch;
    line-height: 1.8;
    color: var(--text-muted);
}

.account-benefits {
    display: grid;
    gap: 14px;
}

.account-benefit {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.account-benefit-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: radial-gradient(circle at top, rgba(255, 215, 0, 0.36), rgba(255, 255, 255, 0.96));
    color: #8a6b00;
    font-size: 18px;
}

.account-benefit h3,
.account-benefit p {
    margin: 0;
}

.account-benefit h3 {
    margin-bottom: 4px;
    font-size: 1rem;
    color: var(--text-main);
}

.account-benefit p {
    color: var(--text-muted);
    line-height: 1.65;
}

.account-identity {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.account-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.account-email {
    margin: 0;
    color: var(--text-muted);
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(17, 24, 39, 0.2);
    background: rgba(255, 255, 255, 1);
}

.account-forms {
    display: block;
}

.auth-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.14), transparent 36%),
        rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.auth-panel-head {
    display: grid;
    gap: 8px;
}

.auth-panel-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(17, 24, 39, 0.58);
}

.auth-panel-head h3 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.auth-panel-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.06);
}

.auth-tab {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-tab:hover,
.auth-tab:focus-visible {
    color: var(--text-main);
    transform: translateY(-1px);
}

.auth-tab:active {
    transform: translateY(0) scale(0.98);
    background: rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.auth-tab.is-active,
.auth-tab[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-main);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.auth-card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-card h3 {
    margin: 0;
    color: var(--text-main);
}

.auth-form-panel {
    display: grid;
    gap: 16px;
}

.auth-card-head {
    display: grid;
    gap: 6px;
}

.auth-card-head p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.auth-card .form-field {
    margin-bottom: 0;
    display: grid;
    gap: 8px;
}

.auth-card label {
    display: block;
    margin: 0;
    color: var(--text-main);
    font-weight: 600;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-field-note {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-card input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #c7d2db;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
    outline: none;
}

.auth-card input[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.input-with-action {
    position: relative;
}

.input-with-action input {
    padding-right: 86px;
}

.field-action {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.field-action:hover,
.field-action:focus-visible {
    background: rgba(15, 23, 42, 0.12);
    transform: translateY(calc(-50% - 1px));
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--primary);
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    justify-content: center;
}

.auth-switch-copy {
    margin: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-switch-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-switch-link:hover,
.auth-switch-link:focus-visible {
    color: var(--primary-strong);
}

.profile-panel {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.guest-profile {
    display: grid;
    gap: 20px;
}

.guest-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 248, 239, 0.94));
    border: 1px solid rgba(255, 215, 0, 0.16);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.guest-profile-copy {
    display: grid;
    gap: 10px;
}

.guest-profile-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a6b00;
}

.guest-profile-copy h3 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.guest-profile-copy p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.guest-profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.guest-profile-actions .secondary-button,
.guest-profile-actions .form-submit {
    min-width: 132px;
}

.guest-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.guest-profile-stat {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 247, 238, 0.92));
    border-color: rgba(255, 215, 0, 0.18);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.profile-stat {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.profile-stat span {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--text-main);
}

.profile-stat p {
    margin: 0;
}

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

.profile-column {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.68);
}

.profile-column-head h3 {
    margin-bottom: 4px;
    color: var(--text-main);
}

.profile-column-head p {
    margin-bottom: 14px;
    font-size: 14px;
}

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

.profile-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-item:hover,
.profile-item:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.profile-item img {
    width: 88px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
}

.profile-item > div {
    min-width: 0;
}

.profile-item-kicker {
    display: block;
    margin-bottom: 4px;
    color: #8a6b00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.profile-item span {
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state {
    margin: 0;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text-muted);
}

.guest-preview-item {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(249, 247, 240, 0.92));
    border: 1px solid rgba(255, 215, 0, 0.12);
}

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

.guest-brand-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.guest-brand-card.is-compact {
    grid-template-columns: 1fr;
    padding: 14px;
}

.guest-brand-card-visual {
    position: relative;
    min-height: 84px;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at top, rgba(255, 215, 0, 0.24), rgba(255, 255, 255, 0.96)),
        linear-gradient(135deg, #f4ead3, #ffffff);
}

.guest-brand-card.is-compact .guest-brand-card-visual {
    min-height: 148px;
}

.guest-brand-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.guest-brand-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #8a6b00;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.guest-brand-card-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.guest-brand-card-copy {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
}

.guest-brand-card-copy strong {
    color: var(--text-main);
}

.guest-brand-card-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-button {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-main);
    font-size: 28px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carousel-button:hover,
.carousel-button:active {
    background: rgba(255, 255, 255, 0.96);
    color: #111111;
}

.carousel-button.left {
    left: 16px;
}

.carousel-button.right {
    right: 16px;
}

section[id],
.brand-gallery {
    scroll-margin-top: var(--scroll-offset);
}

.brand-gallery {
    margin-bottom: 28px;
}

.catalog-fallback-state {
    margin: 0 24px 28px;
    padding: 24px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 236, 0.92));
    border: 1px solid rgba(198, 161, 77, 0.18);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.catalog-fallback-state h4 {
    margin: 0 0 8px;
    color: var(--text-main);
}

.catalog-fallback-state p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.brand-gallery h4 {
    padding: 0 24px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.brand-gallery-empty {
    margin: 0;
    padding: 0 24px;
    color: var(--text-subtle);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 0 24px;
}

.image-card {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.image-card img {
    width: 100%;
    height: clamp(220px, 28vw, 400px);
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.image-card:hover img,
.image-card:focus-visible img {
    transform: scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.wallpaper-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallpaper-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wallpaper-card-copy {
    min-width: 0;
}

.wallpaper-card-title {
    margin: 0 0 4px;
    color: var(--text-main);
    font-size: 1rem;
}

.wallpaper-card-meta {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.favorite-toggle:hover,
.favorite-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(17, 24, 39, 0.18);
    background: rgba(255, 255, 255, 1);
}

.favorite-toggle.is-active {
    background: rgba(255, 215, 0, 0.18);
    border-color: rgba(201, 164, 0, 0.3);
    color: #7a5d00;
}

.favorite-toggle:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 10px 18px rgba(0, 123, 255, 0.22);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover,
.download-btn:focus-visible {
    background-color: var(--primary-strong);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 86, 179, 0.25);
}

footer {
    background: #333333;
    color: #ffffff;
    padding: 20px 24px;
    text-align: center;
}

footer a {
    color: #8cc2ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
    color: #cfe4ff;
    text-decoration: underline;
}

footer p {
    margin: 6px 0;
    color: #b4bdc7;
}

#about,
#contact,
#feedback {
    margin: 20px;
    padding: 24px;
    border-radius: 16px;
    background-color: var(--surface-bg);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
}

#about h3,
#contact h3,
#feedback h3,
#about h2,
#contact h2,
#feedback h2 {
    color: var(--text-main);
}

#about blockquote,
#feedback blockquote {
    margin: 0;
    padding: 16px 18px 16px 28px;
    border-radius: 12px;
    background: rgba(249, 249, 249, 0.96);
    position: relative;
}

#about blockquote::before,
#feedback blockquote::before {
    content: '\201C';
    position: absolute;
    left: 8px;
    top: 4px;
    font-size: 36px;
    line-height: 1;
    color: var(--accent);
    font-weight: 700;
}

#contact label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
}

.form-field {
    margin-bottom: 18px;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #c7d2db;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.12);
    outline: none;
}

#contact input[aria-invalid="true"],
#contact textarea[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.14);
}

.field-error {
    min-height: 20px;
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--error);
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(195, 124, 0, 0.22);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.form-submit:disabled {
    cursor: wait;
    opacity: 1;
    transform: none;
}

.form-submit:hover,
.form-submit:focus-visible {
    background: var(--primary-strong);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(195, 124, 0, 0.28);
}

.form-submit:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 6px 18px rgba(195, 124, 0, 0.24);
}

.form-submit[aria-busy="true"] {
    background: linear-gradient(135deg, #c98300, #e6a400);
    box-shadow: 0 14px 32px rgba(201, 131, 0, 0.26);
    filter: saturate(1.04);
}

.form-submit[aria-busy="true"]::before {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: form-submit-spin 0.72s linear infinite;
}

@keyframes form-submit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.form-status {
    min-height: 24px;
    margin: 12px 0 0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.form-status.is-success {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.is-error {
    background: rgba(211, 47, 47, 0.08);
    color: #c62828;
    border: 1px solid rgba(211, 47, 47, 0.25);
}

.password-hint {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-muted);
}

.password-hint span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.password-hint span::before {
    content: "\00D7";
}

.password-hint span.met {
    color: #2e7d32;
    background: rgba(76, 175, 80, 0.12);
}

.password-hint span.met::before {
    content: "\2713";
}

.form-status.is-success {
    color: #2e7d32;
}

.form-status.is-error {
    color: var(--error);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1400;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 72px 24px 32px;
    overflow: auto;
    overscroll-behavior: contain;
    background-color: rgba(0, 0, 0, 0.82);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-image-container {
    position: relative;
    width: min(90vw, 1200px);
    height: min(80vh, 720px);
    overflow: hidden;
}

.modal-placeholder,
.modal-hires {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-placeholder {
    filter: blur(12px);
    transform: scale(1.05);
}

.modal-hires {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.3s ease;
}

.modal-hires.loaded {
    opacity: 1;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.modal-favorite-btn {
    min-width: 112px;
}

.close {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1410;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.close span {
    font-size: 32px;
    line-height: 1;
}

.close:hover,
.close:focus-visible {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.02);
}

.back-to-home {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(51, 51, 51, 0.88);
    color: var(--accent);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.back-to-home.show {
    opacity: 1;
    visibility: visible;
}

.back-to-home:hover,
.back-to-home:focus-visible {
    background: var(--accent);
    color: var(--text-main);
    transform: translateY(-2px);
}

.back-to-home i {
    font-size: 32px;
    line-height: 1;
}

body.menu-open .back-to-home,
body.modal-open .back-to-home {
    opacity: 0;
    visibility: hidden;
}

/* 椤甸潰閿佸畾锛堣彍鍗?妯℃€佹鎵撳紑鏃剁姝㈡粴鍔級 */
body.scroll-locked {
    overflow: hidden;
}

/* 鍝佺墝閫夋嫨鑺墖鍒楄〃 */
.brand-chip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.brand-chip-list a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 24px;
    background: #eaeaea;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s, color 0.3s;
}

.brand-chip-list a:hover {
    background: #555;
    color: #fff;
}

/* 瀵艰埅涓嬫媺灞曞紑鎸夐挳锛堢Щ鍔ㄧ锛?*/
.nav-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-disclosure {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

/* 绉诲姩绔樉绀哄睍寮€绠ご */
@media (max-width: 768px) {
    .nav-disclosure {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .has-children .dropdown {
        display: none;
    }

    .has-children.is-open .dropdown {
        display: flex;
        flex-direction: column;
    }
}

/* 鍥剧墖鍗＄墖鎸夐挳锛堟浛浠ｈ８ img 鏍囩锛?*/
.image-card {
    display: block;
    width: 100%;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.image-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 琛ㄥ崟瀛楁 */
.form-field {
    margin-bottom: 15px;
}

.field-error {
    color: #d32f2f;
    font-size: 13px;
    margin: 4px 0 0;
    min-height: 18px;
}

.form-submit {
    font-weight: 700;
}

.form-submit:hover {
    background-color: var(--primary-strong);
}

/* 鐢诲粖鐧诲綍闂ㄧ鍗＄墖 */
.gallery-login-gate {
    display: flex;
    justify-content: center;
    padding: 40px 20px 50px;
}

.gallery-login-gate-card {
    width: min(100%, 1080px);
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.gallery-login-gate-hero {
    display: grid;
    gap: 24px;
}

.gallery-login-gate-copy {
    display: grid;
    gap: 16px;
}

.gallery-login-gate-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a6b00;
}

.gallery-login-gate-card h3 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.gallery-login-gate-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.75;
}

.gallery-login-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-login-gate-button {
    width: auto;
    min-width: 140px;
}

.gallery-login-gate-button.is-secondary {
    background: rgba(255, 255, 255, 0.84);
}

.gallery-login-gate-button.is-secondary:hover,
.gallery-login-gate-button.is-secondary:focus-visible {
    background: rgba(255, 255, 255, 1);
}

.gallery-login-gate-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gallery-login-gate-stat {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.gallery-login-gate-stat strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.gallery-login-gate-stat span {
    color: var(--text-muted);
    font-size: 14px;
}

.gallery-login-gate-showcase {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.gallery-login-gate-showcase-head h4 {
    margin: 0 0 4px;
    color: var(--text-main);
}

.gallery-login-gate-showcase-head p {
    margin: 0;
    font-size: 14px;
}

.gallery-login-gate-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* 妯℃€佹搴曢儴鎿嶄綔鏍?*/
.modal-actions {
    text-align: center;
    margin-top: 12px;
}

@media (max-width: 768px) {
    :root {
        --scroll-offset: 108px;
    }

    header {
        position: sticky;
        top: 0;
        z-index: 1300;
        padding: 10px 12px 12px;
        backdrop-filter: blur(10px);
    }

    h1 {
        margin-bottom: 10px;
        font-size: 18px;
    }

    nav {
        justify-content: flex-end;
        margin-top: 0;
    }

    .menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    #nav-list {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border-radius: 18px;
        background: rgba(18, 18, 18, 0.98);
        box-shadow: var(--shadow-card);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #nav-list.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li > a,
    .nav-item-row > a {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .nav-item-row {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 8px;
    }

    .nav-item-row > a {
        flex: 1;
    }

    .nav-disclosure {
        display: inline-flex;
        flex-shrink: 0;
    }

    nav ul li:hover > .dropdown,
    nav ul li:focus-within > .dropdown {
        display: none;
    }

    nav ul li.has-children.is-open > .dropdown {
        display: grid;
        position: static;
        transform: none;
        min-width: 0;
        margin-top: 2px;
        padding: 6px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.06);
        box-shadow: none;
        gap: 6px;
    }

    nav ul li.has-children.is-open .nav-disclosure i {
        transform: rotate(180deg);
    }

    .brand-navigation {
        padding: 0 12px;
        text-align: left;
    }

    .brand-chip-list {
        justify-content: flex-start;
        gap: 8px;
    }

    .brand-chip-list a {
        min-height: 44px;
        padding: 9px 14px;
        font-size: 14px;
    }

    .carousel {
        height: min(420px, 38vh);
    }

    .carousel-button {
        min-width: 48px;
        min-height: 48px;
        font-size: 24px;
    }

    .carousel-button.left {
        left: 12px;
    }

    .carousel-button.right {
        right: 12px;
    }

    .brand-gallery h4 {
        padding: 0 12px;
        margin-bottom: 14px;
    }

    .image-grid {
        gap: 12px;
        padding: 0 12px;
    }

    .image-card img {
        height: 200px;
        border-radius: 14px;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    #about,
    #contact,
    #feedback {
        margin: 12px;
        padding: 16px;
        border-radius: 14px;
    }

    .form-submit {
        width: 100%;
    }

    .modal {
        justify-content: flex-start;
        gap: 0;
        padding: max(16px, env(safe-area-inset-top)) 0 calc(92px + env(safe-area-inset-bottom));
    }

    .modal-image-container {
        width: 100vw;
        height: calc(100vh - 132px);
    }

    .modal-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.86) 28%);
    }

    .download-btn {
        width: min(100%, 420px);
        margin: 0 auto;
    }

    .close {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
    }

    footer {
        padding: 16px 12px;
    }

    .back-to-home {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }

    .back-to-home i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 10px 12px;
    }

    h1 {
        font-size: 16px;
    }

    #nav-list {
        left: -2px;
        right: -2px;
        border-radius: 16px;
    }

    .carousel {
        height: 220px;
    }

    .carousel-button {
        min-width: 44px;
        min-height: 44px;
        font-size: 20px;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 8px;
    }

    .image-card img {
        height: 240px;
    }

    .brand-navigation {
        padding: 0 8px;
    }

    .brand-chip-list a {
        padding: 8px 12px;
        font-size: 13px;
    }

    #about,
    #contact,
    #feedback {
        margin: 8px;
        padding: 12px;
    }

    #about blockquote,
    #feedback blockquote {
        padding: 12px;
    }

    .modal {
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .close {
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
        width: 44px;
        height: 44px;
    }

    .back-to-home {
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
    }

    .back-to-home i {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .account-section {
        margin: 12px;
        padding: 16px;
        border-radius: 16px;
    }

    .account-shell,
    .profile-columns {
        grid-template-columns: 1fr;
    }

    .account-overview {
        max-width: none;
    }

    .account-benefit {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 14px 16px;
    }

    .account-benefit-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .auth-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .password-hint {
        grid-template-columns: 1fr;
    }

    .auth-checkbox {
        align-items: flex-start;
    }

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

    .guest-profile-hero {
        grid-template-columns: 1fr;
    }

    .guest-profile-actions {
        justify-content: flex-start;
    }

    .guest-profile-stats,
    .gallery-login-gate-stats,
    .gallery-login-gate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guest-brand-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .gallery-login-gate-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .wallpaper-card-body {
        flex-direction: column;
        align-items: stretch;
    }

    .favorite-toggle,
    .secondary-button {
        width: 100%;
    }

    .profile-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .profile-item img {
        width: 72px;
        height: 56px;
    }

    .modal-actions {
        flex-direction: column;
        align-items: center;
    }

    .modal-favorite-btn,
    .download-btn {
        width: min(100%, 420px);
    }
}

@media (max-width: 480px) {
    .guest-profile-stats,
    .profile-stats {
        grid-template-columns: 1fr;
    }

    .gallery-login-gate-stats,
    .gallery-login-gate-grid,
    .guest-brand-card {
        grid-template-columns: 1fr;
    }

    .gallery-login-gate-actions {
        display: grid;
    }

    .gallery-login-gate-button {
        width: 100%;
    }

    .profile-column,
    .auth-panel {
        padding: 14px;
    }

    .auth-tabs {
        gap: 6px;
        padding: 4px;
    }

    .auth-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .auth-card input,
    .auth-tab,
    .auth-submit {
        min-height: 48px;
    }

    .field-action {
        right: 8px;
        min-height: 32px;
        padding: 0 10px;
    }

    .profile-item {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .profile-item img {
        width: 64px;
        height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
