/* =========================================================================
   锐捷网络 - 客户参观留念合照平台
   Design System & Styles
   ========================================================================= */

/* ===================== Design Tokens ===================== */
:root {
    /* Brand Colors - Ruijie (白红配色) */
    --rj-red: #E60012;
    --rj-red-dark: #C7000B;
    --rj-red-darker: #9E0009;
    --rj-red-light: #FDE9EA;
    --rj-red-lighter: #FEF5F5;

    /* Semantic Colors */
    --color-success: #00A854;
    --color-success-bg: #E6F7EF;
    --color-error: #E60012;
    --color-error-bg: #FDE8EA;
    --color-warning: #FAAD14;
    --color-warning-bg: #FFF7E6;

    /* Neutral Palette */
    --gray-50: #FAFBFC;
    --gray-100: #F5F7FA;
    --gray-200: #EBEEF3;
    --gray-300: #DDE3EA;
    --gray-400: #B8C0CC;
    --gray-500: #8892A0;
    --gray-600: #5C6573;
    --gray-700: #3D4654;
    --gray-800: #262D38;
    --gray-900: #1A1F28;

    /* Typography */
    --font-primary: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 0.9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.375rem;
    --fs-2xl: 1.75rem;
    --fs-3xl: 2.25rem;
    --fs-4xl: 3rem;
    --fs-5xl: 3.75rem;

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.16);
    --shadow-red: 0 8px 24px rgba(230, 0, 18, 0.25);

    /* Transitions */
    --ease-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --header-height: 68px;
    --container-max: 1200px;
}

/* ===================== Reset ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* Selection */
::selection { background: var(--rj-red); color: #fff; }

/* ===================== Layout ===================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.section {
    padding: var(--sp-20) 0;
}

.section-head {
    text-align: center;
    margin-bottom: var(--sp-12);
}

.section-tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rj-red);
    background: var(--rj-red-light);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-4);
}

.section-title {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: var(--sp-3);
}

.section-desc {
    font-size: var(--fs-md);
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===================== Buttons ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-size: var(--fs-base);
    font-weight: 600;
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--radius-md);
    transition: all var(--ease-fast);
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}

.btn--primary {
    background: var(--rj-red);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.btn--primary:hover {
    background: var(--rj-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(230, 0, 18, 0.3);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
    background: var(--rj-red);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.btn--secondary:hover {
    background: var(--rj-red-dark);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--rj-red);
    border: 1.5px solid var(--gray-300);
}
.btn--outline:hover {
    border-color: var(--rj-red);
    background: var(--rj-red-lighter);
}

.btn--lg { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-md); }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); }

/* ===================== Header ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--ease-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header__container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--ease-normal);
}
.header__logo:hover .logo-mark { transform: scale(1.05) rotate(-3deg); }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-cn {
    font-size: var(--fs-lg);
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: 0.02em;
}

.logo-en {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.nav-link {
    position: relative;
    font-size: var(--fs-base);
    font-weight: 500;
    color: var(--gray-600);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-md);
    transition: all var(--ease-fast);
}

.nav-link:hover {
    color: var(--rj-red);
    background: var(--rj-red-lighter);
}

.nav-link.active {
    color: var(--rj-red);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--rj-red);
    border-radius: var(--radius-full);
}

.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--sp-2);
}

.header__mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--ease-fast);
}

/* ===================== Hero ===================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fef0f1 100%);
    padding-top: var(--header-height);
}

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

.hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(230, 0, 18, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(230, 0, 18, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}

.hero__bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero__bg-glow--blue {
    width: 500px;
    height: 500px;
    background: var(--rj-red);
    top: -100px;
    right: -100px;
}

.hero__bg-glow--orange {
    width: 400px;
    height: 400px;
    background: var(--rj-red);
    bottom: -100px;
    left: -50px;
    opacity: 0.2;
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 var(--sp-6);
}

/* 单独作为首页时，去掉为固定 header 预留的 padding-top */
.hero--solo {
    padding-top: 0;
}

.hero__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-10);
    text-align: left;
}

