:root {
    --amap-blue: #0091FF;
    
    /* Default Light Theme Variables */
    --bg-color: #F0F2F5;
    --text-primary: #1F2D3D;
    --text-secondary: #4E5969;
    --card-bg: #FFFFFF;
    --sidebar-bg: #FFFFFF;
    --input-bg: #FFFFFF;
    --input-border: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.1);
    --hover-bg: #F2F3F5;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --hero-text-gradient: linear-gradient(90deg, #0091FF, #0056b3);
    
    --warning-orange: #FF8F1F;
    --fluorescent-green: #28c76f;
}

[data-theme="dark"], .force-dark {
    /* Dark Theme Variables */
    --bg-color: #0A0E17;
    --text-primary: #E5EAF3;
    --text-secondary: #A0AEC0;
    --card-bg: rgba(20, 30, 40, 0.7);
    --sidebar-bg: rgba(20, 30, 40, 0.7);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(20, 30, 40, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 145, 255, 0.05) 0%, transparent 100%),
                      url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230091FF' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15z'/%3E%3Cpath d='M14 0v9.25'/%3E%3Cpath d='M28 16.75v-15'/%3E%3Cpath d='M28 31.75v15'/%3E%3Cpath d='M14 49v-9.25'/%3E%3Cpath d='M0 31.75v15'/%3E%3Cpath d='M0 16.75v-15'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: 100% 100%, 28px 49px;
    transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] body, body.force-dark {
    background-image: radial-gradient(circle at 50% 0%, #003366 0%, #001529 50%, #000000 100%),
                      url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230091FF' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15z'/%3E%3Cpath d='M14 0v9.25'/%3E%3Cpath d='M28 16.75v-15'/%3E%3Cpath d='M28 31.75v15'/%3E%3Cpath d='M14 49v-9.25'/%3E%3Cpath d='M0 31.75v15'/%3E%3Cpath d='M0 16.75v-15'/%3E%3C/g%3E%3C/svg%3E");
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--geek-dark-grey);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Links */
a {
    color: var(--amap-blue);
    text-decoration: none;
    transition: all 0.3s;
}
a:hover {
    color: #40a9ff;
    text-shadow: 0 0 8px rgba(0, 145, 255, 0.4);
}

/* Sidebar - Light Layout */
.sidebar {
    position: fixed;
    left: 15px;
    top: 15px;
    bottom: 15px;
    width: 170px;
    background: var(--sidebar-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px var(--shadow-color);
    overflow: hidden;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.sidebar-header {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
}

/* 科技风扫光动画 */
@keyframes shine-beam {
    0% { left: -150%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 150%; opacity: 0; }
}

.sidebar-title {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    overflow: hidden;
    padding: 0 10px;
    /* 重置之前的样式 */
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    font-style: normal;
    background: transparent;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    filter: none;
    transition: all 0.3s ease;
}

.sidebar-title:hover {
    color: var(--amap-blue);
    text-shadow: 0 0 15px rgba(0, 145, 255, 0.2);
}

.sidebar-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 145, 255, 0) 30%,
        rgba(0, 145, 255, 0.2) 45%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(0, 145, 255, 0.2) 55%,
        rgba(0, 145, 255, 0) 70%,
        transparent 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    filter: blur(2px);
}


.sidebar-title:hover::after {
    animation: shine-beam 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar-nav li {
    width: 100%;
    position: relative;
    margin-bottom: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 0 10px;
    border-radius: 8px;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--amap-blue);
    background: var(--hover-bg);
    border-left-color: transparent;
}

/* Sidebar Icons */
.sidebar-nav a::before {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    display: inline-block;
    opacity: 0.8;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    filter: invert(1) brightness(0.2); /* Make white icons dark */
}

[data-theme="dark"] .sidebar-nav a::before {
    filter: none;
    opacity: 1;
}

/* Active icons should be blue */
.sidebar-nav a:hover::before, .sidebar-nav a.active::before {
    filter: none; /* Reset filter */
    /* We need blue icons for active state. 
       Since original SVGs are white stroke, we can use CSS filter to make them blue.
       White (#FFF) -> Invert -> Black (#000) -> Sepia -> Hue Rotate -> Blue 
       Or simpler: just use the filter trick to colorize white SVGs to #0091FF
    */
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(190deg) brightness(100%) contrast(105%);
}

/* Job Management - Briefcase Icon */
.sidebar-nav a[href*="job_list"]::before {
    content: '';
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3e%3cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3e%3c/svg%3e");
}

/* Worker Management - Users Icon */
.sidebar-nav a[href*="worker_list"]::before {
    content: '';
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3e%3ccircle cx='9' cy='7' r='4'/%3e%3cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3e%3cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3e%3c/svg%3e");
}

/* Project Data - Chart Icon */
.sidebar-nav a[href*="project_data"]::before {
    content: '';
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M18 20V10'/%3e%3cpath d='M12 20V4'/%3e%3cpath d='M6 20v-6'/%3e%3c/svg%3e");
}

/* Operation Management - Settings/Gear Icon (simplified) */
.sidebar-nav a[href*="op_manage"]::before {
    content: '';
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'/%3E%3C/svg%3E");
}

/* Account Management - User Icon */
.sidebar-nav a[href*="account_management"]::before {
    content: '';
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3e%3ccircle cx='12' cy='7' r='4'/%3e%3c/svg%3e");
}

/* Reconciliation Settlement - Calculator Icon */
.sidebar-nav a[href*="reconciliation_settlement"]::before {
    content: '';
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='4' y='2' width='16' height='20' rx='2' ry='2'/%3e%3cline x1='8' y1='6' x2='16' y2='6'/%3e%3cline x1='16' y1='14' x2='16' y2='18'/%3e%3cpath d='M16 10h.01'/%3e%3cpath d='M12 10h.01'/%3e%3cpath d='M8 10h.01'/%3e%3cpath d='M12 14h.01'/%3e%3cpath d='M8 14h.01'/%3e%3cpath d='M12 18h.01'/%3e%3cpath d='M8 18h.01'/%3e%3c/svg%3e");
}

/* Submenu */
.submenu {
    display: block; /* Always visible as per user request */
    background: rgba(0, 0, 0, 0.03);
    margin: 5px 10px;
    padding: 5px 0;
    border-radius: 8px;
}

/* Remove hover/active dependency for visibility since it's always block now, 
   but keep these selectors if we want to add specific styles for active/hover states later */
.sidebar-nav li:hover > .submenu,
.sidebar-nav li.active > .submenu,
.submenu:hover {
    display: block;
}

/* Keep submenu open if it contains active link */
.sidebar-nav li:has(.active) > .submenu {
    display: block;
}

.submenu li a {
    padding-left: 48px; /* Indent more than parent text */
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 11px;
    color: var(--text-secondary);
    border-left: none;
    margin: 0 5px;
    justify-content: flex-start;
}

.submenu li a:hover, .submenu li a.active {
    color: var(--amap-blue);
    background: var(--hover-bg);
}

.submenu li a::before {
    display: none;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(0,0,0,0.02);
}

.sidebar-user {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
}

.sidebar-user a {
    color: var(--text-secondary) !important;
}

.sidebar-user a:hover {
    color: var(--amap-blue) !important;
}


/* Main Content */
.main-content {
    margin-left: 200px !important; /* Reduced to minimize gap with sidebar */
    padding: 10px 15px;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

.worker-list-main-content {
    margin-left: 200px !important; /* Reduced to minimize gap with sidebar */
    padding: 0 20px 20px 20px !important;
    min-height: 100vh;
    transition: margin-left 0.3s;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Main Workspace Card */
.main-content .container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 10px 15px; /* Minimized padding */
    box-shadow: 0 10px 40px var(--shadow-color);
    margin-top: 5px; /* Adjusted to 5px so total top offset (10px padding + 5px margin) = 15px, aligning with sidebar */
    margin-bottom: 10px; /* Minimized margin */
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Playground Header Effect */
.playground-header {
    position: relative;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(0, 145, 255, 0.05) 0%, rgba(0, 145, 255, 0.02) 100%);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.playground-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 45px rgba(0, 145, 255, 0.1);
}

.playground-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 145, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(40, 199, 111, 0.05) 0%, transparent 40%);
    animation: playground-pulse 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

@keyframes playground-pulse {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(5deg) scale(1.1); }
}

.playground-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playground-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playground-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playground-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.9;
    margin: 0;
}

