/* ============================================================
   YUNYOO Business Design System v2.0
   统一商业风格设计系统 - 适用于 Web / Cart / Clientarea 三模块
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens - 设计令牌
   ------------------------------------------------------------ */

:root {
    /* ---- Color Palette | 色彩系统 ---- */

    /* Primary - 主色调 (深海蓝 - 专业、信任、稳重) */
    --yx-primary: #1e3a5f;
    --yx-primary-light: #2c5282;
    --yx-primary-dark: #0f2744;
    --yx-primary-50: #f0f4f9;
    --yx-primary-100: #dbe5f1;
    --yx-primary-200: #b8cce3;
    --yx-primary-300: #8ea9cf;
    --yx-primary-400: #5d7fb6;
    --yx-primary-500: #3d629b;
    --yx-primary-600: #2c5282;
    --yx-primary-700: #25436a;
    --yx-primary-800: #1e3a5f;
    --yx-primary-900: #152a47;

    /* Accent - 强调色 (商务金 - 高端、品质) */
    --yx-accent: #c9a227;
    --yx-accent-light: #e0b93f;
    --yx-accent-dark: #a8831a;
    --yx-accent-50: #fdf8e7;
    --yx-accent-100: #faf0c3;
    --yx-accent-200: #f5e391;
    --yx-accent-300: #efd55f;
    --yx-accent-400: #e8c83d;
    --yx-accent-500: #d4b030;
    --yx-accent-600: #c9a227;
    --yx-accent-700: #a8831a;
    --yx-accent-800: #866415;
    --yx-accent-900: #64490f;

    /* Success - 成功色 */
    --yx-success: #2d7a4e;
    --yx-success-light: #3e9966;
    --yx-success-bg: #e8f5ee;

    /* Warning - 警告色 */
    --yx-warning: #c58700;
    --yx-warning-light: #e0a01a;
    --yx-warning-bg: #fef7e6;

    /* Danger - 危险色 */
    --yx-danger: #b91c1c;
    --yx-danger-light: #dc2626;
    --yx-danger-bg: #fef2f2;

    /* Info - 信息色 */
    --yx-info: #0369a1;
    --yx-info-light: #0284c7;
    --yx-info-bg: #f0f9ff;

    /* Neutral - 中性色 (专业灰阶) */
    --yx-gray-50: #f8fafc;
    --yx-gray-100: #f1f5f9;
    --yx-gray-200: #e2e8f0;
    --yx-gray-300: #cbd5e1;
    --yx-gray-400: #94a3b8;
    --yx-gray-500: #64748b;
    --yx-gray-600: #475569;
    --yx-gray-700: #334155;
    --yx-gray-800: #1e293b;
    --yx-gray-900: #0f172a;

    /* Surface - 表面色 */
    --yx-bg-body: #f8fafc;
    --yx-bg-card: #ffffff;
    --yx-bg-subtle: #f1f5f9;
    --yx-bg-muted: #e2e8f0;

    /* Border - 边框色 */
    --yx-border: #e2e8f0;
    --yx-border-light: #f1f5f9;
    --yx-border-dark: #cbd5e1;

    /* Text - 文字色 */
    --yx-text-primary: #1e293b;
    --yx-text-secondary: #475569;
    --yx-text-muted: #64748b;
    --yx-text-subtle: #94a3b8;
    --yx-text-inverse: #ffffff;

    /* ---- Typography | 字体系统 ---- */
    --yx-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --yx-font-mono: "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --yx-font-display: "Inter", var(--yx-font-sans);

    /* Font Sizes - 字号阶梯 */
    --yx-fs-xs: 0.75rem;     /* 12px */
    --yx-fs-sm: 0.875rem;    /* 14px */
    --yx-fs-base: 1rem;      /* 16px */
    --yx-fs-lg: 1.125rem;    /* 18px */
    --yx-fs-xl: 1.25rem;     /* 20px */
    --yx-fs-2xl: 1.5rem;     /* 24px */
    --yx-fs-3xl: 1.875rem;   /* 30px */
    --yx-fs-4xl: 2.25rem;    /* 36px */
    --yx-fs-5xl: 3rem;       /* 48px */

    /* Font Weights - 字重 */
    --yx-fw-light: 300;
    --yx-fw-regular: 400;
    --yx-fw-medium: 500;
    --yx-fw-semibold: 600;
    --yx-fw-bold: 700;

    /* Line Heights - 行高 */
    --yx-lh-tight: 1.25;
    --yx-lh-normal: 1.5;
    --yx-lh-relaxed: 1.75;

    /* ---- Spacing | 间距系统 (4px base) ---- */
    --yx-space-0: 0;
    --yx-space-1: 0.25rem;   /* 4px */
    --yx-space-2: 0.5rem;    /* 8px */
    --yx-space-3: 0.75rem;   /* 12px */
    --yx-space-4: 1rem;      /* 16px */
    --yx-space-5: 1.25rem;   /* 20px */
    --yx-space-6: 1.5rem;    /* 24px */
    --yx-space-8: 2rem;      /* 32px */
    --yx-space-10: 2.5rem;   /* 40px */
    --yx-space-12: 3rem;     /* 48px */
    --yx-space-16: 4rem;     /* 64px */
    --yx-space-20: 5rem;     /* 80px */

    /* ---- Radius | 圆角系统 ---- */
    --yx-radius-sm: 4px;
    --yx-radius: 6px;
    --yx-radius-md: 8px;
    --yx-radius-lg: 12px;
    --yx-radius-xl: 16px;
    --yx-radius-full: 9999px;

    /* ---- Shadow | 阴影系统 (简约商务风) ---- */
    --yx-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --yx-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
    --yx-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --yx-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
    --yx-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
    --yx-shadow-inner: inset 0 2px 4px 0 rgba(15, 23, 42, 0.04);

    /* ---- Transition | 过渡动画 ---- */
    --yx-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --yx-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --yx-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ---- Layout | 布局 ---- */
    --yx-container-max: 1200px;
    --yx-sidebar-width: 240px;
    --yx-sidebar-width-collapsed: 72px;
    --yx-header-height: 64px;
}

