/* ===================================================
   美安邦建材 — Industrial Refined Design System
   Aesthetic: Warm earth tones, concrete textures,
   bold confidence, premium construction feel
   =================================================== */

@import url('https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@600;700;900&display=swap');

:root {
    --brand: #2C3E50;
    --brand-light: #34495E;
    --accent: #C0835D;
    --accent-warm: #D4956B;
    --accent-pale: #F5E6D8;
    --surface: #FFFFFF;
    --bg: #F3EDE7;
    --bg-warm: #EDE4DB;
    --text: #1A1A1A;
    --text-secondary: #5A5A5A;
    --text-muted: #9A9A9A;
    --border: #E0D6CC;
    --success: #3D8B37;
    --warning: #C68A1D;
    --danger: #B8423A;
    --info: #2E7D9B;
    --shadow-sm: 0 1px 3px rgba(44, 62, 80, 0.06);
    --shadow: 0 4px 20px rgba(44, 62, 80, 0.08);
    --shadow-lg: 0 8px 40px rgba(44, 62, 80, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 5px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: 'Noto Serif SC', 'Songti SC', Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Animations ===== */

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

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

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

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

.anim-fade-up {
    animation: fadeUp 0.6s var(--ease) both;
}

.anim-stagger > * {
    animation: fadeUp 0.5s var(--ease) both;
}
.anim-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.anim-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.anim-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.anim-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.anim-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.anim-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.anim-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.anim-stagger > *:nth-child(8) { animation-delay: 0.4s; }

/* ===== Top Navigation ===== */

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(224, 214, 204, 0.6);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-nav .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav .nav-brand img {
    height: 30px;
    width: 30px;
    object-fit: contain;
    border-radius: 6px;
}

.top-nav .nav-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.5px;
}

.top-nav .nav-action {
    font-size: 22px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.top-nav .back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: var(--font-body);
}

/* ===== Tab Bar ===== */

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
    padding: 4px 0 env(safe-area-inset-bottom, 6px);
}

.tab-bar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 0;
    color: var(--text-muted);
    font-size: 10px;
    transition: all 0.25s var(--ease);
    position: relative;
}

.tab-bar .tab-item i { font-size: 21px; }

.tab-bar .tab-item.active {
    color: var(--accent);
}

.tab-bar .tab-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* ===== Page Container ===== */

.page-container {
    padding: 16px 16px 24px;
    max-width: 750px;
    margin: 0 auto;
}

/* ===== Hero Section ===== */

.hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--brand);
    animation: scaleIn 0.7s var(--ease) both;
}

.hero-inner {
    position: relative;
    padding: 36px 24px 32px;
    text-align: center;
    color: #fff;
}

.hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(192, 131, 93, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(52, 73, 94, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.hero-logo {
    position: relative;
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px;
    margin: 0 auto 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
    position: relative;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero-subtitle {
    position: relative;
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 3px;
    margin-bottom: 6px;
}

.hero-tags {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.hero-tag {
    font-size: 11px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    letter-spacing: 1px;
}

/* ===== Quick Actions ===== */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    animation: fadeUp 0.5s var(--ease) 0.15s both;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s var(--ease);
    cursor: pointer;
}

.quick-action:active {
    transform: scale(0.95);
}

.quick-action .qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.quick-action .qa-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== Section Headers ===== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--brand);
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

.section-more {
    font-size: 13px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 500;
}

/* ===== Product Grid ===== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-grid-item {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.product-grid-item:active {
    transform: scale(0.97);
    box-shadow: var(--shadow);
}

.product-grid-item .grid-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg-warm);
}

.product-grid-item .grid-info {
    padding: 10px 12px 12px;
}

.product-grid-item .grid-name {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.product-grid-item .grid-brand {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.product-grid-item .grid-specs {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-grid-item .grid-price {
    color: var(--danger);
    font-size: 17px;
    font-weight: 800;
    margin-top: 6px;
    font-family: var(--font-display);
}

.product-grid-item .grid-price small {
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-body);
}

/* ===== Product List Card ===== */

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.product-card:active {
    transform: scale(0.98);
}

.product-card .product-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-warm);
}

.product-card .product-info {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.product-card .product-name {
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card .product-desc {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 4px 0;
}

.product-card .product-specs {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-card .product-price {
    color: var(--danger);
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-display);
}

.product-card .product-price small {
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-body);
}

/* ===== Order Card ===== */

.order-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    display: block;
}

.order-card:active { transform: scale(0.98); }

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.order-card .order-body { padding: 12px 16px; }

.order-card .order-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}

.order-card .order-item-row img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-warm);
}