.hero__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.hero__brand .logo-cn {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: 0.02em;
}

.hero__brand .logo-en {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--rj-red-dark);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(230, 0, 18, 0.2);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-6);
    backdrop-filter: blur(10px);
    animation: fadeUp 600ms ease both;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--rj-red);
    border-radius: 50%;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--rj-red);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--rj-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--sp-5);
    animation: fadeUp 600ms ease 100ms both;
}

.hero__subtitle {
    font-size: var(--fs-lg);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--sp-10);
    animation: fadeUp 600ms ease 200ms both;
}

.hero__stats {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-8);
    padding: var(--sp-6) var(--sp-10);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: fadeUp 600ms ease 300ms both;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__stat-num {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: var(--rj-red);
    font-variant-numeric: tabular-nums;
}

.hero__stat-label {
    font-size: var(--fs-xs);
    color: var(--gray-500);
    font-weight: 500;
    margin-top: var(--sp-1);
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-300);
}

.hero__scroll-hint {
    position: absolute;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--gray-500);
    z-index: 1;
    animation: fadeUp 600ms ease 500ms both;
}

.scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
}

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

/* ===================== Upload Section ===================== */
.upload-section {
    background: var(--gray-100);
}

/* Card */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card__title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--gray-800);
}

.card__badge {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--color-error);
}

/* Form */
.visit-form {
    margin-bottom: var(--sp-8);
}

.visit-form__body {
    padding: var(--sp-6);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-5);
    margin-bottom: var(--sp-5);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--sp-2);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.required {
    color: var(--color-error);
}

.form-group label.is-required::before {
    content: '*';
    color: var(--color-error);
}

.form-group input,
.form-group textarea {
    padding: var(--sp-3) var(--sp-4);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    color: var(--gray-800);
    background: #fff;
    transition: all var(--ease-fast);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--rj-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group input.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.08);
}

/* Upload Zone */
.upload-zone {
    position: relative;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    background: #fff;
    padding: var(--sp-12) var(--sp-6);
    text-align: center;
    transition: all var(--ease-normal);
    cursor: pointer;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: var(--rj-red);
    background: var(--rj-red-lighter);
}

.upload-zone.dragover {
    border-color: var(--rj-red);
    background: var(--rj-red-light);
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

.upload-zone.dragover .upload-zone__icon {
    transform: scale(1.1) translateY(-8px);
    color: var(--rj-red);
}

.upload-zone__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
}

.upload-zone__icon {
    color: var(--gray-400);
    transition: all var(--ease-bounce);
    margin-bottom: var(--sp-2);
}

.upload-zone__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-700);
}

.upload-zone__hint {
    font-size: var(--fs-base);
    color: var(--gray-500);
}

.upload-zone__formats {
    font-size: var(--fs-xs);
    color: var(--gray-400);
    margin: var(--sp-1) 0 var(--sp-4);
}

/* Preview Queue */
.preview-queue {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
    min-height: 0;
}

.preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-100);
    animation: scaleIn var(--ease-bounce) both;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--ease-fast);
}

.preview-item__remove:hover {
    background: var(--color-error);
    transform: scale(1.1);
}

.preview-item__status {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: var(--rj-red);
}

.preview-item__status.done { background: var(--color-success); }
.preview-item__status.error { background: var(--color-error); }

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Upload Progress */
.upload-progress-wrap {
    margin-top: var(--sp-5);
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.upload-progress__bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.upload-progress__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--rj-red), var(--rj-red));
    border-radius: var(--radius-full);
    transition: width var(--ease-normal);
}

.upload-progress__text {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ===================== Gallery ===================== */
.gallery-section {
    background: #fff;
}

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box__icon {
    position: absolute;
    left: var(--sp-3);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-10);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    color: var(--gray-800);
    background: #fff;
    transition: all var(--ease-fast);
    outline: none;
}

.search-box input:focus {
    border-color: var(--rj-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1);
}

.gallery-toolbar__actions {
    display: flex;
    gap: var(--sp-3);
    align-items: center;
}

.filter-select {
    padding: var(--sp-3) var(--sp-4);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    color: var(--gray-700);
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: all var(--ease-fast);
}