.playground-tag {
    font-size: 10px;
    padding: 2px 8px;
    background: rgba(0, 145, 255, 0.1);
    color: var(--amap-blue);
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.playground-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.playground-actions .quick-filter-group {
    min-width: 260px;
    margin: 0 !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.layout-toolbar {
    margin-bottom: 15px;
}

/* Pricing Page Specific Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.finance-table-container {
    padding: 0 !important;
    overflow: hidden;
}

.finance-table-container .data-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: none;
}

.finance-table-container .data-table thead th {
    background: rgba(0, 145, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.finance-table-container .data-table tbody td {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.finance-table-container .data-table tbody tr:last-child td {
    border-bottom: none;
}

.finance-table-container .data-table tbody tr:hover {
    background: var(--hover-bg);
}

.job-type-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    font-weight: 500;
}

/* Settlement Page Modern UI */
.settlement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 20px;
}

.settlement-summary-card-modern {
    grid-column: 1 / -1;
    padding: 20px;
}

.summary-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(0, 145, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0, 145, 255, 0.05);
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.metric-value.currency::before {
    content: '¥';
    font-size: 14px;
    margin-right: 2px;
    font-weight: 500;
}

.settlement-detail-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header-clean {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.card-title-mini {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle-mini {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.table-responsive-clean {
    padding: 0;
    flex: 1;
}

.data-table-mini {
    width: 100%;
    border-collapse: collapse;
}

.data-table-mini thead th {
    background: rgba(0, 145, 255, 0.02);
    padding: 10px 20px;
    text-align: left;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
}

.data-table-mini tbody td {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
}

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

.data-table-mini tbody tr:hover {
    background: var(--hover-bg);
}

.settlement-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

/* Playground Modal UI */
.playground-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playground-modal.show {
    opacity: 1;
    display: flex;
}

.playground-container {
    width: 90%;
    height: 85%;
    background: var(--card-bg);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.playground-modal.show .playground-container {
    transform: translateY(0);
}

.playground-sidebar {
    width: 320px;
    background: var(--hover-bg);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.playground-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    background: var(--card-bg);
}

.playground-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.playground-title {
    font-size: 18px;
    font-weight: 600;
}

.playground-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.history-item {
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.history-item:hover {
    background: rgba(0, 145, 255, 0.05);
}

.history-item.active {
    background: rgba(0, 145, 255, 0.1);
    border-color: var(--amap-blue);
}

.history-date {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.history-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-city {
    background: rgba(0, 145, 255, 0.1);
    color: var(--amap-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.job-type-tag {
    color: var(--text-primary);
    font-weight: 500;
}

.settlement-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.settlement-badge.blue { background: rgba(0, 145, 255, 0.1); color: #0091FF; }
.settlement-badge.green { background: rgba(40, 199, 111, 0.1); color: #28c76f; }
.settlement-badge.orange { background: rgba(255, 143, 31, 0.1); color: #FF8F1F; }

.version-tag {
    font-family: monospace;
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 1px 6px;
    border-radius: 3px;
}

.btn-icon-edit {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--hover-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.btn-icon-edit:hover {
    background: var(--amap-blue);
    color: white;
    border-color: var(--amap-blue);
    transform: translateY(-1px);
}

.font-mono {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.page-title {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-shadow: none;
    margin: 0;
}

/* Capsule Search */
.search-section {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 15px;
}


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

.search-header h3 {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.search-item {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.search-item label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 10px;
}

input[type="text"], 
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="email"],
select,
textarea {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-primary) !important;
    border-radius: 20px !important; /* Capsule shape */
    padding: 5px 15px !important;
    height: 32px;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    width: 100%;
}

.date-input {
    cursor: pointer;
    position: relative;
}

textarea {
    height: auto !important;
    padding: 10px 15px !important;
    resize: vertical;
    font-family: inherit;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 20px !important;
    padding-right: 30px !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--amap-blue) !important;
    box-shadow: 0 0 10px rgba(0, 145, 255, 0.1);
    background: var(--input-bg) !important;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--amap-blue);
    color: white;
    /* box-shadow: 0 4px 15px rgba(0, 145, 255, 0.3); */
}

.btn-primary:hover {
    background: #40a9ff;
    /* box-shadow: 0 6px 20px rgba(0, 145, 255, 0.5); */
    /* transform: translateY(-2px); */
}

.date-picker-panel {
    position: absolute;
    z-index: 2100;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    padding: 8px 10px 10px;
    min-width: 220px;
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--text-primary);
}

.date-picker-nav-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}

.date-picker-nav-btn:hover {
    background: var(--hover-bg);
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    margin: 4px 0;
}

.date-picker-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.date-picker-day {
    height: 26px;
    line-height: 26px;
    text-align: center;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-primary);
}

.date-picker-day:hover {
    background: var(--hover-bg);
}

.date-picker-day--outside {
    color: var(--glass-border);
    cursor: default;
}

.date-picker-day--outside:hover {
    background: transparent;
}

.date-picker-day--selected {
    background: var(--amap-blue);
    color: #fff;
}

.date-picker-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.date-picker-footer button {
    border: none;
    background: transparent;
    font-size: 11px;
    color: var(--amap-blue);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.date-picker-footer button:hover {
    background: var(--hover-bg);
}

/* Info Cards / Data Tiles */
.info-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 145, 255, 0.03) 2px,
        rgba(0, 145, 255, 0.03) 4px
    );
    pointer-events: none;
}

.info-card-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.info-card-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--fluorescent-green);
    text-shadow: 0 0 10px rgba(40, 199, 111, 0.3);
}

/* Table */
.table-container {
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 10px;
    overflow-x: auto;
    box-shadow: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

th {
    text-align: left;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
    background: var(--input-bg);
    font-weight: 600;
}

td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 13px;
}

tr:hover td {
    background: var(--hover-bg);
}

/* Job Pin (Breath Animation) */
.job-pin {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--amap-blue);
    box-shadow: 0 0 10px var(--amap-blue);
    animation: breath 2s infinite ease-in-out;
    margin-right: 8px;
}

@keyframes breath {
    0% { transform: scale(0.8); opacity: 0.6; box-shadow: 0 0 5px var(--amap-blue); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--amap-blue); }
    100% { transform: scale(0.8); opacity: 0.6; box-shadow: 0 0 5px var(--amap-blue); }
}

/* Commute Bar */
.commute-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--fluorescent-green), var(--warning-orange), #ff4d4f);
    width: 100%;
    max-width: 100px;
    margin-top: 5px;
    opacity: 0.8;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    align-items: center;
}

.pagination a, .pagination span, .pagination button {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    font-size: 13px;
    cursor: pointer;
}

.pagination a:hover, .pagination button:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--amap-blue);
}

.pagination .active {
    background: var(--amap-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 145, 255, 0.3);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 首页/末页按钮样式 - 缩小尺寸与页码一致 */
.pagination .page-first-last {
    padding: 6px 12px;
    font-size: 13px;
    min-width: auto;
}

/* 页码按钮样式 */
.pagination .page-number {
    padding: 6px 12px;
    font-size: 13px;
    min-width: 32px;
    text-align: center;
    display: inline-block;
}

.pagination .page-number.active {
    background: var(--amap-blue);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 145, 255, 0.3);
    font-weight: 600;
    cursor: default;
}

.pagination .page-number:hover:not(.active):not([disabled]) {
    background: var(--hover-bg);
    border-color: var(--amap-blue);
    color: var(--text-primary);
}

/* 上一页/下一页按钮样式 */
.pagination .page-nav {
    padding: 6px 12px;
    font-size: 13px;
    min-width: auto;
}

/* 省略号样式 */
.pagination .page-ellipsis {
    padding: 6px 8px;
    color: var(--text-secondary);
    user-select: none;
}

/* Status Badges */
.status-active {
    color: var(--fluorescent-green);
    background: rgba(40, 199, 111, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}
.status-inactive {
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* Custom Select Styling Override */
.custom-select-container {
    position: relative;
    width: 100%;
    background: transparent !important; /* Let children handle bg */
    border-radius: 0 !important;
}

.custom-select-trigger {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 5px 30px 5px 15px; /* Added right padding for arrow */
    height: 32px;
    font-size: 13px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s;
    position: relative;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-secondary);
    pointer-events: none;
    transition: transform 0.3s;
}

.form-group.active-dropdown .custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-trigger:hover {
    border-color: var(--amap-blue);
    background: var(--input-bg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    margin-top: 5px;
    z-index: 1000;
    display: none; /* Default hidden */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.custom-select-search {
    padding: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.custom-select-search input {
    width: 100%;
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-primary) !important;
    height: 32px;
    font-size: 12px;
    padding: 5px 10px !important;
}

.custom-select-options {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.custom-select-option:hover {
    background: rgba(0, 145, 255, 0.1);
    color: var(--amap-blue);
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-tabs {
    display: inline-flex;
    align-items: stretch;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.status-tab {
    position: relative;
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}

.status-tab + .status-tab::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: var(--glass-border);
    pointer-events: none;
}

.status-tab.active {
    background: rgba(0, 145, 255, 0.12);
    color: var(--amap-blue);
    font-weight: 500;
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
}

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

/* Finance Account Page Styles */
.user-info {
    font-size: 14px;
    color: var(--text-secondary);
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.balance-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.balance-card .label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-card .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.balance-card.primary .amount { color: var(--amap-blue); }
.balance-card.success .amount { color: var(--fluorescent-green); }
.balance-card.warning .amount { color: var(--warning-orange); }

.action-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-end;
}

.flow-table-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--input-bg);
}

/* Modal Styles for Finance Page */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.sub-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 10100;
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.sub-modal.active {
    display: flex;
}

.sub-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sub-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-modal-header span {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 500px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-content-xl {
    width: 900px;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.modal-header .close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    background: var(--input-bg);
    padding: 10px;
    border-radius: 12px;
}

.balance-summary-box {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--input-bg);
    border-radius: 12px;
}

.text-amap-blue-18 { font-size: 18px; color: var(--amap-blue); }
.text-success-18 { font-size: 18px; color: var(--fluorescent-green); }
.allocation-footer { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.error-msg { color: #ff4d4f; font-size: 12px; margin-top: 5px; display: none; }

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.04);
    font-size: 12px;
    color: var(--text-secondary);
}

.filter-chip-label {
    margin-right: 4px;
}

.filter-chip-close {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    margin-left: 4px;
    cursor: pointer;
    font-size: 12px;
}
.playground-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(to right, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.playground-close {
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.playground-close:hover {
    color: #fff;
}
.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}
.history-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #252532;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.history-item:hover {
    background: #2a2a3a;
    border-color: #667eea;
}
.history-item.active {
    background: #2a2a3a;
    border-color: #764ba2;
    box-shadow: 0 0 0 1px #764ba2;
}
.history-date {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}
.history-meta {
    font-size: 12px;
    color: #a0a0b0;
    display: flex;
    justify-content: space-between;
}
.bill-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2d2d3f;
}
.bill-detail-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.detail-card {
    background: #252532;
    padding: 16px;
    border-radius: 8px;
}
.detail-label {
    font-size: 12px;
    color: #a0a0b0;
    margin-bottom: 8px;
}
.detail-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.detail-table th {
    text-align: left;
    padding: 12px;
    color: #a0a0b0;
    border-bottom: 1px solid #2d2d3f;
}
.detail-table td {
    padding: 12px;
    color: #e0e0e0;
    border-bottom: 1px solid #252532;
}
.detail-table tr:hover {
    background: #252532;
}
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #a0a0b0;
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.settlement-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: var(--text-primary);
}
.settlement-summary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.settlement-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.settlement-summary-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}
.settlement-summary-metrics {
    display: flex;
    gap: 32px;
}
.settlement-summary-metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.settlement-summary-metric-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}
.settlement-summary-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.settlement-bill-table th {
    cursor: default;
}
.settlement-period-link {
    color: #3b82f6;
    cursor: pointer;
}
.settlement-period-link:hover {
    text-decoration: underline;
}
.settlement-detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}
.settlement-detail-modal.show {
    display: flex;
}
.settlement-detail-container {
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    background: #111827;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.settlement-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.settlement-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
}
.settlement-detail-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}
.settlement-detail-close:hover {
    color: #f9fafb;
}
.settlement-detail-body {
    flex: 1;
    overflow: auto;
}