/* ------------------------------------------------------------
   2. Base Styles | 基础样式重置
   ------------------------------------------------------------ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--yx-font-sans);
    font-size: var(--yx-fs-base);
    font-weight: var(--yx-fw-regular);
    line-height: var(--yx-lh-normal);
    color: var(--yx-text-primary);
    background-color: var(--yx-bg-body);
    margin: 0;
    padding: 0;
}

/* ---- Typography ---- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--yx-font-sans);
    font-weight: var(--yx-fw-semibold);
    color: var(--yx-text-primary);
    line-height: var(--yx-lh-tight);
    margin-top: 0;
    margin-bottom: var(--yx-space-4);
}

h1 { font-size: var(--yx-fs-4xl); }
h2 { font-size: var(--yx-fs-3xl); }
h3 { font-size: var(--yx-fs-2xl); }
h4 { font-size: var(--yx-fs-xl); }
h5 { font-size: var(--yx-fs-lg); }
h6 { font-size: var(--yx-fs-base); }

p {
    margin-top: 0;
    margin-bottom: var(--yx-space-4);
    color: var(--yx-text-secondary);
}

a {
    color: var(--yx-primary);
    text-decoration: none;
    transition: color var(--yx-transition-fast);
}

a:hover {
    color: var(--yx-primary-light);
    text-decoration: none;
}

/* ------------------------------------------------------------
   3. Buttons | 按钮组件
   ------------------------------------------------------------ */

.yx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--yx-space-2);
    padding: var(--yx-space-2) var(--yx-space-4);
    font-family: var(--yx-font-sans);
    font-size: var(--yx-fs-sm);
    font-weight: var(--yx-fw-medium);
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: var(--yx-radius);
    cursor: pointer;
    transition: all var(--yx-transition-fast);
    user-select: none;
    -webkit-user-select: none;
}

