﻿* { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Inter','Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;
            background: radial-gradient(ellipse at 20% 30%, #263450, #0d1424);
            min-height: 100vh;
            padding: 28px;
            color: #f1f5f9;
        }
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: radial-gradient(circle at 70% 20%, rgba(96,165,250,0.25), transparent 65%);
            pointer-events: none;
            z-index: 0;
        }
        .container { max-width: 1600px; margin: 0 auto; position: relative; z-index: 2; }
        .glass {
            background: rgba(28, 38, 65, 0.7);
            backdrop-filter: blur(18px);
            border: 1px solid rgba(96, 165, 250, 0.35);
            border-radius: 40px;
            box-shadow: 0 25px 40px -12px rgba(0,0,0,0.35);
        }
        .hero {
            padding: 36px 40px;
            margin-bottom: 28px;
        }
        .hero-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 20px;
        }
        .logo {
            font-size: 54px;
            font-weight: 800;
            background: linear-gradient(135deg, #D9E6FF, #C084FC, #F472B6);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -1px;
        }
        .logo-sub {
            font-size: 14px;
            color: #cbd5e6;
            margin-top: 8px;
        }
        html:not(.lang-ru) .product-ru,
        html.lang-zh .product-ru,
        body.lang-zh .product-ru,
        html:not(.lang-ru) .nav-ru,
        html.lang-zh .nav-ru,
        body.lang-zh .nav-ru { display: none !important; }
        html.lang-ru .product-cn,
        body.lang-ru .product-cn,
        html.lang-ru .nav-cn,
        body.lang-ru .nav-cn { display: none !important; }
        .product-badge { text-align: right; }
        .product-cn { font-size: 20px; font-weight: 600; letter-spacing: 1px; }
        .product-ru { font-size: 13px; color: #a3b8e0; margin-top: 4px; }
        .nav {
            display: flex;
            gap: 16px;
            margin-top: 36px;
            flex-wrap: wrap;
        }
        .nav-item {
            padding: 14px 34px;
            border-radius: 60px;
            cursor: pointer;
            transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(96,165,250,0.3);
        }
        .nav-item:hover {
            background: rgba(96,165,250,0.2);
            border-color: rgba(96,165,250,0.7);
        }
        .nav-item.active {
            background: linear-gradient(105deg, #3b82f6, #8b5cf6);
            border-color: transparent;
            box-shadow: 0 8px 20px -6px #3b82f6;
        }
        .nav-cn { font-weight: 700; font-size: 16px; }
        .nav-ru { font-size: 11px; opacity: 0.8; margin-top: 4px; }
        .page { display: none; }
        .page.active { display: block; }
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 20px;
            margin-bottom: 28px;
        }
        .kpi-card {
            background: rgba(30, 42, 72, 0.65);
            backdrop-filter: blur(12px);
            border-radius: 28px;
            padding: 22px;
            border: 1px solid rgba(96,165,250,0.25);
            transition: border-color 0.14s ease, background-color 0.14s ease;
        }
        .kpi-card:hover {
            border-color: #3b82f6;
            background: rgba(45, 58, 92, 0.75);
        }
        .kpi-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #cbd5f0; margin-bottom: 12px; }
        .kpi-number {
            font-size: clamp(26px, 5vw, 38px);
            font-weight: 800;
            color: white;
            word-break: break-word;
            white-space: normal;
            line-height: 1.2;
        }
        .total-number { color: #fbbf24; }
        .kpi-sub { font-size: 11px; color: #9bb3e0; margin-top: 8px; }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            flex-wrap: wrap;
            gap: 16px;
        }
        .section-header h2 {
            font-size: 26px;
            font-weight: 700;
            background: linear-gradient(135deg, #FFFFFF, #B0C4FF);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .section-header h2 {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-icon {
            width: 34px;
            height: 34px;
            min-width: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 14px;
            background: linear-gradient(135deg, rgba(96,165,250,.28), rgba(192,132,252,.22));
            border: 1px solid rgba(255,255,255,.22);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 22px rgba(15,23,42,.22);
            vertical-align: middle;
        }
        .section-icon svg {
            width: 20px;
            height: 20px;
            display: block;
            stroke: #dbeafe;
            fill: none;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .abbr-note {
            margin-top: 10px;
            padding: 10px 14px;
            border-radius: 18px;
            background: rgba(255,255,255,.06);
            border: 1px solid rgba(255,255,255,.10);
            color: #dbeafe;
            font-size: 12px;
            line-height: 1.75;
        }

        .btn {
            background: linear-gradient(95deg, #2563EB, #4F46E5);
            border: none;
            padding: 10px 26px;
            border-radius: 40px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, filter 0.14s ease;
            font-size: 14px;
        }
        .btn-outline {
            background: transparent;
            border: 1px solid #3b82f6;
            color: #b9d0ff;
        }
        .btn-outline:hover { background: rgba(59,130,246,0.25); }
        .btn:hover { filter: brightness(1.05); }
        .search-box { margin-bottom: 20px; }
        .search-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(96,165,250,0.4);
            border-radius: 60px;
            padding: 14px 20px;
            color: white;
            font-size: 14px;
            backdrop-filter: blur(5px);
        }
        .search-input:focus { outline: none; border-color: #60A5FA; background: rgba(0,0,0,0.45); }
        .table-wrapper {
            background: rgba(0, 0, 0, 0.25);
            backdrop-filter: blur(8px);
            border-radius: 28px;
            overflow-x: auto;
            border: 1px solid rgba(96,165,250,0.2);
        }
        table { width: 100%; border-collapse: collapse; }
        th {
            text-align: left;
            padding: 16px 18px;
            color: #e2e8f0;
            font-weight: 600;
            border-bottom: 1px solid rgba(96,165,250,0.3);
            background: rgba(0,0,0,0.2);
        }
        td {
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            color: #f1f5f9;
            word-break: break-word;
            white-space: normal;
        }
        .text-center { text-align: center; }
        .action { color: #60A5FA; cursor: pointer; margin-right: 14px; transition: color 0.14s ease; display: inline-block; }
        .action:hover { color: #c084fc; }
        .action-del { color: #f97373; }
        .status-paid { color: #4ade80; font-weight: 600; }
        .status-unpaid { color: #fb923c; font-weight: 600; }
        .form-card {
            background: rgba(25, 38, 65, 0.7);
            backdrop-filter: blur(16px);
            border-radius: 32px;
            padding: 24px;
            margin-bottom: 24px;
            border: 1px solid rgba(96,165,250,0.25);
        }
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
        }
        .form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
        .form-label { font-size: 13px; font-weight: 500; color: #cbd5e6; }
        .form-input, .form-select {
            background: rgba(0,0,0,0.4);
            border: 1px solid #3b4a6e;
            border-radius: 32px;
            padding: 12px 16px;
            color: white;
            font-size: 14px;
        }
        .form-select option { background: #0f172a; }
        .form-input:focus, .form-select:focus { border-color: #60A5FA; outline: none; }
        .sale-row {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 12px;
            padding: 12px;
            background: rgba(0,0,0,0.25);
            border-radius: 20px;
        }
        .total-box {
            text-align: right;
            margin-top: 20px;
            padding-top: 16px;
            border-top: 1px dashed #5a6e9e;
        }
        .total-badge {
            background: linear-gradient(145deg, #1e2a4a, #0f172a);
            display: inline-block;
            padding: 12px 28px;
            border-radius: 60px;
            font-weight: 700;
        }
        .pagination {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 24px;
        }
        .pagination button {
            background: rgba(255,255,255,0.08);
            border: 1px solid #3b4a6e;
            padding: 6px 16px;
            border-radius: 40px;
            color: white;
            cursor: pointer;
        }
        .pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
        .modal-mask {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.36);
            backdrop-filter: none;
            display: flex;
            align-items: center;
            justify-content: center;
            visibility: hidden;
            opacity: 0;
            transition: none;
            z-index: 1000;
        }
        .modal-mask.active { visibility: visible; opacity: 1; }
        .modal-panel {
            background: #ffffff;
            backdrop-filter: none;
            border-radius: 16px;
            max-width: 560px;
            width: 90%;
            padding: 34px;
            border: 1px solid rgba(96,165,250,0.5);
        }
        .modal-panel h3 {
            font-size: 26px;
            margin-bottom: 28px;
            background: linear-gradient(135deg,#fff,#a78bfa);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .modal-panel .form-group { margin-bottom: 24px; }
        .btn-group { display: flex; justify-content: flex-end; gap: 14px; margin-top: 28px; }
        .info-note {
            font-size: 12px;
            color: #b9cfe0;
            background: transparent;
            margin-top: 12px;
            text-align: left;
            padding-left: 4px;
            line-height: 1.8;
        }
        @media print {
            body * { visibility: hidden; }
            .print-window, .print-window * { visibility: visible; }
            .print-window { position: fixed; top: 0; left: 0; width: 100%; background: white; padding: 20px; color: black; }
            td, .kpi-number, .total-badge span {
                word-break: break-word;
                white-space: normal;
            }
        }
        .print-window { display: none; max-width: 1000px; margin: 0 auto; background: white; padding: 20px; }

        /* 登录界面专属样式，继承后台统一风格 */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            backdrop-filter: blur(12px);
            background: radial-gradient(circle at 20% 20%, rgba(99,102,241,.25), transparent 30%),
                        radial-gradient(circle at 80% 0%, rgba(168,85,247,.18), transparent 25%),
                        linear-gradient(135deg,#07111f,#0b1730 40%,#0a1020 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }
        .login-card {
            background: rgba(20, 30, 50, 0.85);
            backdrop-filter: blur(28px) saturate(180%);
            border-radius: 48px;
            padding: 48px 40px;
            width: 440px;
            max-width: 90%;
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
            text-align: center;
        }
        .login-card .logo {
            font-size: 48px;
            margin-bottom: 12px;
        }
        .login-title {
            font-size: 28px;
            font-weight: 700;
            background: linear-gradient(135deg, #FFFFFF, #C084FC);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 32px;
        }
        .login-input {
            width: 100%;
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.25);
            border-radius: 60px;
            padding: 14px 20px;
            color: white;
            font-size: 16px;
            margin-bottom: 20px;
            backdrop-filter: blur(4px);
        }
        .login-input:focus {
            outline: none;
            border-color: #60A5FA;
            background: rgba(255,255,255,0.15);
        }
        .login-btn {
            width: 100%;
            background: linear-gradient(95deg, #2563EB, #4F46E5);
            border: none;
            padding: 14px;
            border-radius: 60px;
            font-weight: 700;
            font-size: 18px;
            color: white;
            cursor: pointer;
            transition: background-color 0.14s ease, filter 0.14s ease;
            margin-top: 12px;
        }
        .login-btn:hover {
            filter: brightness(1.05);
        }
        .login-error {
            color: #f97373;
            font-size: 14px;
            margin-top: 16px;
            background: rgba(0,0,0,0.4);
            padding: 8px;
            border-radius: 40px;
        }
        .logout-btn {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(96,165,250,0.5);
            color: #f1f5f9;
            padding: 6px 16px;
            border-radius: 40px;
            font-size: 13px;
            cursor: pointer;
            transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
        }
        .logout-btn:hover {
            background: rgba(239,68,68,0.3);
            border-color: #f97373;
        }
        .main-wrapper {
            display: none;
        }