/* Utilities for inline style removal */
.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-col-start-gap10 {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.w-full {
    width: 100%;
}
.ml-12 {
    margin-left: 12px;
}

.ml-6 {
    margin-left: 6px;
}

.mx-10 {
    margin: 0 10px;
}

.text-danger {
    color: #ff4d4f;
}

.text-center {
    text-align: center;
}

.align-text-bottom {
    vertical-align: text-bottom;
}

.max-w-600 {
    max-width: 600px;
}

.input-dark {
    background: #252532;
    border: 1px solid #2d2d3f;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
}

.text-right {
    text-align: right;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-primary {
    color: var(--primary-color);
}

.underline {
    text-decoration: underline;
}

.ml-8 {
    margin-left: 8px;
}

.mt-4 {
    margin-top: 4px;
}

.mt-8 {
    margin-top: 8px;
}

.mt-12 {
    margin-top: 12px;
}

.text-gray-600 {
    color: #666;
}

.text-gray-400 {
    color: #a0a0b0;
}

.text-12 {
    font-size: 12px;
}

.text-13 {
    font-size: 13px;
}

.text-24 {
    font-size: 24px;
}

.font-600 {
    font-weight: 600;
}

.flex-gap-8 {
    display: flex;
    gap: 8px;
}

.inline-block {
    display: inline-block;
}

.px-8 {
    padding-left: 8px;
    padding-right: 8px;
}

.py-2 {
    padding-top: 2px;
    padding-bottom: 2px;
}

.py-1 {
    padding-top: 1px;
    padding-bottom: 1px;
}

.px-6 {
    padding-left: 6px;
    padding-right: 6px;
}

.rounded-4 {
    border-radius: 4px;
}

.text-purple {
    color: #667eea;
}

.text-14 {
    font-size: 14px;
}

.text-16 {
    font-size: 16px;
}

.ml-20 {
    margin-left: 20px;
}

.ml-10 {
    margin-left: 10px;
}

.mr-5 {
    margin-right: 5px;
}

.mr-2 {
    margin-right: 2px;
}

.mr-10 {
    margin-right: 10px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.pt-20 {
    padding-top: 20px;
}

.p-15 {
    padding: 15px;
}

.p-25 {
    padding: 25px;
}

.px-20 {
    padding-left: 20px;
    padding-right: 20px;
}

.w-500 {
    width: 500px;
}

.w-600 {
    width: 600px;
}

.w-0 {
    width: 0%;
}

.h-600 {
    height: 600px;
}

.d-none {
    display: none;
}

.border-top-light {
    border-top: 1px solid #eee;
}

.border-top-input {
    border-top: 1px solid var(--input-border);
}

.border-none {
    border: none;
}

.font-normal {
    font-weight: normal;
}

.font-bold {
    font-weight: bold;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.align-middle {
    vertical-align: middle;
}

.text-green {
    color: green;
}

.text-success-light {
    color: #52c41a;
}

.text-warning-light {
    color: #faad14;
}

.opacity-80 {
    opacity: 0.8;
}

.text-color-primary {
    color: var(--text-primary);
}

.text-amap-blue {
    color: var(--amap-blue);
}

.no-underline {
    text-decoration: none;
}

.divider-vertical {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.2);
    margin: 0 5px;
}

.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 990;
    transition: all 0.3s;
    color: var(--text-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.stats-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stats-value {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
}

.stats-unit {
    font-size: 14px;
    margin-left: 4px;
    color: var(--text-secondary);
    font-weight: normal;
}

/* Color variations for stats cards - using utility classes instead of nth-child for better flexibility */
.text-blue { color: #1890ff; }
.text-green-dark { color: #52c41a; }
.text-orange { color: #fa8c16; }
.text-purple-dark { color: #722ed1; }

/* Scope Toggle */
.scope-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.scope-btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
}

/* Section Styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.content-section {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

/* Common Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content-box {
    display: block;
    position: relative;
    height: auto;
    overflow: visible;
    background: var(--card-bg);
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
}
.modal-body {
    padding: 24px;
}
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 14px;
}
.form-control:focus {
    outline: none;
    border-color: var(--amap-blue);
}

/* Modal/Standalone Form Layout */
.modal-form-container {
    padding: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 0; /* Prevent flex item from overflowing */
}

.form-group.full-width {
    width: 100%;
}

.custom-select-container.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* AI Parse Area */
.ai-parse-container {
    position: relative;
}

.ai-parse-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
}

.ai-parse-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 5px 15px;
    font-size: 12px;
}

.divider-dashed {
    margin: 0 0 20px 0;
    border: 0;
    border-top: 1px dashed var(--border-color);
}

.form-section {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-section-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.w-full {
    width: 100% !important;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.btn-secondary {
    background: var(--hover-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--amap-blue);
    color: white;
    border-color: var(--amap-blue);
}
/* Utility Classes Extension for op_manage.php */
.h-500 { height: 500px; }
.w-700 { width: 700px; }
.w-80pct { width: 80%; }
.h-80pct { height: 80%; }
.h-full { height: 100%; }
.flex-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.max-w-none { max-width: none; }

.p-0 { padding: 0; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

.mb-20 { margin-bottom: 20px; }

.d-block { display: block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.gap-10 { gap: 10px; }

.border-ddd { border: 1px solid #ddd; }

.bg-gray-light { background-color: #f5f5f5; }
.overflow-auto { overflow: auto; }
.calc-height-modal { height: calc(100% - 60px); }

/* Worker List Page Styles & Components */
/* .worker-list-main-content moved to Main Content section */
.worker-list-container {
    max-width: 1600px !important;
    margin: 10px auto !important; /* Top and bottom margin 10px */
    width: 100%;
    padding: 10px 15px; /* Minimized padding */
    background: var(--card-bg) !important;
    box-shadow: 0 4px 20px var(--shadow-color) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px;
}

.modern-table-container {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    overflow-x: auto;
    border: 1px solid var(--glass-border);
}

/* Sticky Toolbar */
.layout-toolbar {
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    /* Expand to full width of the container */
    margin: 0 -15px 10px -15px; /* Minimized margin */
    /* Add padding to match container padding */
    padding: 10px 15px; /* Minimized padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
}

[data-theme="dark"] .layout-toolbar {
    background: var(--card-bg); /* Match container background */
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.toolbar-right .btn,
.toolbar-row .btn {
    height: 32px;
    line-height: 30px;
    font-size: 13px;
    padding: 0 10px;
}

.toolbar-row .btn-primary svg,
.toolbar-row .btn-success svg {
    flex-shrink: 0;
}

/* Quick Filter Group */
.quick-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 20px;
    padding: 4px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.quick-filter-group:focus-within {
    border-color: var(--amap-blue);
    box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.1);
}

.search-input-clean {
    border: none !important;
    background: transparent !important;
    padding: 0 10px !important;
    width: 180px;
    height: 32px;
    font-size: 14px;
}

.search-input-clean:focus {
    box-shadow: none !important;
}

/* Segmented Control */
.segmented-control {
    display: flex;
    background: var(--input-bg);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--input-border);
    flex-shrink: 0;
}

.segmented-btn {
    padding: 5px 15px;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.segmented-btn:hover {
    color: var(--text-primary);
}

.segmented-btn.active {
    background: var(--card-bg);
    color: var(--amap-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-weight: 600;
}

[data-theme="dark"] .segmented-btn.active {
    background: rgba(255,255,255,0.1);
}

/* Buttons */
.btn-toolbar-secondary {
    background: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
}

.btn-toolbar-secondary:hover {
    background: var(--hover-bg);
    color: var(--amap-blue);
    border-color: var(--amap-blue);
}

.btn-icon-circle {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.btn-icon-circle:hover {
    color: var(--amap-blue);
    border-color: var(--amap-blue);
    background: var(--hover-bg);
}

.filter-chips-modern {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0 20px;
}

.search-main-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-main {
    width: 100%;
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-primary) !important;
    border-radius: 20px !important;
    padding: 8px 90px 8px 15px !important;
    height: 36px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.search-input-main:focus {
    border-color: var(--amap-blue) !important;
    box-shadow: 0 0 10px rgba(0, 145, 255, 0.1);
}

.search-hint {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    pointer-events: none;
    user-select: none;
}

.btn-filter {
    padding: 8px 16px !important;
    height: 36px;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-chips {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    cursor: default;
}

.filter-chip:hover {
    border-color: var(--amap-blue);
    box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.1);
}

.filter-chip-label {
    color: var(--text-secondary);
    margin-right: 4px;
    font-weight: 500;
}

.filter-chip-value {
    font-weight: 500;
    margin-right: 8px;
    color: var(--amap-blue);
}

.filter-chip-close {
    background: rgba(0,0,0,0.05);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s;
}

.filter-chip-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .filter-chip-close {
    background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .filter-chip-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-form-input {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 8px !important;
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    height: auto !important;
}

.modal-form-input:focus {
    border-color: var(--amap-blue) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.1) !important;
}

/* Bulk Action Bar */
.bulk-action-bar {
    position: fixed;
    bottom: 30px;
    /* Center relative to the main content area (which starts at 230px) */
    /* Content width center is 230px + (100vw - 230px)/2 = 50vw + 115px */
    left: calc(50% + 115px);
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .bulk-action-bar {
    background: #fff;
    color: #000;
}

.bulk-action-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.bulk-count {
    font-weight: bold;
    font-size: 14px;
}

.bulk-actions {
    display: flex;
    gap: 10px;
}

.btn-bulk {
    background: rgba(255,255,255,0.2);
    color: inherit;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .btn-bulk {
    background: rgba(0,0,0,0.1);
}

.btn-bulk:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

[data-theme="dark"] .btn-bulk:hover {
    background: rgba(0,0,0,0.2);
}

.btn-bulk.danger {
    background: #ff4d4f;
    color: white;
}

.btn-bulk.danger:hover {
    background: #ff7875;
}

.job-info-readonly {
    background: var(--bg-color);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 14px;
}

.job-info-item {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-primary);
}

.job-info-item:last-child {
    margin-bottom: 0;
}

.job-info-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 8px;
    display: inline-block;
    min-width: 70px;
}

.job-info-value {
    color: var(--text-primary);
}

.job-desc-content {
    white-space: pre-wrap; 
    margin-top: 8px; 
    padding: 8px;
    background: var(--input-bg);
    border-radius: 4px;
    color: var(--text-secondary);
    max-height: 100px; 
    overflow-y: auto;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

[data-theme="dark"] .job-info-readonly {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .job-info-readonly strong {
    color: #ccc;
}

[data-theme="dark"] .job-info-readonly span {
    color: #fff !important;
}

[data-theme="dark"] #view_job_desc {
    color: #aaa !important;
}

/* Additional Utilities for op_manage.php */
.w-80pct { width: 80% !important; }
.h-80pct { height: 80% !important; }
.max-w-none { max-width: none !important; }
.p-0 { padding: 0 !important; }
.calc-height-modal { height: calc(100% - 60px) !important; }
.bg-gray-light { background-color: #f3f4f6 !important; }
.h-full { height: 100% !important; }
.object-contain { object-fit: contain !important; }
.max-h-full { max-height: 100% !important; }
.max-w-full { max-width: 100% !important; }
.border-none { border: none !important; }
.gap-10 { gap: 10px !important; }
.h-500 { height: 500px !important; }
.w-700 { width: 700px !important; }
.flex-1 { flex: 1 !important; }
.justify-center { justify-content: center !important; }
.items-center { align-items: center !important; }
.overflow-auto { overflow: auto !important; }

/* Finance Account Page Extensions */
.balance-summary-box {
    background: var(--hover-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.text-amap-blue-18 {
    color: var(--amap-blue);
    font-size: 18px;
    font-weight: 600;
}

.text-success-18 {
    color: var(--fluorescent-green);
    font-size: 18px;
    font-weight: 600;
}

.text-success-color {
    color: var(--fluorescent-green);
}

.modal-content-xl {
    width: 800px;
    max-width: 95%;
}

.alloc-input-cash, .alloc-input-gift {
    width: 100px;
    padding: 4px 8px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-primary);
}

/* Job List Specific Styles (Migrated) */

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}
.status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}
.status-hiring { background: rgba(82, 196, 26, 0.1); color: #52c41a; }
.status-stopped { background: rgba(0, 0, 0, 0.05); color: #999; }
.status-expired { background: rgba(255, 77, 79, 0.1); color: #ff4d4f; }
.status-rejected { background: rgba(255, 77, 79, 0.1); color: #ff4d4f; }

/* Pending Badge (AI unconfirmed) */
.badge-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(250, 173, 20, 0.1);
    color: #faad14;
    border: 1px solid rgba(250, 173, 20, 0.2);
    margin-left: 5px;
    vertical-align: middle;
}
.badge-pending::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
}

/* Badge Pill (Playground Design) */
.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 6px;
    vertical-align: middle;
    height: 22px;
    line-height: 1;
}

.badge-pill:hover {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

/* Row Styles */
.row-pending td {
    background-color: rgba(250, 173, 20, 0.02);
}
.row-pending:hover td {
    background-color: rgba(250, 173, 20, 0.05) !important;
}
[data-theme="dark"] .row-pending td {
    background-color: rgba(250, 173, 20, 0.05);
}

/* Upload Area Styling */
.upload-area {
    border: 2px dashed var(--input-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: var(--bg-color);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.upload-area:hover {
    border-color: var(--amap-blue);
    background: var(--hover-bg);
}
.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}
.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    stroke-width: 1.5;
}
.upload-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}
.upload-hint {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

/* Modal Form Styles */
.modal-form-group {
    margin-bottom: 20px;
}
.modal-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

/* Grid Layout for Forms */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--amap-blue);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Import Job Progress Bar */
.progress-container {
    margin: 20px 0;
}
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--input-bg);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--amap-blue));
    border-radius: 10px;
    width: 0%;
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}
.progress-text {
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    margin: 5px 0;
}
.hidden {
    display: none;
}

/* Action Icons */
.action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    margin-right: 5px;
}
.action-icon-btn:hover {
    background: var(--hover-bg);
    color: var(--amap-blue);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
[data-theme="dark"] .loading-overlay {
    background: rgba(0, 0, 0, 0.7);
}
.loading-spinner-lg {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 145, 255, 0.3);
    border-top: 3px solid #0091FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes for Modals (Added for worker_list.php) */
.w-400 { width: 400px !important; }
.w-100pct { width: 100% !important; }
.p-20 { padding: 20px !important; }
.text-center { text-align: center !important; }
.gap-20 { gap: 20px !important; }
.min-w-100 { min-width: 100px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.h-120 { height: 120px !important; }
.h-600 { height: 600px !important; }
.font-16 { font-size: 16px !important; }
.modal-footer-custom { padding: 15px; text-align: right; border-top: 1px solid #eee; }
.modal-title-id { font-size: 14px; color: #666; font-weight: normal; }

/* Modal & Form Utilities */
.p-20 { padding: 20px !important; }
.p-15 { padding: 15px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.w-full { width: 100% !important; }
.h-120 { height: 120px !important; }
.h-600 { height: 600px !important; }
.w-400 { width: 400px !important; }
.min-w-100 { min-width: 100px !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.border-t-eee { border-top: 1px solid #eee !important; }
[data-theme="dark"] .border-t-eee { border-top: 1px solid #444 !important; }
.fs-14 { font-size: 14px !important; }
.fs-16 { font-size: 16px !important; }
.fw-normal { font-weight: normal !important; }
.text-gray-666 { color: #666 !important; }
[data-theme="dark"] .text-gray-666 { color: #aaa !important; }

/* Utility Classes for Worker List Modals */
.w-500 { width: 500px !important; }
.w-600 { width: 600px !important; }
.w-800 { width: 800px !important; }
.w-980 { width: 980px !important; }
.w-1000 { width: 1000px !important; }
.w-1200 { width: 1200px !important; }
.w-1600 { width: 1600px !important; }
.w-36 { width: 36px !important; }
.mr-10 { margin-right: 10px !important; }
.mr-15 { margin-right: 15px !important; }
.text-secondary-color { color: #999 !important; }
.italic { font-style: italic !important; }
.link-download { display: inline-block; margin-bottom: 15px; color: #1890ff; text-decoration: underline; }
.label-block { display: block; margin-bottom: 10px; }
.input-file-custom { padding: 10px; border: 1px solid #ddd; width: 100%; }
.text-hint { color: #666; font-size: 12px; margin-top: 5px; }
.badge-push { display: inline-block; font-size: 10px; background-color: #FF4D4F; color: white; padding: 1px 4px; border-radius: 3px; margin-left: 5px; vertical-align: middle; line-height: 1.2; }
.badge-lead { display: inline-block; font-size: 10px; background-color: #1890FF; color: white; padding: 1px 4px; border-radius: 3px; margin-left: 5px; vertical-align: middle; line-height: 1.2; }
.badge-job-delivery { display: inline-block; font-size: 10px; background-color: #722ed1; color: white; padding: 2px 6px; border-radius: 4px; margin-left: 5px; vertical-align: middle; line-height: 1.2; font-weight: 500; }
.border-none { border: none !important; }
.modal-content-lg { width: 800px; max-width: 90%; }
.hidden { display: none !important; }

/* Dark mode adjustments for new utilities */
[data-theme="dark"] .input-file-custom { border-color: #444; background-color: #2c2c2c; color: #eee; }
[data-theme="dark"] .text-secondary-color { color: #888 !important; }
[data-theme="dark"] .text-hint { color: #888; }

/* Theme Switch Pill - 交付方式筛选 */
.theme-switch-pill-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-switch-pill {
    display: flex;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px;
    position: relative;
    gap: 4px;
}

.theme-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    white-space: nowrap;
    font-weight: 500;
}

.theme-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 145, 255, 0.08);
}

.theme-btn.active {
    background: var(--amap-blue);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 145, 255, 0.3);
    font-weight: 600;
}

[data-theme="dark"] .theme-btn.active {
    color: #fff !important;
}

/* Missing Table Action Button Styles */
.action-btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon:hover {
    background: var(--hover-bg);
    color: var(--amap-blue);
    transform: translateY(-1px);
}

.btn-icon.danger:hover {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
}
.gap-20 { gap: 20px !important; }
.text-red-error { color: red !important; font-size: 14px; margin-left: 20px; }
.mr-5 { margin-right: 5px !important; }
.ml-10 { margin-left: 10px !important; }
.ml-20 { margin-left: 20px !important; }
.flex { display: flex !important; }

.flex-1 { flex: 1 !important; }

.text-green-success { color: #52c41a !important; }
.text-orange-warning { color: #faad14 !important; }
.divider-vertical { width: 1px; height: 16px; background: rgba(255,255,255,0.2); margin: 0 5px; }
.opacity-80 { opacity: 0.8 !important; }
.vertical-middle { vertical-align: middle !important; }
.w-50 { width: 50px !important; }

.text-red { color: red !important; }

/* Sidebar Utilities */
.sidebar-icon { width: 16px; height: 16px; margin-right: 6px; fill: currentColor; vertical-align: middle; }
.sidebar-padding { padding: 10px 15px; }
.product-guide-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 0;
    border-radius: 8px;
    transition: all 0.3s;
}
.product-guide-link.active {
    color: var(--amap-blue);
    background: rgba(0, 145, 255, 0.05);
}
.sidebar-user-name { margin-bottom: 5px; font-weight: 600; color: var(--text-primary); }
.sidebar-user-links { font-size: 12px; }
.sidebar-link-account { color: var(--amap-blue); text-decoration: none; font-weight: bold; }
.sidebar-link-account.active { text-decoration: underline; }
.sidebar-divider { color: var(--glass-border); margin: 0 5px; }
.sidebar-link-logout { color: var(--text-secondary); text-decoration: none; }

/* Finance Recharge Utilities */
.finance-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.finance-form-group {
    margin-bottom: 24px;
}
.finance-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.finance-form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}
.finance-amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}
.finance-amount-option {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.finance-amount-option.active {
    border-color: var(--amap-blue);
    background-color: rgba(0, 145, 255, 0.05);
    color: var(--amap-blue);
    font-weight: 600;
}
.finance-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--amap-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.finance-submit-btn:hover {
    opacity: 0.9;
}
.finance-bank-info {
    display: none;
    background: var(--bg-color);
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}
.finance-bank-info p {
    margin: 8px 0;
    color: var(--text-primary);
}
.finance-bank-info-note {
    margin: 8px 0 0 0 !important;
    font-size: 12px;
    color: var(--text-secondary) !important;
}

/* WeChat Pay Modal Utilities */
.wechat-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.wechat-modal-content {
    width: 360px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.wechat-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.wechat-qr-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.wechat-qr-box img {
    width: 200px;
    height: 200px;
}
.wechat-modal-tip {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.wechat-modal-actions {
    display: flex;
    gap: 12px;
}
.wechat-modal-actions .btn {
    flex: 1;
}

/* =========================================
   Modal & Form Styles (Migrated from finance_pricing_rules.php)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 10000; /* Ensure on top of sidebar */
    justify-content: center;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative; /* Ensure proper stacking context */
    margin: auto; /* Fallback for centering */
}

.modal-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-footer {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background: var(--input-bg);
    color: var(--text-primary);
}

/* Finance Specific Styles */
.finance-table-container {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    margin-top: 20px;
}

.job-type-selector {
    border: 1px solid var(--input-border);
    border-radius: 4px;
    padding: 8px;
    background: var(--input-bg);
}

.job-type-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.job-type-filters .form-input {
    flex: 1;
}

.job-type-level3-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background: var(--card-bg);
    padding: 6px 8px;
    font-size: 13px;
}

.job-type-level3-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    color: var(--text-primary);
}

.job-type-summary {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.advanced-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.advanced-summary {
    font-size: 12px;
    color: var(--text-secondary);
}

.sub-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 10100;
    display: none;
    justify-content: center;
    align-items: center;
}

.sub-modal.active {
    display: flex;
}

.sub-modal-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    width: 520px;
    max-width: 95%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.sub-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.sub-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.segment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 12px;
}

.segment-table th,
.segment-table td {
    border: 1px solid var(--glass-border);
    padding: 6px 8px;
    text-align: left;
    color: var(--text-primary);
}

.segment-table input {
    width: 100%;
    box-sizing: border-box;
    background: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    padding: 4px;
    border-radius: 4px;
}

/* Helper Classes */
.modal-action-bar {
    margin-bottom: 12px;
}

.empty-message {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Login Page Styles */
.login-container {
    max-width: 450px;
    margin: 100px auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--amap-blue);
    text-shadow: none;
}

.login-form {
    margin-bottom: 20px;
}

.login-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.login-buttons .btn {
    flex: 1;
    height: 48px;
    font-size: 16px;
    border-radius: 8px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    cursor: pointer;
}

.login-links a:hover {
    text-decoration: underline;
}

.checkbox-group {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--amap-blue);
}

.checkbox-group a {
    color: var(--amap-blue);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Import Job Styles */
.import-container {
    max-width: 600px;
    margin: 50px auto;
}

.upload-area {
    min-height: 200px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--input-bg);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--amap-blue);
    background: var(--hover-bg);
}

.upload-area.selected {
    border-color: var(--amap-blue);
    background: rgba(0, 145, 255, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 10px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.btn-lg {
    padding: 12px 40px;
}

.bg-transparent {
    background: transparent !important;
}

.p-0 {
    padding: 0 !important;
}

/* Account Management Styles */
.account-details-grid {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 16px;
    font-size: 13px;
}

.account-detail-row {
    display: flex;
    align-items: center;
}

.account-detail-label {
    width: 120px;
    color: var(--text-secondary);
    font-weight: 500;
}

.account-detail-value {
    flex: 1;
    color: var(--text-primary);
}

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

.account-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.account-list-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
}

/* Generic Utilities */
.text-green {
    color: #52c41a !important;
}

.ml-5 {
    margin-left: 5px !important;
}

.ml-15 {
    margin-left: 15px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.flex-center-v {
    display: flex;
    align-items: center;
}

.modal-body-padding {
    padding: 20px !important;
}

.modal-footer {
    text-align: right;
    margin-top: 20px;
}

.input-disabled {
    background-color: var(--hover-bg) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Business Display Page Styles */
.business-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 8px 32px;
}

/* Hero Section */
.business-hero-section {
    background: linear-gradient(135deg, var(--amap-blue) 0%, #0062cc 100%);
    border-radius: 16px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 145, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.business-hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 20% 30%, white 0%, transparent 10%), 
                      radial-gradient(circle at 80% 70%, white 0%, transparent 10%);
    background-size: 100px 100px;
}

.business-hero-content {
    position: relative;
    z-index: 1;
}

.business-hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    color: white; /* Ensure text is white on hero background */
}

.business-hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: white; /* Ensure text is white */
}

.business-hero-btn {
    display: inline-block;
    background: white;
    color: var(--amap-blue);
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.business-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    color: var(--amap-blue);
}

/* Section Title */
.business-section-header {
    text-align: center;
    margin-bottom: 30px;
}
.business-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.business-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--amap-blue);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Stats Grid */
.business-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.business-stat-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.3s;
}

.business-stat-card:hover {
    transform: translateY(-5px);
}

.business-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--amap-blue);
    margin-bottom: 8px;
    font-family: 'Arial', sans-serif;
}

.business-stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Features Grid */
.business-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.business-feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.business-feature-card:hover {
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--amap-blue);
}

.business-feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 145, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.business-feature-icon {
    font-size: 28px;
    color: var(--amap-blue);
}

.business-feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.business-feature-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Cooperation Models */
.business-coop-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    margin-bottom: 50px;
}

.business-coop-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.business-coop-item {
    display: flex;
    align-items: flex-start;
}

.business-coop-number {
    font-size: 48px;
    font-weight: 900;
    color: rgba(0, 145, 255, 0.1);
    line-height: 1;
    margin-right: 15px;
    font-family: 'Arial', sans-serif;
}

.business-coop-content h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.business-coop-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Customer cases（招商页 · 高视觉 / 截图 PDF 友好） */
.business-cases-showcase {
    position: relative;
    margin: 40px -12px 48px;
    padding: 40px 24px 48px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: linear-gradient(165deg,
        rgba(0, 145, 255, 0.08) 0%,
        rgba(124, 58, 237, 0.06) 35%,
        rgba(16, 185, 129, 0.05) 100%);
    box-shadow: 0 20px 60px rgba(0, 80, 180, 0.12);
}

[data-theme="dark"] .business-cases-showcase {
    background: linear-gradient(165deg,
        rgba(0, 145, 255, 0.12) 0%,
        rgba(124, 58, 237, 0.1) 45%,
        rgba(16, 185, 129, 0.08) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.business-cases-showcase-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
        radial-gradient(circle at 88% 75%, rgba(0, 145, 255, 0.15) 0%, transparent 45%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 12px,
            rgba(255, 255, 255, 0.04) 12px,
            rgba(255, 255, 255, 0.04) 13px
        );
    opacity: 0.9;
}

[data-theme="dark"] .business-cases-showcase-bg {
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 145, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.12) 0%, transparent 50%);
}

.business-cases-showcase-inner {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
}

.business-cases-head {
    margin-bottom: 22px;
}

.business-cases-title-xl {
    font-size: 28px !important;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, var(--text-primary), var(--amap-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

[data-theme="dark"] .business-cases-title-xl {
    background: linear-gradient(90deg, #f1f5f9, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.business-cases-intro {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto 32px;
    padding: 18px 22px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(0, 145, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 60, 120, 0.08);
}

[data-theme="dark"] .business-cases-intro {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(96, 165, 250, 0.25);
}

.business-cases-intro-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
    color: var(--amap-blue);
    background: linear-gradient(135deg, rgba(0, 145, 255, 0.2), rgba(124, 58, 237, 0.15));
}

.business-cases-intro-text {
    margin: 0;
}

.business-cases-intro strong {
    color: var(--text-primary);
}

.business-case-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 单张案例卡 */
.business-case-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(0, 145, 255, 0.14);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 60, 140, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

[data-theme="dark"] .business-case-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.business-case-card--glow::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 55%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 145, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.business-case-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    z-index: 2;
}

.business-case-card--theme-violet .business-case-card-accent {
    background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899);
}

.business-case-card--theme-cyan .business-case-card-accent {
    background: linear-gradient(90deg, #0891b2, #06b6d4, #14b8a6);
}

.business-case-card--theme-amber .business-case-card-accent {
    background: linear-gradient(90deg, #d97706, #f59e0b, #eab308);
}

.business-case-card--theme-green .business-case-card-accent {
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.business-case-card-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px 16px;
}

.business-case-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.business-case-avatar--alt {
    background: linear-gradient(135deg, #0891b2, #2563eb);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.35);
}

.business-case-avatar--alt2 {
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

.business-case-avatar--wide {
    background: linear-gradient(135deg, #059669, #0d9488);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.business-case-card-header {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: none;
}

.business-case-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
}

.business-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.business-case-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 145, 255, 0.12), rgba(124, 58, 237, 0.1));
    color: var(--amap-blue);
    border: 1px solid rgba(0, 145, 255, 0.2);
}

[data-theme="dark"] .business-case-tag {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(167, 139, 250, 0.12));
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.25);
}

.business-case-main-grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 24px;
    padding: 0 28px 28px;
    align-items: start;
}

.business-case-visual {
    padding: 16px;
    border-radius: 16px;
    background: rgba(0, 145, 255, 0.04);
    border: 1px solid rgba(0, 145, 255, 0.1);
}

[data-theme="dark"] .business-case-visual {
    background: rgba(0, 145, 255, 0.08);
}

/* 漏斗条 */
.business-case-funnel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.business-funnel-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 10px;
}

.business-funnel-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.business-funnel-track {
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .business-funnel-track {
    background: rgba(255, 255, 255, 0.06);
}

.business-funnel-fill {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px;
    height: 100%;
    min-width: 3.2rem;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    transition: width 0.6s ease;
}

.business-funnel-fill--a {
    background: linear-gradient(90deg, #2563eb, #6366f1);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.business-funnel-fill--b {
    background: linear-gradient(90deg, #0891b2, #06b6d4);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.business-funnel-fill--c {
    background: linear-gradient(90deg, #059669, #10b981);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.business-funnel-caption {
    margin: 12px 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--text-secondary);
}

.business-funnel-caption strong {
    color: var(--amap-blue);
    font-size: 15px;
}

.business-case-metrics--compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.business-case-metrics--compact .business-case-metric {
    padding: 10px 8px;
}

.business-case-metrics--compact .business-case-metric-value {
    font-size: 18px;
}

.business-case-metric {
    text-align: center;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 145, 255, 0.12);
}

[data-theme="dark"] .business-case-metric {
    background: rgba(15, 23, 42, 0.6);
}

.business-case-metric-value {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(180deg, var(--text-primary), var(--amap-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .business-case-metric-value {
    background: linear-gradient(180deg, #f8fafc, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.business-case-metric-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 600;
}

.business-case-metric-sub {
    font-size: 11px;
    color: var(--text-hint, #888);
    margin-top: 6px;
}

.business-case-body {
    font-size: 14px;
    line-height: 1.78;
    color: var(--text-secondary);
    padding: 4px 0 0;
}

.business-case-body--solo {
    padding: 0 28px 28px;
}

.business-case-card--wide .business-case-body--solo {
    padding-top: 0;
}

.business-case-body p {
    margin: 0 0 14px;
}

.business-case-body p:last-child {
    margin-bottom: 0;
}

.business-case-body h4 {
    margin: 18px 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-case-body h4::before {
    content: '';
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--amap-blue), #a855f7);
}

.business-case-body ul {
    margin: 0 0 14px;
    padding-left: 0;
    list-style: none;
}

.business-case-body li {
    margin: 10px 0;
    padding-left: 22px;
    position: relative;
}

.business-case-body li::before {
    content: '◆';
    position: absolute;
    left: 0;
    font-size: 8px;
    color: var(--amap-blue);
    top: 0.45em;
}

.business-case-highlight {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(0, 145, 255, 0.1), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(0, 145, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 100, 200, 0.08);
}

[data-theme="dark"] .business-case-highlight {
    background: linear-gradient(135deg, rgba(0, 145, 255, 0.15), rgba(124, 58, 237, 0.12));
}

/* 骑手案例：流程带 */
.business-case-process-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    margin: 0 28px 20px;
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px dashed rgba(5, 150, 105, 0.35);
}

.business-process-step {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.business-process-ico {
    color: #059669;
    margin-right: 4px;
}

.business-process-arrow {
    color: var(--text-hint);
    font-weight: 700;
    opacity: 0.7;
}

.business-cases-footnote {
    margin-top: 28px;
    padding: 14px 18px;
    font-size: 11px;
    line-height: 1.65;
    color: var(--text-hint, #888);
    text-align: center;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .business-cases-footnote {
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
    .business-case-main-grid {
        grid-template-columns: 1fr;
    }
    .business-cases-showcase {
        margin-left: 0;
        margin-right: 0;
        padding: 28px 16px 36px;
    }
}

@media (max-width: 640px) {
    .business-case-card-top {
        flex-direction: column;
    }
    .business-case-metrics--compact {
        grid-template-columns: 1fr;
    }
}

/* 打印 / 导出 PDF：保留色块与背景 */
@media print {
    .page-business-display .sidebar {
        display: none !important;
    }
    .page-business-display .main-content {
        margin-left: 0 !important;
        padding: 16px !important;
    }
    .business-cases-showcase,
    .business-case-card,
    .business-cases-intro,
    .business-funnel-fill,
    .business-case-highlight {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .business-cases-showcase {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .business-case-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* CTA Section */
.business-cta-section {
    text-align: center;
    padding: 50px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.business-cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.business-cta-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.business-contact-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.business-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.business-contact-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--amap-blue);
}

.business-contact-text {
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .business-stats-grid, .business-features-grid, .business-coop-list {
        grid-template-columns: 1fr;
    }
    .business-contact-grid {
        flex-direction: column;
        gap: 20px;
    }
    .business-case-card {
        padding: 20px 18px;
    }
}

/* Index Page Styles */
.index-body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 145, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(40, 199, 111, 0.05) 0%, transparent 40%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    color: var(--text-primary);
}

/* Dynamic Particles */
.index-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.index-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 145, 255, 0.3);
    border-radius: 50%;
    animation: index-float 15s infinite;
    box-shadow: 0 0 10px rgba(0, 145, 255, 0.5);
}

@keyframes index-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Hero Container */
.index-hero-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px 40px;
    color: white;
}

/* Hero Title */
.index-hero-title {
    text-align: center;
    margin-bottom: 20px;
    animation: index-fadeInUp 1s ease-out;
}

.index-hero-title h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 145, 255, 0.5);
    background: linear-gradient(90deg, #fff, #b4e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.index-hero-title .subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 10px;
}

/* Features Section */
.index-features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 30px 0 20px;
    animation: index-fadeInUp 1s ease-out 0.3s both;
}

.index-feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.index-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 145, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.index-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 145, 255, 0.3);
}

.index-feature-card:hover::before {
    opacity: 1;
}

.index-feature-icon {
    font-size: 48px;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 145, 255, 0.3));
    transition: transform 0.3s ease;
}

.index-feature-card:hover .index-feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 145, 255, 0.5));
}

.index-feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.index-feature-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Login Section */
.index-login-section {
    text-align: center;
    margin-top: 20px;
    animation: index-fadeInUp 1s ease-out 0.6s both;
}

.index-login-btn {
    display: inline-block;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 600;
    background: var(--amap-blue);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 145, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.index-login-btn:hover {
    background: #40a9ff;
    box-shadow: 0 0 30px rgba(0, 145, 255, 0.6);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.index-login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.index-login-btn:hover::before {
    width: 300px;
    height: 300px;
}

.index-login-btn span {
    position: relative;
    z-index: 1;
}

.index-login-hint {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Intro Section */
.index-intro-section {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    animation: index-fadeInUp 1s ease-out 0.2s both;
}

.index-intro-section p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

/* Animations */
@keyframes index-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tech Lines */
.index-tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
}

.index-tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    height: 1px;
    animation: index-lineMove 20s infinite;
}

@keyframes index-lineMove {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100vw);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .index-hero-title h1 {
        font-size: 36px;
    }

    .index-hero-title .subtitle {
        font-size: 18px;
    }

    .index-features-section {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0 15px;
    }

    .index-feature-card {
        padding: 30px 20px;
    }

    .index-feature-icon {
        font-size: 48px;
    }

    .index-login-btn {
        padding: 15px 40px;
        font-size: 18px;
    }
}

/* Op Online Page Styles */
.op-online-search-main-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.op-online-search-input-wrapper {
    position: relative;
    flex: 1;
}

.op-online-search-input-main {
    width: 100%;
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-primary) !important;
    border-radius: 20px !important;
    padding: 8px 90px 8px 15px !important;
    height: 36px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.op-online-search-input-main:focus {
    border-color: var(--amap-blue) !important;
    box-shadow: 0 0 10px rgba(0, 145, 255, 0.1);
}

.op-online-search-hint {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    pointer-events: none;
    user-select: none;
    display: none;
}

.op-online-btn-filter {
    padding: 8px 16px !important;
    height: 36px;
    white-space: nowrap;
    flex-shrink: 0;
}

.op-online-filter-chips {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.op-online-filter-chip {
    display: inline-flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    cursor: default;
}

.op-online-filter-chip:hover {
    border-color: var(--amap-blue);
    box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.1);
}

.op-online-filter-chip-label {
    color: var(--text-secondary);
    margin-right: 4px;
    font-weight: 500;
}

.op-online-filter-chip-value {
    font-weight: 500;
    margin-right: 8px;
    color: var(--amap-blue);
}

.op-online-filter-chip-close {
    background: rgba(0,0,0,0.05);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s;
}

.op-online-filter-chip-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .op-online-filter-chip-close {
    background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .op-online-filter-chip-close:hover {
    background: rgba(255,255,255,0.2);
}

.op-online-modal-form-input {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 8px !important;
    background: var(--input-bg) !important;
    color: var(--text-primary) !important;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    height: auto !important; /* Override 32px height from common.css */
}

.op-online-modal-form-input:focus {
    border-color: var(--amap-blue) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 145, 255, 0.1) !important;
}

/* Modal Content specific styles */
.op-online-modal-content {
    width: 500px;
}

.op-online-modal-body {
    padding: 20px;
}

.op-online-modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #eee;
}

.op-online-filter-select {
    width: 100%;
    margin-bottom: 15px;
}

.op-online-filter-value-group {
    display: none;
}

/* Job Modal specific styles */
.op-online-job-modal-id {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.op-online-job-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Project Data Dashboard Styles */
:root {
    --project-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --project-card-radius: 12px;
}

.project-chart-container {
    background: var(--card-bg);
    border-radius: var(--project-card-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--project-card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-chart-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.project-chart-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.project-chart-col {
    flex: 1;
    min-width: 0;
}

.project-chart-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.project-chart-box {
    width: 100%;
    height: 400px;
}

.project-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.project-stat-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--project-card-radius);
    box-shadow: var(--project-card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1));
    pointer-events: none;
}

.project-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 8px 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.project-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-stat-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.project-trend-up { color: #10B981; }
.project-trend-down { color: #EF4444; }

.project-playground-controls {
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    align-items: flex-end; 
    padding: 20px; 
    background: var(--bg-color); 
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    margin-bottom: 20px;
}

/* 客资趋势 · 分组值弹层（随主题色，避免黑夜模式白底+浅色字） */
.project-leads-group-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-color);
    color: var(--text-primary);
}
.project-leads-group-title {
    min-width: 90px;
    font-weight: 600;
    color: var(--text-primary);
}
.project-leads-group-search {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}
.project-leads-group-panel {
    margin-top: 8px;
    max-height: 230px;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
}
.project-leads-group-summary {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.project-leads-group-option {
    margin: 4px 0;
}
.project-leads-group-panel label {
    color: var(--text-primary);
}
.project-leads-group-panel label span {
    color: var(--text-primary);
}
[data-theme="dark"] .project-leads-group-panel input[type="checkbox"] {
    accent-color: var(--amap-blue);
}

/* Product Guide Styles */
.guide-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-hero {
    background: linear-gradient(135deg, rgba(0, 145, 255, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.guide-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 145, 255, 0.05) 0%, transparent 60%);
    animation: guide-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes guide-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.guide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--hero-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.guide-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

.guide-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.guide-module-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 145, 255, 0.15);
    border-color: rgba(0, 145, 255, 0.3);
}

.guide-module-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--amap-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.guide-module-card:hover::after {
    transform: scaleX(1);
}

.guide-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 145, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--amap-blue);
    font-size: 32px; /* Fallback */
    transition: all 0.3s ease;
}

.guide-card-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.guide-module-card:hover .guide-card-icon {
    background: var(--amap-blue);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.guide-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.guide-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.guide-card-actions {
    display: flex;
    gap: 12px;
}

.guide-btn-card {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.guide-btn-primary {
    background: var(--amap-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 145, 255, 0.3);
}

.guide-btn-primary:hover {
    background: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 145, 255, 0.4);
    color: white;
}

.guide-btn-secondary {
    background: var(--hover-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.guide-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--amap-blue);
}

/* Modal for Details */
.guide-doc-content {
    padding: 10px;
    line-height: 1.8;
    color: var(--text-primary);
}

.guide-doc-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    border-left: 4px solid var(--amap-blue);
    padding-left: 10px;
}

.guide-doc-content ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.guide-doc-content li {
    margin-bottom: 8px;
}

.guide-doc-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.guide-example-box {
    background: rgba(0, 145, 255, 0.05);
    border: 1px dashed var(--amap-blue);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.guide-example-title {
    color: var(--amap-blue);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.guide-example-title::before {
    content: '💡';
    margin-right: 8px;
}

/* Process Section */
.guide-process-section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.guide-process-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.guide-process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

.guide-process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

[data-theme="dark"] .guide-process-steps::before {
    background: rgba(255, 255, 255, 0.15);
}

.guide-process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
}

.guide-step-icon-box {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid var(--amap-blue);
    box-shadow: 0 4px 10px rgba(0, 145, 255, 0.1);
    color: var(--amap-blue);
    transition: all 0.3s ease;
}

.guide-process-step:hover .guide-step-icon-box {
    transform: scale(1.1);
    background: var(--amap-blue);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 145, 255, 0.3);
}

.guide-step-icon-box svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.guide-step-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.guide-step-info p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 140px;
}

.guide-step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--amap-blue);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .guide-modules-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .guide-process-steps::before {
        display: none;
    }
    
    .guide-process-step {
        flex-direction: row;
        text-align: left;
        padding-left: 20px;
    }
    
    .guide-step-icon-box {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .guide-step-info p {
        max-width: none;
    }
}

/* Product Guide Styles */
.guide-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-hero {
    background: linear-gradient(135deg, rgba(0, 145, 255, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.guide-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 145, 255, 0.05) 0%, transparent 60%);
    animation: guide-rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes guide-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.guide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--hero-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.guide-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

.guide-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.guide-module-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 145, 255, 0.15);
    border-color: rgba(0, 145, 255, 0.3);
}

.guide-module-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--amap-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.guide-module-card:hover::after {
    transform: scaleX(1);
}

.guide-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 145, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--amap-blue);
    font-size: 32px; /* Fallback */
    transition: all 0.3s ease;
}

.guide-card-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.guide-module-card:hover .guide-card-icon {
    background: var(--amap-blue);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.guide-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.guide-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.guide-card-actions {
    display: flex;
    gap: 12px;
}

.guide-btn-card {
    flex: 1;
    padding: 10px 0;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.guide-btn-primary-card {
    background: var(--amap-blue);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 145, 255, 0.3);
}

.guide-btn-primary-card:hover {
    background: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 145, 255, 0.4);
    color: white;
}

.guide-btn-secondary-card {
    background: var(--hover-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.guide-btn-secondary-card:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--amap-blue);
}

/* Modal for Details */
.guide-doc-content {
    padding: 10px;
    line-height: 1.8;
    color: var(--text-primary);
}

.guide-doc-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
    border-left: 4px solid var(--amap-blue);
    padding-left: 10px;
}

.guide-doc-content ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.guide-doc-content li {
    margin-bottom: 8px;
}

.guide-doc-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.guide-example-box {
    background: rgba(0, 145, 255, 0.05);
    border: 1px dashed var(--amap-blue);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.guide-example-title {
    color: var(--amap-blue);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.guide-example-title::before {
    content: '💡';
    margin-right: 8px;
}

/* Process Section */
.guide-process-section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.guide-process-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.guide-process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

.guide-process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

[data-theme="dark"] .guide-process-steps::before {
    background: rgba(255, 255, 255, 0.15);
}

.guide-process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
}

.guide-step-icon-box {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid var(--amap-blue);
    box-shadow: 0 4px 10px rgba(0, 145, 255, 0.1);
    color: var(--amap-blue);
    transition: all 0.3s ease;
}

.guide-process-step:hover .guide-step-icon-box {
    transform: scale(1.1);
    background: var(--amap-blue);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 145, 255, 0.3);
}

.guide-step-icon-box svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

.guide-step-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.guide-step-info p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 140px;
}