.order-card .order-item-row .item-name {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.order-card .order-item-row .item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.order-card .order-footer {
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
}

.order-card .order-footer .total {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    font-family: var(--font-display);
}

/* ===== Status Badges ===== */

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.status-pending_schedule { background: #FFF3E0; color: #E65100; }
.status-pending_delivery { background: #E3F2FD; color: #1565C0; }
.status-completed { background: #E8F5E9; color: #2E7D32; }
.status-cancelled { background: #F5F5F5; color: #9E9E9E; }

/* ===== Status Tabs ===== */

.status-tabs {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.status-tabs::-webkit-scrollbar { display: none; }

.status-tabs .tab {
    flex: 1;
    min-width: 0;
    padding: 14px 8px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-weight: 500;
}

.status-tabs .tab.active {
    color: var(--accent);
    font-weight: 600;
}

.status-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2.5px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== Search Bar ===== */

.search-bar {
    position: relative;
    margin-bottom: 14px;
}

.search-bar input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--text);
    outline: none;
    transition: all 0.25s var(--ease);
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 131, 93, 0.12);
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== About / Info Cards ===== */

.info-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 14px;
}

.info-card .info-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card .info-title i {
    color: var(--accent);
}

.info-card .info-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.9;
}

/* ===== Product Detail ===== */

.detail-gallery {
    position: relative;
    background: var(--surface);
    overflow: hidden;
}

.detail-gallery img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: none;
}

.detail-gallery img.active { display: block; }

.detail-gallery .gallery-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.detail-gallery .gallery-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.3s;
}

.detail-gallery .gallery-dots .dot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

.detail-gallery .gallery-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.detail-gallery .back-float {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-gallery .back-float:active { transform: scale(0.9); }

.detail-info {
    background: var(--surface);
    padding: 20px 16px;
    margin-bottom: 10px;
}

.detail-price {
    color: var(--danger);
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-display);
    margin-bottom: 10px;
}

.detail-price small {
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
}

.detail-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
}

.detail-section {
    background: var(--surface);
    padding: 16px;
    margin-bottom: 10px;
}

.detail-section .section-label {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.detail-attr {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 13px;
    background: var(--bg);
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.detail-attr .attr-label {
    color: var(--text-muted);
    margin-right: 4px;
}

.detail-attr .attr-value {
    color: var(--text);
    font-weight: 500;
}

/* ===== Order Detail ===== */

.order-status-header {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    color: #fff;
    padding: 28px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.order-status-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 100%, rgba(192, 131, 93, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.order-status-header .status-text {
    position: relative;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.order-status-header .status-desc {
    position: relative;
    font-size: 13px;
    opacity: 0.75;
    margin-top: 6px;
}

.order-detail-section {
    background: var(--surface);
    margin-bottom: 10px;
    padding: 16px;
}

.order-detail-section .section-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 12px;
}

/* ===== User Header (my page) ===== */

.user-header {
    background: linear-gradient(145deg, var(--brand) 0%, #3D566E 100%);
    color: #fff;
    padding: 44px 20px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.user-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 0%, rgba(192, 131, 93, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.user-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-name {
    position: relative;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.user-role {
    position: relative;
    font-size: 12px;
    display: inline-block;
    padding: 3px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    letter-spacing: 1px;
}

/* ===== Menu List ===== */

.menu-list {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin: 14px 16px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg); }

.menu-item .menu-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.menu-item .menu-left i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

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

/* ===== Feature Items (my page order shortcuts) ===== */

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.feature-item .icon-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Empty State ===== */

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    animation: fadeIn 0.5s var(--ease);
}

.empty-state i {
    font-size: 44px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p { font-size: 14px; }

/* ===== Loading ===== */

.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Brand Filter Tabs ===== */

.brand-tabs {
    display: flex;
    gap: 8px;
    padding-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.brand-tabs::-webkit-scrollbar { display: none; }

.brand-tab {
    flex-shrink: 0;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    font-weight: 500;
}

.brand-tab.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ===== View Toggle ===== */

.view-toggle {
    display: flex;
    gap: 6px;
    align-items: center;
}

.view-toggle i {
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.view-toggle i.active {
    color: var(--accent);
    background: var(--accent-pale);
}

/* ===== Login Pages ===== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
}

.login-page .bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.login-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    padding: 32px 24px;
    text-align: center;
    animation: fadeUp 0.7s var(--ease) both;
}

.login-box .logo-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid rgba(192, 131, 93, 0.2);
}

.login-box .logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-box .brand {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.login-box .tagline {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 44px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
    transition: all 0.25s var(--ease);
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.2);
}

.login-btn:active { transform: scale(0.97); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-btn i { font-size: 20px; }

.login-status {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    min-height: 20px;
}
.login-status.error { color: var(--danger); }
.login-status.success { color: var(--success); }

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: #C0C0C0;
    font-size: 12px;
}
.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.login-footer {
    font-size: 11px;
    color: #C0C0C0;
    margin-top: 40px;
    letter-spacing: 1px;
}

.login-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #C0C0C0;
    font-size: 17px;
}

.login-input-wrap .form-input {
    padding-left: 42px;
}

.login-input-wrap .toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #C0C0C0;
    font-size: 17px;
    cursor: pointer;
    padding: 4px;
}

.wx-alt-btn {
    width: 100%;
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s;
}
.wx-alt-btn:active { transform: scale(0.97); background: var(--bg); }
.wx-alt-btn i { font-size: 22px; color: #07c160; }

/* ===== Scrollbar ===== */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
