:root {
    --ui-bg: rgba(255, 255, 255, 0.96);
    --brand: #0b74ff;
    --text: #2b2f36;
    --radius: 12px;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    background: #e6f3ff;
}

#canvas-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: block;
}

/* 控制面板 */
#controls {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(241, 248, 255, 0.24));
    padding: 16px;
    padding-top: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 24px 50px rgba(31, 64, 104, 0.2), 0 10px 24px rgba(15, 30, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    z-index: 10;
    backdrop-filter: saturate(185%) blur(18px);
    -webkit-backdrop-filter: saturate(185%) blur(18px);
    transition: width .3s ease, height .3s ease, padding .3s ease;
    overflow: hidden;
    isolation: isolate;
}

.panel-content {
    position: relative;
    z-index: 1;
}

#controls::before,
#controls::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

#controls::before {
    background:
        radial-gradient(130px 90px at 84% 10%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 70%),
        radial-gradient(220px 160px at 8% 100%, rgba(154, 214, 255, 0.26), rgba(154, 214, 255, 0) 72%);
    opacity: 0.95;
}

#controls::after {
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 -18px 30px rgba(188, 227, 255, 0.14), inset 0 18px 26px rgba(255, 255, 255, 0.22);
}

.panel-content {
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

#controls select,
#controls input,
#controls button,
#controls .file-upload-btn {
    box-sizing: border-box;
    max-width: 100%;
}

.control-group {
    margin-bottom: 14px;
}

#controls label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

select,
input[type="range"],
input[type="number"] {
    width: 100%;
}

select,
input[type="number"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #333;
    font-size: 14px;
}

input[type="range"] {
    accent-color: var(--brand);
}

.time-display {
    text-align: center;
    margin-top: 6px;
    font-weight: 800;
    color: var(--brand);
    font-size: 18px;
    letter-spacing: 0.5px;
}

.solar-time-info {
    margin-top: 8px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(196, 214, 236, 0.9);
}

.solar-time-item {
    min-width: 0;
}

.solar-time-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.solar-time-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding-left: 44px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9eef5;
}

.sidebar-title {
    margin: 0;
    font-size: 16px;
    color: #111;
    line-height: 1.2;
    flex: 1;
    text-align: left;
    min-width: 0;
}

.page-nav {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #e4edf7;
    border-radius: 12px;
    background: #f8fbff;
}

.page-nav-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.page-nav-label {
    font-size: 12px;
    font-weight: 700;
    color: #1d4f8c;
}

.page-nav-hint {
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.page-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #d6e7fb;
    background: #fff;
    color: #24507f;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.page-nav-link:hover {
    transform: translateY(-1px);
    background: #f8fbff;
    box-shadow: 0 6px 14px rgba(37, 80, 127, 0.08);
}

