 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
            background: linear-gradient(180deg, #fefaed 0%, #ece9f2 100%);
            min-height: 100vh;
            color: #334155;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        /* ---------- 顶部导航 ---------- */
        .site-header {
            background: #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
            position: relative;
            z-index: 10;
        }

        .site-header-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .site-logo {
            font-size: 22px;
            font-weight: 700;
            color: #1e293b;
            letter-spacing: 2px;
            white-space: nowrap;
        }

        .site-nav {
            display: flex;
            list-style: none;
            gap: 32px;
            margin: 0;
            padding: 0;
        }

        .site-nav a {
            font-size: 15px;
            color: #334155;
            text-decoration: none;
            transition: color 0.2s;
        }

        .site-nav a:hover {
            color: #3b82f6;
        }

        .site-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 14px;
            border-radius: 14px;
            font-size: 13px;
            color: #7c3aed;
            background: #f3f0ff;
            border: 1px solid #ddd6fe;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .action-btn:hover {
            background: #ede9fe;
        }

        .action-btn.action-icon {
            width: 30px;
            height: 30px;
            padding: 0;
            border-radius: 50%;
        }

        /* 移动端汉堡菜单按钮 */
        .menu-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            color: #1e293b;
        }

        /* 侧边菜单遮罩 */
        .menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 998;
        }

        .menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* 侧边菜单面板 */
        .side-menu {
            position: fixed;
            top: 0;
            right: 0;
            width: 280px;
            max-width: 80vw;
            height: 100vh;
            background: #ffffff;
            box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
            transform: translateX(100%);
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            z-index: 999;
            display: flex;
            flex-direction: column;
            padding: 20px;
        }

        .side-menu.active {
            transform: translateX(0);
        }

        .side-menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid #f1f5f9;
        }

        .side-menu-title {
            font-size: 16px;
            font-weight: 600;
            color: #1e293b;
        }

        .side-menu-close {
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            color: #64748b;
        }

        .side-menu-nav {
            list-style: none;
            padding: 0;
            margin: 0 0 24px 0;
        }

        .side-menu-nav li {
            margin-bottom: 4px;
        }

        .side-menu-nav a {
            display: block;
            padding: 12px 8px;
            font-size: 15px;
            color: #334155;
            text-decoration: none;
            border-radius: 8px;
            transition: all 0.2s;
        }

        .side-menu-nav a:hover {
            background: #f8fafc;
            color: #3b82f6;
        }

        .side-menu-actions {
            margin-top: auto;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding-top: 16px;
            border-top: 1px solid #f1f5f9;
        }

        .side-menu-actions .action-btn {
            flex: 1;
            min-width: 80px;
            justify-content: center;
        }

        @media (max-width: 768px) {
            .site-header-inner {
                padding: 0 16px;
                height: 56px;
            }
            .site-logo {
                font-size: 16px;
            }
            .site-nav {
                display: none;
            }
            .site-actions {
                display: none;
            }
            .menu-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

        /* ---------- 头部标题区 ---------- */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            position: relative;
            gap: 16px;
        }

        .header-text {
            flex: 1;
            position: relative;
            min-width: 0;
        }

        .header-watermark {
            font-size: 32px;
            font-weight: 700;
            color: rgba(148, 163, 184, 0.15);
            letter-spacing: 2px;
            line-height: 1;
            position: absolute;
            top: -4px;
            left: 0;
            white-space: nowrap;
            pointer-events: none;
            user-select: none;
        }

        .header-main {
            position: relative;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-top: 14px;
        }

        .header-main h1 {
            font-size: 26px;
            font-weight: 700;
            color: #1e293b;
            letter-spacing: 2px;
        }

        .header-sub {
            font-size: 13px;
            color: #94a3b8;
            margin-top: 8px;
            line-height: 1.5;
            max-width: 480px;
        }

        .header-img {
            flex-shrink: 0;
            width: 200px;
            height: auto;
            opacity: 0.85;
        }

        .header-img img {
            width: 100%;
            height: auto;
            display: block;
        }

        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                text-align: center;
                position: relative;
            }
            .header-watermark {
                left: 50%;
                transform: translateX(-50%);
                font-size: 28px;
            }
            .header-main {
                justify-content: center;
            }
            .header-sub {
                margin-left: auto;
                margin-right: auto;
            }
            .header-img {
                position: absolute;
                top: 80px;
                right: 8px;
                width: 100px;
                opacity: 0.25;
                pointer-events: none;
                z-index: 0;
            }
            .header-text {
                position: relative;
                z-index: 1;
            }
            .container {
                padding: 20px 16px;
            }
            .main-wrap {
                gap: 16px;
            }
            .left-card {
                padding: 20px 16px;
                width: 100%;
            }
            .right-card {
                padding: 20px 16px;
            }
            .note-card {
                padding: 20px 16px;
            }
            .left-header-img {
                width: 48px;
            }
            .form-grid {
                gap: 12px 16px;
            }
        }

        /* ---------- 主内容区（左右两栏） ---------- */
        .main-wrap {
            display: flex;
            gap: 24px;
            margin-bottom: 24px;
            align-items: flex-start;
        }

        .right-column {
            flex: 0.85;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* 左侧：贷款详情 */
        .left-card {
            flex: 1.2;
            background: #ffffff;
            border-radius: 16px;
            padding: 62px 32px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
        }

        .left-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 24px;
            position: relative;
        }

        .left-header h2 {
            font-size: 18px;
            font-weight: 600;
            color: #1e293b;
        }

        .left-header .unit-note {
            font-size: 13px;
            color: #94a3b8;
            margin-left: 12px;
        }

        .left-header-img {
            margin-left: auto;
            width: 64px;
            height: auto;
            opacity: 0.9;
        }

        .left-header-img img {
            width: 100%;
            height: auto;
            display: block;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 38px 24px;
        }

        .form-item {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-label {
            font-size: 13px;
            color: #64748b;
            font-weight: 500;
        }

        .form-input-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }

        input[type="text"],
        input[type="number"],
        select {
            width: 100%;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 10px 40px 10px 12px;
            color: #1e293b;
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
            height: 42px;
        }

        input[type="text"]:focus,
        input[type="number"]:focus,
        select:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        input[readonly] {
            background: #f8fafc;
            color: #64748b;
            cursor: not-allowed;
        }

        input[type="number"]::-webkit-inner-spin-button,
        input[type="number"]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type="number"] {
            -moz-appearance: textfield;
        }

        select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }

        select option {
            background: #ffffff;
            color: #1e293b;
        }

        .input-unit {
            position: absolute;
            right: 12px;
            font-size: 13px;
            color: #94a3b8;
            pointer-events: none;
        }

        .error-msg {
            font-size: 12px;
            color: #ef4444;
            min-height: 18px;
            line-height: 1.4;
        }

        input.error,
        select.error {
            border-color: #ef4444 !important;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
        }

        /* 开始计算按钮 */
        .calc-btn-wrap {
            text-align: center;
            margin-top: 28px;
                margin-bottom: 28px;
        }

        .calc-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 40px;
            background: #6b3a60;
            border: none;
            border-radius: 24px;
            color: #fff;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 16px rgba(42, 27, 61, 0.25);
            letter-spacing: 1px;
        }

        .calc-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 24px rgba(42, 27, 61, 0.35);
        }

        .calc-btn img {
            width: 18px;
            height: 18px;
        }

        /* ---------- 右侧：计算结果 ---------- */
        .right-card {
            flex: 0.85;
            background: #faf5f9;
            border-radius: 16px;
            padding: 28px 32px;
            box-shadow: 0 4px 20px rgba(140, 77, 127, 0.08);
            color: #4a3b4a;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(140, 77, 127, 0.1);
                min-height: 361px;
        }

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

        .right-header h2 {
            font-size: 16px;
            font-weight: 600;
            color: #6b3a60;
        }

        .calc-deco {
            opacity: 0.15;
        }

        .result-main {
            margin-bottom: 0;
        }

        .result-main-label {
            font-size: 15px;
            color: #8c4d7f;
            margin-bottom: 6px;
        }

        .result-main-amount {
            font-size: 32px;
            font-weight: 700;
            color: #8c4d7f;
            line-height: 1.2;
            letter-spacing: 1px;
        }

        .result-main-amount span {
            font-size: 14px;
            font-weight: 400;
            color: #a07096;
            margin-left: 6px;
        }

        .result-detail {
            margin-top: 8px;
            min-height: 20px;
        }

        .result-detail-prefix {
            font-size: 11px;
            color: #9a7a8f;
            margin-bottom: 2px;
        }

        .result-detail-tag {
            display: inline-block;
            padding: 3px 10px;
            background: rgba(140, 77, 127, 0.1);
            border: 1px solid rgba(140, 77, 127, 0.2);
            border-radius: 12px;
            font-size: 11px;
            color: #8c4d7f;
        }

        .result-detail-row {
            display: flex;
            gap: 16px;
            padding: 4px 0;
        }

        .result-detail-item {
            flex: 1;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding: 4px 0;
            gap: 6px;
        }

        .result-detail-label {
            font-size: 14px;
            color: #9a7a8f;
            white-space: nowrap;
        }

        .result-detail-value {
            font-size: 15px;
            font-weight: 600;
            color: #6b3a60;
            white-space: nowrap;
        }

        .result-main-amount.empty {
            color: rgba(140, 77, 127, 0.2);
            font-size: 28px;
        }

        .result-meta {
            margin-top: 8px;
            padding-top: 8px;
        }

        .result-meta:not(:empty) {
            border-top: 1px dashed rgba(140, 77, 127, 0.15);
        }

        .result-meta-row {
            display: flex;
            gap: 12px;
        }

        .result-meta-item {
            flex: 1;
            font-size: 14px;
            color: #9a7a8f;
            line-height: 1.6;
        }

        .result-meta-item strong {
            color: #6b3a60;
            font-weight: 600;
        }

        .right-footer {
            margin-top: 10px;
            padding-top: 8px;
            border-top: 1px dashed rgba(140, 77, 127, 0.15);
            font-size: 14px;
            color: #b090a8;
            line-height: 1.5;
        }

        /* ---------- 备注卡片 ---------- */
        .note-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 28px 32px;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
        }

        .note-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 20px;
        }

        .note-header h2 {
            font-size: 18px;
            font-weight: 600;
            color: #1e293b;
        }

        .note-content {
            font-size: 14px;
            line-height: 2;
            color: #475569;
        }

        .note-content p {
            margin-bottom: 4px;
        }

        .note-content ul {
            padding-left: 2em;
            list-style: none;
            margin-top: 4px;
        }

        .note-content li {
            margin-bottom: 4px;
        }

        /* ---------- 响应式 ---------- */
        @media (max-width: 768px) {
            .main-wrap {
                flex-direction: column;
            }
            .form-grid {
                grid-template-columns: 1fr;
            }
            .header-watermark {
                font-size: 32px;
            }
            .header-main h1 {
                font-size: 24px;
            }
        }