.guide-step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--amap-blue);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .guide-modules-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-process-steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .guide-process-steps::before {
        display: none;
    }
    
    .guide-process-step {
        flex-direction: row;
        text-align: left;
        padding-left: 20px;
    }
    
    .guide-step-icon-box {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .guide-step-info p {
        max-width: none;
    }
}

/* Project Data Additional Styles */
.project-text-green { color: #10B981; }
.project-text-amber { color: #F59E0B; }
.project-badge {
    font-size: 13px;
    color: #666;
    font-weight: normal;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 20px;
}
.project-control-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}
.project-select-140 { min-width: 140px; }
.project-select-160 { min-width: 160px; }
.project-select-120 { min-width: 120px; }
.project-flex-spacer { flex-grow: 1; }
.project-btn-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
}
.project-chart-h500 { height: 500px; }
.project-chart-h350 { height: 350px; }
.project-chart-h450 { height: 450px; }
.project-flex-3 { flex: 3; }
.project-flex-2 { flex: 2; }

/* Project Data Detail Styles */
.project-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-detail-title-wrapper {
    display: flex;
    align-items: center;
}
.project-detail-warning {
    color: #ff4d4f;
    margin-left: 20px;
    font-size: 14px;
}
.project-detail-back-btn {
    padding: 5px 10px;
}
.project-detail-modal-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}
.project-detail-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Utility Classes for JS injections */
.table-no-data {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}
.hidden {
    display: none !important;
}