.page-nav-link.is-current {
    border-color: rgba(30, 91, 196, 0.22);
    background: linear-gradient(180deg, #eef5ff 0%, #e2efff 100%);
    color: #0f5ed0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

/* 文件上传按钮 */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-btn {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    display: block;
    box-sizing: border-box;
    transition: background 0.2s;
}

.file-upload-btn:hover {
    background: #218838;
}

/* 位置配置 */
.location-config {
    background: #f0f7ff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #c5dcf7;
}

.location-config label {
    color: #0056b3;
    margin-bottom: 10px;
}

.location-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: end;
    margin-bottom: 8px;
}

.location-row.single {
    grid-template-columns: 1fr;
}

.location-row .field {
    display: flex;
    flex-direction: column;
}

.location-row .field span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.location-row select,
.location-row input {
    width: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
}

.lat-display {
    font-size: 13px;
    color: #555;
    text-align: center;
    padding-top: 4px;
}

/* 开关行 */
.inline-row {
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.inline-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.secondary-action-btn {
    width: 100%;
    padding: 10px 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #eef5ff, #dfeafc);
    color: #204a7a;
    border: 1px solid #bfd2ee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.secondary-action-btn:hover {
    background: linear-gradient(135deg, #f4f8ff, #e8f0ff);
    border-color: #9dbce9;
    transform: translateY(-1px);
}

.secondary-action-btn.is-active {
    background: linear-gradient(135deg, #dbeaff, #c4dcff);
    border-color: #7ea9ea;
    color: #123c6a;
    box-shadow: 0 4px 12px rgba(80, 126, 196, 0.22);
}

/* 日照分析样式 */
.sunlight-analysis .analysis-config {
    background: #fff8e6;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f0d878;
}

.sunlight-analysis .inline-row span:first-of-type {
    font-size: 12px;
    color: #666;
    min-width: 60px;
}

.sunlight-analysis .inline-row select {
    flex: 1;
    padding: 6px 8px;
    font-size: 13px;
}

.calc-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #ff9500, #ff6b00);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.calc-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffaa22, #ff7711);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.calc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.calc-progress {
    margin-top: 10px;
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    font-size: 12px;
    color: #666;
}

/* 热力图图例 */
.heatmap-legend {
    margin-top: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
}

.legend-bar {
    height: 16px;
    border-radius: 4px;
    /* Background is set dynamically by JS */
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: #666;
}

/* 日照统计 */
.sunlight-stats {
    margin-top: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
}

.sunlight-stats .stat-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.sunlight-stats .stat-row:last-child {
    border-bottom: none;
}

.sunlight-stats .stat-label {
    color: #666;
}

.sunlight-stats .stat-value {
    font-weight: 600;
    color: #333;
}

.sunlight-stats .stat-value.good {
    color: #28a745;
}

.sunlight-stats .stat-value.warning {
    color: #ffc107;
}

.sunlight-stats .stat-value.bad {
    color: #dc3545;
}

/* 户型信息面板 */
.unit-info-panel {
    position: absolute;
    left: 16px;
    bottom: 16px;
    width: 280px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(241, 248, 255, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: 0 24px 50px rgba(31, 64, 104, 0.2), 0 10px 24px rgba(15, 30, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    z-index: 15;
    backdrop-filter: saturate(185%) blur(18px);
    -webkit-backdrop-filter: saturate(185%) blur(18px);
    isolation: isolate;
    overflow: hidden;
}

.unit-info-panel::before,
.unit-info-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.unit-info-panel::before {
    background:
        radial-gradient(130px 90px at 84% 10%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 70%),
        radial-gradient(220px 160px at 8% 100%, rgba(154, 214, 255, 0.26), rgba(154, 214, 255, 0) 72%);
    opacity: 0.95;
}

.unit-info-panel::after {
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 -18px 30px rgba(188, 227, 255, 0.14), inset 0 18px 26px rgba(255, 255, 255, 0.22);
}

.unit-info-panel > * {
    position: relative;
    z-index: 1;
}

.unit-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.unit-info-header span {
    font-weight: 600;
    font-size: 14px;
}

.unit-info-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.unit-info-header button:hover {
    opacity: 1;
}

#unitInfoContent {
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
}

#unitInfoContent .info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

#unitInfoContent .info-row.info-row--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

#unitInfoContent .info-row:last-child {
    border-bottom: none;
}

#unitInfoContent .info-label {
    color: #666;
}

#unitInfoContent .info-value {
    font-weight: 600;
    color: #333;
}

#unitInfoContent .info-value.neutral {
    color: #475569;
}

#unitInfoContent .info-value--stack {
    width: 100%;
}

#unitInfoContent .interval-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#unitInfoContent .interval-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #cfe3fb;
    color: #1d4f8c;
    font-size: 12px;
    font-weight: 600;
}

#unitInfoContent .interval-empty {
    color: #64748b;
    font-weight: 500;
}

#unitInfoContent .sunlight-bar {
    margin-top: 10px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

#unitInfoContent .sunlight-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

#unitInfoContent .sunlight-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-shadow: 0 0 3px white;
}

/* 空状态提示 */
#empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    font-size: 16px;
    z-index: 4;
    pointer-events: none;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 18, 35, 0.36);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 60;
}

.loading-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.loading-card {
    min-width: 220px;
    max-width: min(380px, calc(100vw - 48px));
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
}

.loading-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 3px solid rgba(11, 116, 255, 0.2);
    border-top-color: #0b74ff;
    animation: spinLoader 0.85s linear infinite;
}

.loading-text {
    margin: 0;
    font-size: 14px;
    color: #1e2b3a;
    font-weight: 600;
}

@keyframes spinLoader {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.drop-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(11, 29, 52, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 40;
}

.drop-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.drop-overlay-card {
    min-width: min(440px, calc(100vw - 48px));
    max-width: 560px;
    padding: 24px 28px;
    border: 2px dashed rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.ui-compass {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    z-index: 10;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-compass-ring {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(36, 41, 46, 0.2);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.78) 0%, rgba(246, 249, 252, 0.5) 65%, rgba(228, 236, 244, 0.42) 100%);
}

.ui-compass-rotator {
    position: absolute;
    inset: 0;
    transform-origin: 50% 50%;
    transform: rotate(0deg);
    transition: transform 0.18s ease-out;
}

.ui-compass-ring .dir {
    position: absolute;
    font-size: 9px;
    font-weight: 700;
    color: #3d4955;
    line-height: 1;
    user-select: none;
}

.ui-compass-ring .dir.n {
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    color: #d73b3e;
}

.ui-compass-pointer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}