.yx-btn:active {
    transform: translateY(0.5px);
}

.yx-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

/* Primary Button - 主按钮 */
.yx-btn-primary {
    background-color: var(--yx-primary);
    border-color: var(--yx-primary);
    color: var(--yx-text-inverse);
}

.yx-btn-primary:hover {
    background-color: var(--yx-primary-light);
    border-color: var(--yx-primary-light);
    color: var(--yx-text-inverse);
}

.yx-btn-primary:active {
    background-color: var(--yx-primary-dark);
    border-color: var(--yx-primary-dark);
}

/* Secondary Button - 次按钮 */
.yx-btn-secondary {
    background-color: var(--yx-bg-card);
    border-color: var(--yx-border);
    color: var(--yx-text-primary);
}

.yx-btn-secondary:hover {
    background-color: var(--yx-gray-50);
    border-color: var(--yx-border-dark);
    color: var(--yx-text-primary);
}

/* Outline Button - 边框按钮 */
.yx-btn-outline {
    background-color: transparent;
    border-color: var(--yx-primary);
    color: var(--yx-primary);
}

.yx-btn-outline:hover {
    background-color: var(--yx-primary);
    color: var(--yx-text-inverse);
}

/* Ghost Button - 幽灵按钮 */
.yx-btn-ghost {
    background-color: transparent;
    border-color: transparent;
    color: var(--yx-text-secondary);
}

.yx-btn-ghost:hover {
    background-color: var(--yx-gray-100);
    color: var(--yx-text-primary);
}

/* Success Button */
.yx-btn-success {
    background-color: var(--yx-success);
    border-color: var(--yx-success);
    color: var(--yx-text-inverse);
}

.yx-btn-success:hover {
    background-color: var(--yx-success-light);
    border-color: var(--yx-success-light);
    color: var(--yx-text-inverse);
}

/* Danger Button */
.yx-btn-danger {
    background-color: var(--yx-danger);
    border-color: var(--yx-danger);
    color: var(--yx-text-inverse);
}

.yx-btn-danger:hover {
    background-color: var(--yx-danger-light);
    border-color: var(--yx-danger-light);
    color: var(--yx-text-inverse);
}

/* Button Sizes */
.yx-btn-sm {
    padding: var(--yx-space-1) var(--yx-space-3);
    font-size: var(--yx-fs-xs);
}

.yx-btn-lg {
    padding: var(--yx-space-3) var(--yx-space-6);
    font-size: var(--yx-fs-base);
}

.yx-btn-block {
    display: flex;
    width: 100%;
}

/* ------------------------------------------------------------
   4. Cards | 卡片组件
   ------------------------------------------------------------ */

.yx-card {
    background-color: var(--yx-bg-card);
    border: 1px solid var(--yx-border-light);
    border-radius: var(--yx-radius-lg);
    box-shadow: var(--yx-shadow-sm);
    transition: box-shadow var(--yx-transition), border-color var(--yx-transition);
}

.yx-card:hover {
    box-shadow: var(--yx-shadow-md);
}

.yx-card-header {
    padding: var(--yx-space-5) var(--yx-space-6);
    border-bottom: 1px solid var(--yx-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yx-card-title {
    font-size: var(--yx-fs-lg);
    font-weight: var(--yx-fw-semibold);
    color: var(--yx-text-primary);
    margin: 0;
}

.yx-card-body {
    padding: var(--yx-space-6);
}

.yx-card-footer {
    padding: var(--yx-space-4) var(--yx-space-6);
    border-top: 1px solid var(--yx-border-light);
    background-color: var(--yx-gray-50);
    border-radius: 0 0 var(--yx-radius-lg) var(--yx-radius-lg);
}

/* Card with hover lift effect */
.yx-card-hover {
    transition: all var(--yx-transition);
}

.yx-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--yx-shadow-lg);
    border-color: var(--yx-primary-100);
}