/* Settings Page Styles */
.settings-card {
    padding: 20px;
    margin-top: 10px;
}
.settings-title {
    font-size: 18px;
    margin-bottom: 15px;
}
.settings-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.settings-display {
    margin-bottom: 15px;
}
.settings-modal-content {
    width: 420px;
}
.settings-modal-body {
    padding: 20px;
}
.settings-modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid var(--border-color);
}

/* Account Page Styles */
.account-btn-margin {
    margin-left: 10px;
}
.account-modal-body {
    padding: 20px;
}
.account-agent-group {
    margin-top: 15px;
    display: flex;
    align-items: center;
}
.account-agent-switch {
    margin: 0;
    width: 50px;
    cursor: pointer;
}
.account-agent-label {
    margin-left: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.preview-modal-content {
    width: 80%;
    height: 80%;
    max-width: none;
}
.preview-modal-body {
    padding: 0;
    height: calc(100% - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
}
.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

/* Account Page Styles */
.account-btn-margin {
    margin-left: 10px;
}
.account-modal-body-padding {
    padding: 20px;
}
.account-agent-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
}
.account-theme-switch-container {
    margin: 0;
    width: 50px;
    cursor: pointer;
}
.account-agent-label {
    margin-left: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}
.account-preview-modal-content {
    width: 80%;
    height: 80%;
    max-width: none;
}
.account-preview-modal-body {
    padding: 0;
    height: calc(100% - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}
.account-preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}
.account-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.account-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Settings Page Styles */
.settings-modal-content {
    width: 420px;
}
.settings-modal-body {
    padding: 20px;
}
.settings-modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.settings-modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid var(--glass-border);
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.settings-row-left {
    display: flex;
    align-items: center;
}
.settings-checkbox {
    margin-right: 8px;
}
.settings-btn-up {
    margin-right: 6px;
}
.settings-default-text {
    color: var(--text-secondary);
}
.settings-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}