.filter-select:hover {
    border-color: var(--rj-red);
}

.filter-select:focus {
    border-color: var(--rj-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1);
}

/* Photo Grid */
.download-notice {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    background: var(--rj-red-light);
    border: 1px solid rgba(230, 0, 18, 0.2);
    border-radius: 10px;
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.download-notice[hidden] { display: none; }
.download-notice__icon { flex-shrink: 0; color: var(--rj-red); }
.download-notice__text { color: var(--rj-red-dark); }
.download-notice__text strong { font-weight: 700; color: var(--rj-red); }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-5);
}

.photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--ease-normal);
    cursor: pointer;
    animation: cardEnter var(--ease-bounce) both;
}

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

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rj-red);
}

.photo-card__image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
}

.photo-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ease-slow);
}

.photo-card:hover .photo-card__image {
    transform: scale(1.06);
}

.photo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--ease-normal);
    display: flex;
    align-items: flex-end;
    padding: var(--sp-3);
    gap: var(--sp-2);
}

.photo-card:hover .photo-card__overlay {
    opacity: 1;
}

.photo-card__action {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease-fast);
    backdrop-filter: blur(4px);
}

.photo-card__action:hover {
    background: var(--rj-red);
    color: #fff;
    transform: scale(1.1);
}

.photo-card__action--download:hover {
    background: var(--rj-red);
}

.photo-card__action--delete:hover {
    background: var(--color-error);
}

.photo-card__body {
    padding: var(--sp-4);
}

.photo-card__company {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: var(--sp-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-card__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--gray-500);
}

.photo-card__meta-dot {
    width: 3px;
    height: 3px;
    background: var(--gray-400);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-20) var(--sp-6);
    text-align: center;
}

.empty-state.show {
    display: flex;
}

.empty-state__icon {
    color: var(--gray-400);
}

.empty-state__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-600);
}

.empty-state__desc {
    font-size: var(--fs-base);
    color: var(--gray-500);
    margin-bottom: var(--sp-2);
}

/* ===================== About Section ===================== */
.about-section {
    background: var(--gray-100);
}

.about-card {
    background: linear-gradient(135deg, var(--rj-red) 0%, var(--rj-red-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--sp-16) var(--sp-12);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,102,0,0.15) 0%, transparent 60%);
}

.about-card__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.about-card .section-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.about-card__title {
    font-size: var(--fs-3xl);
    font-weight: 900;
    margin-bottom: var(--sp-4);
}

.about-card__desc {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--sp-8);
}

.about-features {
    display: flex;
    gap: var(--sp-8);
    flex-wrap: wrap;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.about-feature__icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.about-feature span {
    font-size: var(--fs-base);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ===================== Lightbox ===================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
    animation: fadeIn var(--ease-normal);
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, 0.92);
    backdrop-filter: blur(8px);
}

.lightbox__wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-6);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease-fast);
    backdrop-filter: blur(8px);
}

.lightbox__close {
    top: var(--sp-5);
    right: var(--sp-5);
}

.lightbox__close:hover {
    background: var(--color-error);
    transform: rotate(90deg);
}

.lightbox__nav--prev { left: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-5); top: 50%; transform: translateY(-50%); }

.lightbox__nav:hover {
    background: var(--rj-red);
}

.lightbox__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    gap: var(--sp-4);
}

.lightbox__image-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.3);
    min-height: 0;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    animation: scaleIn var(--ease-bounce);
}

.lightbox__panel {
    width: 100%;
    max-width: 700px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-6);
}

.lightbox__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
}

.lightbox__company {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #fff;
}

.lightbox__meta {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--sp-2);
}

.lightbox__desc {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* ===================== Toast ===================== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--sp-4));
    right: var(--sp-6);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--rj-red);
    min-width: 280px;
    max-width: 420px;
    pointer-events: auto;
    animation: toastIn var(--ease-bounce) both;
}

.toast.removing {
    animation: toastOut var(--ease-fast) forwards;
}