/* ------------------------------------------------------------
   5. Badges | 徽章组件
   ------------------------------------------------------------ */

.yx-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--yx-space-1) var(--yx-space-2);
    font-size: var(--yx-fs-xs);
    font-weight: var(--yx-fw-medium);
    line-height: 1;
    border-radius: var(--yx-radius-full);
    white-space: nowrap;
}

.yx-badge-primary {
    background-color: var(--yx-primary-50);
    color: var(--yx-primary);
}

.yx-badge-success {
    background-color: var(--yx-success-bg);
    color: var(--yx-success);
}

.yx-badge-warning {
    background-color: var(--yx-warning-bg);
    color: var(--yx-warning);
}

.yx-badge-danger {
    background-color: var(--yx-danger-bg);
    color: var(--yx-danger);
}

.yx-badge-info {
    background-color: var(--yx-info-bg);
    color: var(--yx-info);
}

.yx-badge-muted {
    background-color: var(--yx-gray-100);
    color: var(--yx-gray-600);
}

/* ------------------------------------------------------------
   6. Forms | 表单组件
   ------------------------------------------------------------ */

.yx-form-group {
    margin-bottom: var(--yx-space-5);
}

.yx-form-label {
    display: block;
    font-size: var(--yx-fs-sm);
    font-weight: var(--yx-fw-medium);
    color: var(--yx-text-primary);
    margin-bottom: var(--yx-space-2);
}