/* Project Data Page Styles */
.project-trend-note {
    color: #999;
    font-size: 12px;
}

/* Op Online Page Styles */
.op-online-modal-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}
.op-online-iframe {
    width: 100%;
    height: 600px;
    border: none;
}

/* Index Page Styles */
.index-tech-line:nth-child(1) {
    top: 20%;
    width: 100%;
    animation-delay: 0s;
}
.index-tech-line:nth-child(2) {
    top: 50%;
    width: 80%;
    animation-delay: 5s;
}
.index-tech-line:nth-child(3) {
    top: 80%;
    width: 60%;
    animation-delay: 10s;
}

/* Business Display Page Styles */
.business-section-desc {
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Toast Message Styles */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px 32px; /* Increased padding */
    border-radius: 12px; /* Increased border radius */
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 16px; /* Increased gap */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 500px; /* Increased max-width */
    width: auto;
    font-size: 16px; /* Increased font size */
    line-height: 1.6;
    pointer-events: none; /* Let clicks pass through if not interactive */
}

.toast-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Interactive toasts need pointer events */
.toast-message:has(button),
.toast-message.confirm-toast {
    pointer-events: auto;
    background: var(--card-bg); /* Use card background for confirm dialogs */
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 32px; /* Increased padding */
    min-width: 400px; /* Increased min-width */
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.toast-message:has(button) .toast-content,
.toast-message.confirm-toast .toast-content {
    font-size: 18px; /* Increased font size */
    font-weight: 500;
    margin: 15px 0 25px 0; /* Increased margin */
    text-align: center;
}

.toast-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message.success .toast-icon { color: #52c41a; }
.toast-message.error .toast-icon { color: #ff4d4f; }

/* Toast Actions */
.toast-action {
    margin-top: 0;
}

/* Specific overrides for showConfirm created toasts which have inline styles we want to support/override nicely */
.toast-message button {
    margin: 0 5px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .main-content,
    .worker-list-main-content {
        margin-left: 0 !important;
        padding: 15px !important;
        width: 100%;
        box-sizing: border-box;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .bulk-action-bar {
        left: 50% !important;
        width: 90%;
        bottom: 20px;
        flex-direction: column;
        height: auto;
        padding: 15px;
        border-radius: 16px;
    }
    
    .bulk-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================================
   Finance Account Page Specific Styles
   ========================================= */

/* Header User Info */
.user-info {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--hover-bg);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
}

/* Balance Cards Grid */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.balance-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.balance-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

/* Clickable balance cards for customer summary */
.balance-card.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.balance-card.clickable:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 145, 255, 0.2);
    border-color: rgba(0, 145, 255, 0.3);
}

.balance-card.clickable:active {
    transform: translateY(-2px);
}

.balance-card .label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.balance-card .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.5px;
}

/* Card Color Accents */
.balance-card.primary .amount { color: var(--amap-blue); }
.balance-card.success .amount { color: var(--fluorescent-green); }
.balance-card.warning .amount { color: var(--warning-orange); }

/* Table Container for Finance Flow */
.flow-table-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--glass-border);
    margin-bottom: 30px;
    overflow-x: auto;
}