.toast--success { border-left-color: var(--color-success); }
.toast--error { border-left-color: var(--color-error); }
.toast--warning { border-left-color: var(--color-warning); }

.toast__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
}

.toast--success .toast__icon { background: var(--color-success); }
.toast--error .toast__icon { background: var(--color-error); }
.toast--warning .toast__icon { background: var(--color-warning); }
.toast--info .toast__icon { background: var(--rj-red); }

.toast__msg {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
}

/* ===================== 弹窗（确认上传 / 删除） ===================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
    background: rgba(20, 12, 12, 0.55);
    backdrop-filter: blur(2px);
    animation: modalFade 0.2s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalPop 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes modalPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--gray-100);
}
.modal__title {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--gray-900);
}
.modal__close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    transition: color var(--transition-fast);
}
.modal__close:hover { color: var(--rj-red); }
.modal__body { padding: var(--sp-6); }
.modal__footer {
    display: flex;
    gap: var(--sp-3);
    justify-content: flex-end;
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.modal__footer .btn { min-width: 104px; }

/* 确认信息 */
.confirm-meta {
    background: var(--rj-red-lighter);
    border: 1px solid var(--rj-red-light);
    border-radius: var(--radius-md);
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-4);
}
.confirm-meta__row {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: 3px 0;
    font-size: var(--fs-sm);
}
.confirm-meta__row span { color: var(--gray-500); }
.confirm-meta__row b { color: var(--gray-900); font-weight: 600; }

/* 待上传文件预览 */
.confirm-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: var(--sp-3);
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: var(--sp-4);
}
.confirm-file {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    background-color: var(--gray-100);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.confirm-file__name {
    font-size: 10px;
    line-height: 1.3;
    padding: 3px 5px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.confirm-file__size {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}
.confirm-tip {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--gray-500);
    text-align: center;
}
.confirm-tip__count { color: var(--rj-red); font-weight: 700; }

.delete-warn {
    margin: 0 0 var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--gray-700);
    line-height: 1.6;
}

/* 已上传管理列表 */
.manage-section { margin-top: var(--sp-6); }
.manage-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-5);
}
.manage-item {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-3);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}
.manage-item:hover { border-color: var(--rj-red-light); }
.manage-item__thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: var(--radius-sm);
    background-color: var(--gray-100);
    background-size: cover;
    background-position: center;
}
.manage-item__info { flex: 1; min-width: 0; }
.manage-item__company {
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.manage-item__sub {
    font-size: var(--fs-xs);
    color: var(--gray-500);
    margin-top: 2px;
}
.manage-item__code {
    font-size: var(--fs-xs);
    color: var(--rj-red);
    font-weight: 600;
    margin-top: 2px;
}
.manage-empty {
    padding: var(--sp-8);
    text-align: center;
    color: var(--gray-400);
    font-size: var(--fs-sm);
}
.manage-empty--error { color: var(--rj-red); }

/* 危险按钮（删除） */
.btn--danger {
    background-color: var(--rj-red);
    color: #fff;
}
.btn--danger:hover:not(:disabled) {
    background-color: var(--rj-red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-red);
}
.btn--ghost {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}
.btn--ghost:hover:not(:disabled) {
    color: var(--rj-red);
    border-color: var(--rj-red-light);
    background: var(--rj-red-lighter);
}
.btn--sm {
    padding: 7px 14px;
    font-size: var(--fs-xs);
}

@media (max-width: 480px) {
    .manage-item { flex-wrap: wrap; }
    .manage-item__btn { margin-left: auto; }
    .modal__footer .btn { min-width: 0; flex: 1; }
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(100%); }
}

/* ===================== FAB ===================== */
.fab {
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-6);
    width: 56px;
    height: 56px;
    background: var(--rj-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: all var(--ease-normal);
}

.fab.show {
    opacity: 1;
    pointer-events: auto;
}

.fab:hover {
    background: var(--rj-red-dark);
    transform: scale(1.08) translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ===================== Footer ===================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--sp-8) 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    flex-wrap: wrap;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.footer__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer .logo-cn {
    color: #fff;
    font-size: var(--fs-md);
}