.ui-compass-pointer::before,
.ui-compass-pointer::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
}

.ui-compass-pointer::before {
    bottom: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 13px solid #df2f36;
    filter: drop-shadow(0 0 4px rgba(223, 47, 54, 0.28));
}

.ui-compass-pointer::after {
    top: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 11px solid #ffffff;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.ui-compass-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2f3944;
    transform: translate(-50%, -50%);
}

/* 图例提示 */
.legend {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin-top: 8px;
    justify-content: center;
    color: #666;
}

/* 切换按钮 */
.sidebar-toggle {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    background: #f0f4f8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s;
    z-index: 11;
    color: var(--text);
    padding: 0;
}

.sidebar-toggle:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

/* 切换按钮图标 */
.sidebar-toggle::before {
    content: '×';
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
}

/* 收起状态的按钮 */
#controls.collapsed .sidebar-toggle::before {
    content: '◀';
    font-size: 16px;
}

/* 收起状态 */
#controls.collapsed {
    width: 52px;
    height: 52px;
    padding: 8px;
    border-radius: 12px;
}

#controls.collapsed .panel-content {
    opacity: 0;
    pointer-events: none;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .drop-overlay {
        padding: 16px;
    }

    .drop-overlay-card {
        min-width: 0;
        width: 100%;
        padding: 18px 20px;
        font-size: 17px;
        border-radius: 16px;
    }

    .ui-compass {
        top: env(safe-area-inset-top, 8px);
        left: 8px;
        width: 42px;
        height: 42px;
    }

    .ui-compass-ring {
        width: 34px;
        height: 34px;
    }

    .ui-compass-ring .dir {
        font-size: 8px;
    }

    .ui-compass-ring .dir.n {
        top: 0;
    }

    .ui-compass-pointer::before {
        border-left-width: 2px;
        border-right-width: 2px;
        border-bottom-width: 10px;
    }

    .ui-compass-pointer::after {
        border-left-width: 2px;
        border-right-width: 2px;
        border-top-width: 8px;
    }

    #controls {
        top: env(safe-area-inset-top, 8px);
        right: 8px;
        width: 280px;
        padding: 12px;
        padding-top: 12px;
    }

    #controls.collapsed {
        width: 48px;
        height: 48px;
        padding: 6px;
    }

    .sidebar-toggle {
        width: 34px;
        height: 34px;
    }
    
    .sidebar-toggle::before {
        font-size: 24px;
    }
    
    #controls.collapsed .sidebar-toggle::before {
        font-size: 14px;
    }

    #timeBlock {
        display: none;
    }

    #timeDock {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: env(safe-area-inset-bottom, 10px);
        height: 28px;
        background:
            radial-gradient(140px 80px at 82% 16%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 72%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(232, 244, 255, 0.34));
        border: 1px solid rgba(255, 255, 255, 0.48);
        border-radius: 14px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.66), inset 0 -12px 16px rgba(175, 212, 240, 0.16);
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 12px;
        z-index: 12;
        backdrop-filter: saturate(185%) blur(12px);
        -webkit-backdrop-filter: saturate(185%) blur(12px);
    }

    #timeDock .timeLabel {
        font-size: 13px;
        color: #3b3f46;
        font-weight: 700;
        white-space: nowrap;
    }

    #timeDock input[type="range"] {
        flex: 1;
        height: 24px;
        accent-color: var(--brand);
    }

    #timeDock .timeValue {
        width: 64px;
        text-align: right;
        font-weight: 800;
        color: var(--brand);
    }

    .unit-info-panel {
        left: 8px;
        right: 8px;
        bottom: calc(env(safe-area-inset-bottom, 10px) + 58px);
        width: auto;
    }
}

/* 语言切换按钮 */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px;
    border-radius: 6px;
}

.lang-btn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
}

.lang-btn.active {
    background: white;
    color: var(--brand);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 自定义日期选择器样式 */
#customDatePicker {
    margin-top: 8px;
}

#customDateInput {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    cursor: pointer;
}

#customDateInput::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

#customDateInput:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

#customDateInput:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 116, 255, 0.1);
}