.flow-table-container .section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.flow-table-container .section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--amap-blue);
    margin-right: 12px;
    border-radius: 2px;
}

/* Data Table Styles (Finance specific) */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: var(--hover-bg);
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 14px;
    transition: background 0.2s;
}

.data-table tr:hover td {
    background: var(--hover-bg);
}

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

/* Modal Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--hover-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.filter-bar input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s;
}

.filter-bar input:focus {
    border-color: var(--amap-blue);
    box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.1);
}

.filter-bar span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Balance Summary Box (in Modals) */
.balance-summary-box {
    background: var(--hover-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.balance-summary-box > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.text-amap-blue-18 {
    color: var(--amap-blue);
    font-size: 20px;
    font-weight: 700;
}

.text-success-18 {
    color: var(--fluorescent-green);
    font-size: 20px;
    font-weight: 700;
}

/* Modal Content XL Override */
.modal-content-xl {
    width: 1000px !important;
    max-width: 95vw !important;
}

/* =========================================
   Button Optimization & Dark Mode Fixes
   ========================================= */

/* Dark Mode Modal Fix */
[data-theme="dark"] .modal {
    background: rgba(0, 0, 0, 0.85) !important;
}

/* Small Button Variant */
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    height: 28px;
    line-height: 1;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Action Buttons Container in Tables */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Scoped for Finance Account Page */
.flow-table-container .data-table td:last-child {
    white-space: nowrap;
    min-width: 160px; /* Ensure enough space for two buttons */
}

/* Account Page Layout Optimization */
.account-container {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 32px;
    box-shadow: 0 4px 24px var(--shadow-color);
    max-width: 1000px;
    margin: 0 auto;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.account-grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--hover-bg);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
}

.account-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
    border-color: var(--amap-blue);
}