.yx-form-control {
    display: block;
    width: 100%;
    padding: var(--yx-space-2) var(--yx-space-3);
    font-family: var(--yx-font-sans);
    font-size: var(--yx-fs-sm);
    font-weight: var(--yx-fw-regular);
    line-height: 1.5;
    color: var(--yx-text-primary);
    background-color: var(--yx-bg-card);
    border: 1px solid var(--yx-border);
    border-radius: var(--yx-radius);
    transition: border-color var(--yx-transition-fast), box-shadow var(--yx-transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.yx-form-control:focus {
    outline: none;
    border-color: var(--yx-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.yx-form-control::placeholder {
    color: var(--yx-text-subtle);
}

.yx-form-control:disabled,
.yx-form-control[readonly] {
    background-color: var(--yx-gray-50);
    color: var(--yx-text-muted);
    cursor: not-allowed;
}

/* Input Group */
.yx-input-group {
    display: flex;
    align-items: stretch;
}

.yx-input-group .yx-form-control {
    flex: 1;
    border-radius: 0;
}

.yx-input-group .yx-form-control:first-child {
    border-radius: var(--yx-radius) 0 0 var(--yx-radius);
}

.yx-input-group .yx-form-control:last-child {
    border-radius: 0 var(--yx-radius) var(--yx-radius) 0;
}

.yx-input-group-prepend,
.yx-input-group-append {
    display: flex;
    align-items: center;
    padding: 0 var(--yx-space-3);
    background-color: var(--yx-gray-50);
    border: 1px solid var(--yx-border);
    font-size: var(--yx-fs-sm);
    color: var(--yx-text-muted);
}

.yx-input-group-prepend {
    border-right: none;
    border-radius: var(--yx-radius) 0 0 var(--yx-radius);
}

.yx-input-group-append {
    border-left: none;
    border-radius: 0 var(--yx-radius) var(--yx-radius) 0;
}

/* ------------------------------------------------------------
   7. Tables | 表格组件
   ------------------------------------------------------------ */

.yx-table-wrapper {
    background-color: var(--yx-bg-card);
    border: 1px solid var(--yx-border-light);
    border-radius: var(--yx-radius-lg);
    overflow: hidden;
}

.yx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--yx-fs-sm);
}

.yx-table thead {
    background-color: var(--yx-gray-50);
}

.yx-table th {
    padding: var(--yx-space-3) var(--yx-space-4);
    font-weight: var(--yx-fw-semibold);
    font-size: var(--yx-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--yx-text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--yx-border);
    white-space: nowrap;
}

.yx-table td {
    padding: var(--yx-space-4);
    color: var(--yx-text-primary);
    border-bottom: 1px solid var(--yx-border-light);
    vertical-align: middle;
}

.yx-table tbody tr:last-child td {
    border-bottom: none;
}

.yx-table tbody tr:hover {
    background-color: var(--yx-gray-50);
}

/* ------------------------------------------------------------
   8. Navigation | 导航组件
   ------------------------------------------------------------ */

/* Top Navigation Bar */
.yx-navbar {
    background-color: var(--yx-bg-card);
    border-bottom: 1px solid var(--yx-border-light);
    box-shadow: var(--yx-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--yx-header-height);
    display: flex;
    align-items: center;
}

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

.yx-nav-brand {
    display: flex;
    align-items: center;
    font-size: var(--yx-fs-lg);
    font-weight: var(--yx-fw-bold);
    color: var(--yx-text-primary);
    text-decoration: none;
    gap: var(--yx-space-2);
}

.yx-nav-brand:hover {
    color: var(--yx-text-primary);
}

.yx-nav-menu {
    display: flex;
    align-items: center;
    gap: var(--yx-space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.yx-nav-link {
    display: flex;
    align-items: center;
    gap: var(--yx-space-2);
    padding: var(--yx-space-2) var(--yx-space-4);
    font-size: var(--yx-fs-sm);
    font-weight: var(--yx-fw-medium);
    color: var(--yx-text-secondary);
    border-radius: var(--yx-radius);
    text-decoration: none;
    transition: all var(--yx-transition-fast);
    cursor: pointer;
}

.yx-nav-link:hover {
    color: var(--yx-primary);
    background-color: var(--yx-primary-50);
}

.yx-nav-link.active {
    color: var(--yx-primary);
    background-color: var(--yx-primary-50);
}

/* Sidebar Navigation */
.yx-sidebar {
    width: var(--yx-sidebar-width);
    background-color: var(--yx-bg-card);
    border-right: 1px solid var(--yx-border-light);
    height: calc(100vh - var(--yx-header-height));
    position: fixed;
    top: var(--yx-header-height);
    left: 0;
    overflow-y: auto;
    padding: var(--yx-space-4) 0;
    z-index: 90;
}

.yx-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yx-sidebar-item {
    margin: var(--yx-space-1) 0;
}

.yx-sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--yx-space-3);
    padding: var(--yx-space-3) var(--yx-space-5);
    font-size: var(--yx-fs-sm);
    font-weight: var(--yx-fw-regular);
    color: var(--yx-text-secondary);
    text-decoration: none;
    transition: all var(--yx-transition-fast);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.yx-sidebar-link:hover {
    color: var(--yx-primary);
    background-color: var(--yx-primary-50);
}

.yx-sidebar-link.active {
    color: var(--yx-primary);
    background-color: var(--yx-primary-50);
    border-left-color: var(--yx-primary);
    font-weight: var(--yx-fw-medium);
}

.yx-sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: var(--yx-fs-base);
}

.yx-sidebar-section-title {
    padding: var(--yx-space-4) var(--yx-space-5) var(--yx-space-2);
    font-size: var(--yx-fs-xs);
    font-weight: var(--yx-fw-semibold);
    color: var(--yx-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
   9. Alerts | 提示组件
   ------------------------------------------------------------ */

.yx-alert {
    padding: var(--yx-space-4) var(--yx-space-5);
    border-radius: var(--yx-radius);
    font-size: var(--yx-fs-sm);
    border: 1px solid transparent;
    margin-bottom: var(--yx-space-4);
}

.yx-alert-primary {
    background-color: var(--yx-primary-50);
    border-color: var(--yx-primary-100);
    color: var(--yx-primary-800);
}

.yx-alert-success {
    background-color: var(--yx-success-bg);
    border-color: #c6e9d6;
    color: #1e5e3c;
}

.yx-alert-warning {
    background-color: var(--yx-warning-bg);
    border-color: #f5d98a;
    color: #7a5a00;
}

.yx-alert-danger {
    background-color: var(--yx-danger-bg);
    border-color: #f5c2c2;
    color: #8b1414;
}

/* ------------------------------------------------------------
   10. Utility Classes | 工具类
   ------------------------------------------------------------ */

/* Display */
.yx-d-flex { display: flex; }
.yx-d-block { display: block; }
.yx-d-inline { display: inline; }
.yx-d-inline-block { display: inline-block; }
.yx-d-none { display: none; }

/* Flex */
.yx-flex-col { flex-direction: column; }
.yx-flex-wrap { flex-wrap: wrap; }
.yx-items-center { align-items: center; }
.yx-items-start { align-items: flex-start; }
.yx-items-end { align-items: flex-end; }
.yx-justify-center { justify-content: center; }
.yx-justify-between { justify-content: space-between; }
.yx-justify-start { justify-content: flex-start; }
.yx-justify-end { justify-content: flex-end; }
.yx-flex-1 { flex: 1; }
.yx-gap-1 { gap: var(--yx-space-1); }
.yx-gap-2 { gap: var(--yx-space-2); }
.yx-gap-3 { gap: var(--yx-space-3); }
.yx-gap-4 { gap: var(--yx-space-4); }
.yx-gap-6 { gap: var(--yx-space-6); }

/* Text */
.yx-text-center { text-align: center; }
.yx-text-left { text-align: left; }
.yx-text-right { text-align: right; }
.yx-text-primary { color: var(--yx-primary); }
.yx-text-secondary { color: var(--yx-text-secondary); }
.yx-text-muted { color: var(--yx-text-muted); }
.yx-text-success { color: var(--yx-success); }
.yx-text-warning { color: var(--yx-warning); }
.yx-text-danger { color: var(--yx-danger); }
.yx-text-white { color: #fff; }
.yx-fw-medium { font-weight: var(--yx-fw-medium); }
.yx-fw-semibold { font-weight: var(--yx-fw-semibold); }
.yx-fw-bold { font-weight: var(--yx-fw-bold); }
.yx-fs-xs { font-size: var(--yx-fs-xs); }
.yx-fs-sm { font-size: var(--yx-fs-sm); }
.yx-fs-base { font-size: var(--yx-fs-base); }
.yx-fs-lg { font-size: var(--yx-fs-lg); }
.yx-fs-xl { font-size: var(--yx-fs-xl); }
.yx-fs-2xl { font-size: var(--yx-fs-2xl); }
.yx-fs-3xl { font-size: var(--yx-fs-3xl); }

/* Spacing - Margin */
.yx-m-0 { margin: 0; }
.yx-mt-0 { margin-top: 0; }
.yx-mt-2 { margin-top: var(--yx-space-2); }
.yx-mt-3 { margin-top: var(--yx-space-3); }
.yx-mt-4 { margin-top: var(--yx-space-4); }
.yx-mt-6 { margin-top: var(--yx-space-6); }
.yx-mb-0 { margin-bottom: 0; }
.yx-mb-2 { margin-bottom: var(--yx-space-2); }
.yx-mb-3 { margin-bottom: var(--yx-space-3); }
.yx-mb-4 { margin-bottom: var(--yx-space-4); }
.yx-mb-6 { margin-bottom: var(--yx-space-6); }
.yx-ml-auto { margin-left: auto; }
.yx-mr-auto { margin-right: auto; }
.yx-mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing - Padding */
.yx-p-0 { padding: 0; }
.yx-p-4 { padding: var(--yx-space-4); }
.yx-p-6 { padding: var(--yx-space-6); }
.yx-px-4 { padding-left: var(--yx-space-4); padding-right: var(--yx-space-4); }
.yx-px-6 { padding-left: var(--yx-space-6); padding-right: var(--yx-space-6); }
.yx-py-4 { padding-top: var(--yx-space-4); padding-bottom: var(--yx-space-4); }
.yx-py-6 { padding-top: var(--yx-space-6); padding-bottom: var(--yx-space-6); }

/* Width & Height */
.yx-w-full { width: 100%; }
.yx-w-auto { width: auto; }
.yx-h-full { height: 100%; }
.yx-min-h-0 { min-height: 0; }

/* Position */
.yx-relative { position: relative; }
.yx-absolute { position: absolute; }
.yx-fixed { position: fixed; }
.yx-sticky { position: sticky; }

/* Border */
.yx-border { border: 1px solid var(--yx-border); }
.yx-border-0 { border: 0; }
.yx-border-t { border-top: 1px solid var(--yx-border); }
.yx-border-b { border-bottom: 1px solid var(--yx-border); }
.yx-rounded { border-radius: var(--yx-radius); }
.yx-rounded-lg { border-radius: var(--yx-radius-lg); }
.yx-rounded-full { border-radius: var(--yx-radius-full); }

/* Overflow */
.yx-overflow-auto { overflow: auto; }
.yx-overflow-hidden { overflow: hidden; }
.yx-overflow-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Shadow */
.yx-shadow-sm { box-shadow: var(--yx-shadow-sm); }
.yx-shadow { box-shadow: var(--yx-shadow); }
.yx-shadow-md { box-shadow: var(--yx-shadow-md); }
.yx-shadow-lg { box-shadow: var(--yx-shadow-lg); }

/* Background */
.yx-bg-white { background-color: #fff; }
.yx-bg-body { background-color: var(--yx-bg-body); }
.yx-bg-card { background-color: var(--yx-bg-card); }
.yx-bg-muted { background-color: var(--yx-gray-50); }
.yx-bg-primary { background-color: var(--yx-primary); }
.yx-bg-primary-50 { background-color: var(--yx-primary-50); }

/* Container */
.yx-container {
    max-width: var(--yx-container-max);
    margin: 0 auto;
    padding: 0 var(--yx-space-4);
}

.yx-container-fluid {
    width: 100%;
    padding: 0 var(--yx-space-4);
}

/* Section */
.yx-section {
    padding: var(--yx-space-12) 0;
}

.yx-section-sm {
    padding: var(--yx-space-8) 0;
}

/* Section Title */
.yx-section-title {
    text-align: center;
    margin-bottom: var(--yx-space-10);
}

.yx-section-title h2 {
    font-size: var(--yx-fs-3xl);
    font-weight: var(--yx-fw-bold);
    margin-bottom: var(--yx-space-3);
    color: var(--yx-text-primary);
}

.yx-section-title p {
    font-size: var(--yx-fs-lg);
    color: var(--yx-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* Price display */
.yx-price {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    font-weight: var(--yx-fw-semibold);
}

.yx-price-lg {
    font-size: var(--yx-fs-3xl);
    font-weight: var(--yx-fw-bold);
}

.yx-price-xl {
    font-size: var(--yx-fs-4xl);
    font-weight: var(--yx-fw-bold);
}

/* Divider */
.yx-divider {
    height: 1px;
    background-color: var(--yx-border);
    margin: var(--yx-space-6) 0;
}

.yx-divider-light {
    height: 1px;
    background-color: var(--yx-border-light);
    margin: var(--yx-space-4) 0;
}

/* Truncate */
.yx-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yx-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Opacity */
.yx-opacity-50 { opacity: 0.5; }
.yx-opacity-70 { opacity: 0.7; }

/* Cursor */
.yx-cursor-pointer { cursor: pointer; }
.yx-cursor-not-allowed { cursor: not-allowed; }

/* ------------------------------------------------------------
   11. Animations | 动画
   ------------------------------------------------------------ */

@keyframes yx-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes yx-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yx-fade-in {
    animation: yx-fade-in var(--yx-transition) ease-out;
}

.yx-slide-up {
    animation: yx-slide-up var(--yx-transition) ease-out;
}