.footer__copyright {
    font-size: var(--fs-xs);
    color: var(--gray-500);
}

.footer__links {
    display: flex;
    gap: var(--sp-6);
}

.footer__links a {
    font-size: var(--fs-sm);
    color: var(--gray-400);
    transition: color var(--ease-fast);
}

.footer__links a:hover {
    color: #fff;
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__mobile-toggle {
        display: flex;
    }

    .hero__stats {
        gap: var(--sp-4);
        padding: var(--sp-4) var(--sp-6);
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero__stat-divider {
        display: none;
    }

    .hero__stat-num {
        font-size: var(--fs-2xl);
    }

    .section-title {
        font-size: var(--fs-2xl);
    }

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

    .gallery-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .gallery-toolbar__actions {
        justify-content: space-between;
    }

    .about-card {
        padding: var(--sp-10) var(--sp-6);
    }

    .about-card__title {
        font-size: var(--fs-2xl);
    }

    .about-features {
        gap: var(--sp-4);
    }

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

    .lightbox__nav--prev,
    .lightbox__nav--next {
        top: auto;
        bottom: var(--sp-5);
        transform: none;
    }

    .lightbox__nav--prev { left: var(--sp-5); }
    .lightbox__nav--next { right: var(--sp-5); }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: var(--fs-md);
    }

    .upload-zone {
        padding: var(--sp-8) var(--sp-4);
    }

    .section {
        padding: var(--sp-12) 0;
    }

    .toast {
        min-width: auto;
        width: calc(100vw - 48px);
    }
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--rj-red);
    outline-offset: 2px;
}

/* ===================== Employee Console (split system) ===================== */

/* Nav badge — marks the page you are currently on (no link) */
.nav-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--rj-red);
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-md);
    background: var(--rj-red-light);
    pointer-events: none;
}
.nav-badge svg { color: var(--rj-red); flex-shrink: 0; }

/* Console hero — shorter than the marketing hero so the panel stays in view */
.hero--console {
    min-height: 52vh;
    padding-bottom: var(--sp-12);
}

/* Passcode lock card */
.lock-card {
    max-width: 420px;
    margin: 0 auto var(--sp-8);
    padding: var(--sp-10) var(--sp-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-2);
    animation: fadeUp var(--ease-normal) both;
}
.lock-card__icon { margin-bottom: var(--sp-2); }
.lock-card__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}
.lock-card__hint {
    font-size: var(--fs-sm);
    color: var(--gray-500);
    margin-bottom: var(--sp-2);
}
.lock-card__input {
    display: flex;
    gap: var(--sp-2);
    width: 100%;
    max-width: 320px;
    margin-top: var(--sp-2);
}

.lock-card__input--account {
    flex-direction: column;
    max-width: 420px;
}

.lock-card__input--account .btn {
    width: 100%;
}

.auth-session-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
    color: var(--gray-600);
    font-size: var(--fs-sm);
}
.lock-card__input input {
    flex: 1;
    min-width: 0;
    padding: var(--sp-3) var(--sp-4);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    text-align: center;
    letter-spacing: 0.18em;
    color: var(--gray-800);
    outline: none;
    transition: all var(--ease-fast);
}
.lock-card__input input:focus {
    border-color: var(--rj-red);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1);
}
.lock-card__input input.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.08);
}
.lock-card__error {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-error);
    min-height: var(--fs-sm);
    margin-top: var(--sp-2);
}

/* Upload panel — revealed after unlock */
.upload-panel { display: block; }
.upload-panel .visit-form { margin-bottom: var(--sp-6); }
.upload-panel .upload-zone { margin-bottom: var(--sp-6); padding: var(--sp-10) var(--sp-6); }
.upload-panel .upload-progress-wrap { margin-bottom: var(--sp-6); }

/* Session / sync stat strip */
.console-stats {
    display: flex;
    justify-content: center;
    gap: var(--sp-12);
    padding: var(--sp-5) var(--sp-6);
    background: var(--rj-red-lighter);
    border: 1px solid var(--rj-red-light);
    border-radius: var(--radius-lg);
}
.console-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
}
.console-stat__num {
    font-size: var(--fs-2xl);
    font-weight: 900;
    color: var(--rj-red);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.console-stat__num--sync {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-success);
}
.console-stat__label {
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--gray-500);
}