.account-grid-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.account-grid-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
    line-height: 1.5;
}

.account-grid-full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .account-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    .account-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Search Section Layout */
.search-section form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align bottom */
    flex-wrap: wrap;
}
.search-row {
    flex: 1;
    margin-right: 20px;
    margin-bottom: 0 !important;
}
.search-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
    padding-bottom: 2px; /* Align with inputs */
}

/* Button Colors */
.btn-search {
    background-color: #1890ff; /* Blue */
    color: white;
}
.btn-search:hover {
    background-color: #40a9ff;
}

.btn-reset {
    background-color: #ffffff;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 20px !important; /* Larger radius as requested */
}
.btn-reset:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

.btn-audit {
    background-color: #1890ff; /* Blue */
    color: white;
}
.btn-audit:hover {
    background-color: #40a9ff;
}

.btn-delete {
    background-color: #f5f5f5; /* Grey */
    color: #666;
    border: 1px solid #d9d9d9;
}
.btn-delete:hover {
    background-color: #e6e8eb;
    color: #666;
    border-color: #d9d9d9;
}

.btn-reset-pwd {
    background-color: #1890ff; /* Blue */
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-reset-pwd:hover {
    background-color: #40a9ff;
    color: white;
}

.btn-success {
    background-color: var(--fluorescent-green);
    color: black;
    /* User requested contrast set to 8.55 - interpreted as box-shadow for visual contrast/pop */
    box-shadow: 0 4px 8.55px rgba(40, 199, 111, 0.4);
}

.btn-success:hover {
    background-color: #20a158; /* Darker green for hover */
    color: black;
    box-shadow: 0 6px 12px rgba(40, 199, 111, 0.6);
}

.btn-danger {
    background-color: #ff4d4f; /* Red */
    color: white;
}
.btn-danger:hover {
    background-color: #ff7875;
}

.btn-add {
    background-color: #1890ff; /* Blue */
    color: white;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    position: fixed;
    bottom: 30px;
    right: 30px;
    box-shadow: 0 4px 15px rgba(0, 145, 255, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-add::before {
    content: '+';
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}
.btn-add:hover {
    background-color: #40a9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 145, 255, 0.5);
}

/* Candidate Info Edit Button */
.candidate-info-cell {
    position: relative;
    padding-right: 50px !important; /* Ensure space for the button */
}

.candidate-edit-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: var(--amap-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 145, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.candidate-edit-btn:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 145, 255, 0.5);
    color: #fff;
}

.candidate-edit-btn i {
    font-size: 14px;
}