/* Live sync badge on the customer hero */
.hero__badge--live {
    color: var(--color-success);
    background: rgba(0, 168, 84, 0.1);
    border-color: rgba(0, 168, 84, 0.3);
}
.hero__badge--live .pulse-dot,
.hero__badge--live .pulse-dot::after { background: var(--color-success); }

/* ===================== Console responsive ===================== */
@media (max-width: 768px) {
    .hero--console { min-height: 40vh; }
    .lock-card { padding: var(--sp-8) var(--sp-6); }
    .console-stats { gap: var(--sp-8); }
}
@media (max-width: 480px) {
    .lock-card__input { flex-direction: column; }
    .lock-card__input .btn { width: 100%; }
}

/* ===================== Hub landing (index.html) ===================== */
.hub-actions {
    display: flex;
    gap: var(--sp-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-8);
    animation: fadeUp var(--ease-normal) 300ms both;
}

.hub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-6);
}

.hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-8);
    text-decoration: none;
    transition: all var(--ease-normal);
}
.hub-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rj-red);
}

.hub-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-5);
}
.hub-card__icon--blue { background: var(--rj-red-light); color: var(--rj-red); }
.hub-card__icon--orange { background: var(--rj-red-light); color: var(--rj-red); }

.hub-card__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--sp-3);
}

.hub-card__desc {
    font-size: var(--fs-base);
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--sp-5);
    flex: 1;
}

.hub-card__link {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--rj-red);
    transition: all var(--ease-fast);
}
.hub-card:hover .hub-card__link { transform: translateX(4px); }

/* ===================== Customer main-visual (hero search gate) ===================== */
.hero-search {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    max-width: 560px;
    margin: var(--sp-6) auto 0;
    background: #fff;
    padding: var(--sp-2);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(230, 0, 18, 0.18);
    animation: fadeUp 600ms ease 250ms both;
}

.hero-search__field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.hero-search__icon {
    position: absolute;
    left: var(--sp-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.hero-search__input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-10);
    font-size: var(--fs-md);
    color: var(--gray-800);
}

.hero-search__input::placeholder { color: var(--gray-400); }

.hero-search .btn { margin-right: var(--sp-1); flex-shrink: 0; }

.hero-search__hint {
    margin-top: var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--gray-500);
    animation: fadeUp 600ms ease 350ms both;
}

.hero-search__employee {
    margin-top: var(--sp-6);
    font-size: var(--fs-sm);
    color: var(--gray-500);
    animation: fadeUp 600ms ease 400ms both;
}
.hero-search__employee a { color: var(--rj-red); font-weight: 600; }
.hero-search__employee a:hover { text-decoration: underline; }

/* ===================== RateLimit soft warning bar ===================== */
.rateLimit-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--sp-3);
    padding: 8px 16px;
    background: #EFF6FF;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    color: #1D4ED8;
    animation: fadeUp 400ms ease both;
}
.rateLimit-hint--warn {
    background: #FFF7E6;
    border-color: rgba(250, 173, 20, 0.35);
    color: #876300;
}
.rateLimit-hint--reach {
    background: #FEECEC;
    border-color: rgba(230, 0, 18, 0.25);
    color: #C2000A;
    font-weight: 600;
}
.rateLimit-hint[hidden] { display: none; }

/* 首页（index.html）配额条居中显示 */
.page-home .rateLimit-hint {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: var(--sp-3) auto 0;
}

/* Hero feature chips (replace numeric stats — avoids leaking other companies) */
.hero__features {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-8);
    padding: var(--sp-5) var(--sp-10);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: fadeUp 600ms ease 300ms both;
    margin-top: var(--sp-8);
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--gray-700);
}

.hero__feature svg { color: var(--rj-red); flex-shrink: 0; }

/* ===================== Gallery result bar (after company search) ===================== */
.gallery-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    background: var(--rj-red-lighter);
    border: 1px solid var(--rj-red-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--sp-6);
    flex-wrap: wrap;
    animation: fadeUp var(--ease-normal) both;
}
.gallery-result[hidden] { display: none; }

.gallery-result__info {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

.gallery-result__label {
    font-size: var(--fs-xs);
    color: var(--gray-500);
    font-weight: 500;
}

.gallery-result__company {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--rj-red);
}

.gallery-result__count {
    font-size: var(--fs-sm);
    color: var(--gray-500);
}

/* Primary highlight for the customer card on the landing hub */
.hub-card--primary {
    border-color: var(--rj-red);
    box-shadow: var(--shadow-md);
}
.hub-card--primary .hub-card__title { color: var(--rj-red); }

@media (max-width: 768px) {
    /* Mobile hero-search: 保持横向布局（input + button），避免 column 换行后比例失衡 */
    .hero-search {
        flex-direction: row;
        align-items: center;
        border-radius: var(--radius-full);
        padding: 6px;
        gap: 6px;
    }
    .hero-search__field { width: auto; flex: 1; min-width: 0; }
    /* input font-size=16px 防止 iOS Safari 点击时自动放大页面 */
    .hero-search__input { font-size: 16px; padding: 8px 12px 8px 36px; }
    .hero-search__icon { left: 12px; width: 16px; height: 16px; }
    .hero-search .btn { width: auto; flex-shrink: 0; padding: 8px 14px; font-size: 14px; }
    .hero__features { gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); flex-wrap: wrap; justify-content: center; }
    .gallery-result { flex-direction: column; align-items: flex-start; }
}

/* ===================== Logo image (Ruijie official PNG) ===================== */
.header__logo-img,
.hero__logo-img,
.footer__logo-img {
    display: block;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.header__logo-img { height: 38px; }
.hero__logo-img { height: 40px; }

/* ===================== Sticky Top Bar (index.html) ===================== */
/* 落地页专用：logo + 语言切换器合并为一个固定顶部栏 */
.page-home .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    height: 72px;
    padding: 0 var(--sp-6);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.topbar__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.topbar__logo {
    display: block;
    height: 38px;          /* 与 .header__logo-img 统一 */
    width: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .page-home .topbar { height: 64px; padding: 0 var(--sp-4); }
    .topbar__logo { height: 32px; }   /* 与 .header__logo-img 移动端一致 */
}
.footer__logo-img { height: 32px; filter: brightness(0) invert(1); /* 让红色 logo 在深色底上变白 */ }

@media (max-width: 768px) {
    .header__logo-img { height: 32px; }
    .hero__logo-img { height: 32px; }
    .footer__logo-img { height: 26px; }
}

/* ===================== Language Switch (中 / EN) ===================== */
/* 醒目：圆角胶囊 + 当前语言高亮 + 悬停反馈 + 大尺寸 */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 3px solid var(--rj-red);
    border-radius: var(--radius-full);
    padding: 5px;
    gap: 4px;
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.25);
    user-select: none;
    flex-shrink: 0;
}
.lang-switch__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--rj-red);
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: 700;
    line-height: 1;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--ease-fast);
    min-width: 56px;
    text-align: center;
    letter-spacing: 0.05em;
}
.lang-switch__btn:hover {
    background: var(--rj-red-lighter);
    transform: translateY(-2px);
}
.lang-switch__btn--active,
.lang-switch__btn--active:hover {
    background: var(--rj-red);
    color: #fff;
    box-shadow: var(--shadow-red);
    transform: none;
}

/* 移动端隐藏红色光斑：500px 红块 + blur 80px 在 375px 屏宽下会铺满整页变成粉红色背景 */
@media (max-width: 768px) {
    .hero__bg-glow { display: none; }
}

/* 首页 hub：lang-switch 已并入 .topbar，无需 --floating 浮窗定位 */
@media (max-width: 480px) {
    .lang-switch__btn { padding: 8px 16px; min-width: 46px; font-size: 14px; }
    .header__lang .lang-switch { transform: scale(1.05); transform-origin: right center; }
}
