/* ========== CloudLink Pro 主题样式 ========== */

:root {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-modal: #ffffff;
    --bg-input: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-glass: rgba(0, 0, 0, 0.06);
    --brand-primary: #10b981;
    --brand-secondary: #06b6d4;
    --brand-glow: rgba(16, 185, 129, 0.05);
    --shadow-elevation: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
}

body { 
    background-color: var(--bg-main); 
    color: var(--text-main); 
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
}

/* Aurora Background */
.aurora-bg {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1; overflow: hidden;
    background: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
}

/* Glass Effect */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-elevation);
}

.modal-glass {
    background: var(--bg-modal);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.nav-item {
    color: var(--text-muted);
}
.nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
}
.nav-item.active {
    background: var(--brand-glow);
    color: var(--brand-primary);
}
.lg\:flex .nav-item.active { 
    border-left: 3px solid var(--brand-primary); 
}

.mobile-nav-item {
    color: var(--text-muted);
}
.mobile-nav-item.active { 
    color: var(--brand-primary); 
}
.mobile-nav-item.active i { 
    transform: translateY(-2px); 
    filter: drop-shadow(0 4px 6px var(--brand-glow)); 
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: 0.75rem; 
    color: var(--text-main);
    transition: all 0.3s;
    outline: none;
}
.form-input:focus { 
    border-color: var(--brand-primary); 
    box-shadow: 0 0 0 4px var(--brand-glow); 
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.05); border-radius: 10px; }

/* Hide breadcrumb scrollbar */
#folderBreadcrumb::-webkit-scrollbar,
#folderBreadcrumb::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
#folderBreadcrumb {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Animations */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(12px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes move {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Modal */
.modal { 
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 100; 
}
.modal.open,
.modal.show { 
    opacity: 1; 
    pointer-events: auto; 
}
.modal-content { 
    transform: scale(0.95) translateY(20px); 
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); 
}
.modal.open .modal-content,
.modal.show .modal-content { 
    transform: scale(1) translateY(0); 
}

/* 全屏模态框 - 创建任务等 */
.modal.modal-fullscreen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    z-index: 10000;
}
.modal.modal-fullscreen .modal-content.modal-xl {
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.15);
    overflow: hidden;
}

/* Card Inner Background */
.card-inner-bg {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #0f172a 30%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status Dot */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-online { background-color: var(--brand-primary); box-shadow: 0 0 8px var(--brand-primary); }

/* View Sections */
.view-section { display: none; }
.view-section.active-view { display: block; animation: fadeIn 0.4s ease forwards; }

/* Settings Tabs */
.settings-tab { color: #94a3b8; border-bottom-color: transparent; transition: all 0.2s; }
.settings-tab:hover { color: #64748b; }
.settings-tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.settings-tab-content { display: none; }
.settings-tab-content.active { display: block; }

/* Theme Tabs */
.theme-tab { color: #94a3b8; border-bottom-color: transparent; transition: all 0.2s; }
.theme-tab:hover { color: #64748b; }
.theme-tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.theme-tab-content { display: none; }
.theme-tab-content.active { display: block; }

/* H5 Announcement Marquee */
.h5-marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: h5-marquee-scroll 16s linear infinite;
}
.h5-marquee-track > * {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block;
}
.h5-marquee-track:active {
    animation-play-state: paused;
}
@keyframes h5-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* ========== 统计卡片样式 ========== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #fa8c16 0%, #d46b08 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #722ed1 0%, #531dab 100%);
}

.stat-icon.emerald {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

.stat-value {
    font-size: 15px;
    font-weight: 500;
    color: rgba(0,0,0,.85);
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 13px;
    color: rgba(0,0,0,.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* H5 响应式 */
@media (max-width: 600px) {
    .stat-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .stat-card {
        padding: 12px;
    }
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .stat-value {
        font-size: 12px;
    }
    .stat-label {
        font-size: 11px;
    }
}

/* ========== 通用组件样式 ========== */
/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.table th {
    font-size: 12px;
    font-weight: 600;
    color: rgba(0,0,0,.45);
    background: #fafafa;
}
.table td {
    font-size: 14px;
    color: rgba(0,0,0,.85);
}
.table tr:hover td {
    background: #fafafa;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border: 1px solid #f0f0f0;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(0,0,0,.85);
}
.card-body {
    padding: 20px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(0.9);
}
.btn-default {
    background: #f5f5f5;
    color: rgba(0,0,0,.65);
}
.btn-default:hover {
    background: #e8e8e8;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0,0,0,.85);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px var(--brand-glow);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: rgba(0,0,0,.45);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state p {
    font-size: 14px;
}

/* 标签 */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.tag-success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}
.tag-processing {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}
.tag-error {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}
.tag-default {
    background: #f5f5f5;
    color: rgba(0,0,0,.45);
    border: 1px solid #d9d9d9;
}

/* 模态框基础样式 */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 99;
}
.modal-container {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-body {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
/* 全屏弹窗内的 modal-body 不限宽，撑满 */
.modal.modal-fullscreen .modal-body {
    max-width: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* H5 底部安全区 */
.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* H5 内容区域底部留白 */
@media (max-width: 1023px) {
    .mobile-content-area {
        padding-bottom: 100px;
    }
}

/* ========== CloudLink Toast 提示 ========== */
@keyframes cl-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes cl-toast-out {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-16px); }
}

.cl-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: var(--bg-modal, #fff);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass, rgba(0,0,0,0.06));
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10001;
    animation: cl-toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main, #0f172a);
    white-space: nowrap;
    max-width: 80%;
}
.cl-toast.closing {
    animation: cl-toast-out 0.25s ease forwards;
}
.cl-toast svg { width: 18px; height: 18px; flex-shrink: 0; }
.cl-toast.toast-success svg { color: var(--brand-primary); }
.cl-toast.toast-error svg { color: #ef4444; }
.cl-toast.toast-warning svg { color: #f59e0b; }
.cl-toast.toast-info svg { color: #3b82f6; }

/* ========== CloudLink 模态对话框 ========== */
@keyframes cl-modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cl-modal-out {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes cl-dialog-in {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes cl-dialog-out {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.92) translateY(10px); }
}

.cl-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: cl-modal-in 0.2s ease;
}
.cl-modal-backdrop.closing {
    animation: cl-modal-out 0.2s ease forwards;
}

.cl-modal-dialog {
    background: var(--bg-modal, #fff);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.06);
    max-width: 420px;
    width: 100%;
    animation: cl-dialog-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.cl-modal-backdrop.closing .cl-modal-dialog {
    animation: cl-dialog-out 0.2s ease forwards;
}

.cl-modal-body {
    padding: 28px 24px 16px;
}
.cl-modal-icon {
    width: 48px; height: 48px;
    border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.cl-modal-icon svg { width: 24px; height: 24px; }
.cl-modal-icon.warning { background: #fef3c7; color: #f59e0b; }
.cl-modal-icon.error   { background: #fee2e2; color: #ef4444; }
.cl-modal-icon.info    { background: #dbeafe; color: #3b82f6; }
.cl-modal-icon.success { background: #d1fae5; color: var(--brand-primary); }

.cl-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main, #0f172a);
    text-align: center;
    margin-bottom: 8px;
}
.cl-modal-message {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    text-align: center;
    white-space: pre-line;
}

.cl-modal-footer {
    padding: 12px 24px 24px;
    display: flex;
    gap: 10px;
}
.cl-modal-footer .cl-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.cl-btn-cancel {
    background: rgba(0,0,0,0.04);
    color: var(--text-muted, #64748b);
}
.cl-btn-cancel:hover { background: rgba(0,0,0,0.08); }
.cl-btn-confirm {
    background: var(--brand-primary, #10b981);
    color: #fff;
    box-shadow: 0 4px 12px var(--brand-glow);
}
.cl-btn-confirm:hover { opacity: 0.9; }
.cl-btn-danger {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239,68,68,0.2);
}
.cl-btn-danger:hover { opacity: 0.9; }
.cl-btn-warning {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(245,158,11,0.2);
}
.cl-btn-warning:hover { opacity: 0.9; }

/* 模态输入框 */
.cl-modal-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    background: rgba(0,0,0,0.02);
    border: 1px solid var(--border-glass, rgba(0,0,0,0.06));
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s;
    color: var(--text-main, #0f172a);
    box-sizing: border-box;
    margin-top: 12px;
}
.cl-modal-input:focus {
    border-color: var(--brand-primary, #10b981);
    box-shadow: 0 0 0 3px var(--brand-glow-md);
}

/* ========== CloudLink Loading ========== */
.cl-loading {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cl-modal-in 0.2s ease;
}
.cl-loading.closing {
    animation: cl-modal-out 0.2s ease forwards;
}
.cl-loading-content {
    background: var(--bg-modal, #fff);
    padding: 28px 36px;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.06);
    text-align: center;
}
.cl-loading-content .spinner {
    width: 32px; height: 32px;
    border: 3px solid rgba(0,0,0,0.06);
    border-top-color: var(--brand-primary, #10b981);
    border-radius: 50%;
    animation: cl-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}
@keyframes cl-spin { to { transform: rotate(360deg); } }
.cl-loading-content span {
    color: var(--text-muted, #64748b);
    font-size: 13px;
    font-weight: 500;
}

/* ========== CloudLink 任务详情内联页面 ========== */
#taskDetailSection .glass {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-elevation);
}

/* 详情卡片 - 保留兼容td-card */
.td-card {
    background: var(--bg-card) !important;
    border-radius: 1.5rem !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: var(--shadow-elevation) !important;
    overflow: hidden;
    margin-bottom: 16px;
    backdrop-filter: blur(24px);
}
.td-card-header {
    background: rgba(0,0,0,0.02) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    padding: 14px 20px !important;
}
.td-card-header .td-title {
    font-weight: 700 !important;
}
.td-card-header .td-title i,
.td-card-header .td-title svg {
    color: var(--brand-primary) !important;
}
.td-card-body {
    padding: 20px !important;
}
.td-status-tag {
    border-radius: 9999px !important;
    padding: 4px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
.td-info-item .td-label { color: var(--text-muted) !important; }
.td-progress-bar {
    border-radius: 9999px !important;
    height: 6px !important;
    background: rgba(0,0,0,0.04) !important;
}
.td-progress-fill { border-radius: 9999px !important; }
.td-progress-fill.completed { background: var(--brand-primary) !important; }
.td-progress-fill.running { background: var(--brand-primary) !important; }
.td-share-url {
    border-radius: 0.75rem !important;
    border: 1px solid var(--border-glass) !important;
    background: rgba(0,0,0,0.02) !important;
}
.td-files-table thead { background: rgba(0,0,0,0.02) !important; }
.td-files-table th { border-bottom: 1px solid var(--border-glass) !important; color: var(--text-muted) !important; font-size: 12px !important; }
.td-files-table td { border-bottom: 1px solid rgba(0,0,0,0.03) !important; }
.td-files-pager { background: rgba(0,0,0,0.02) !important; border-radius: 0.75rem !important; }
.td-pager-sizes .btn.active, .td-pager-sizes .btn-sm.active { background: var(--brand-primary) !important; color: #fff !important; border-radius: 0.5rem !important; }
.td-files-stat.success { color: var(--brand-primary) !important; }
.td-files-stat.info { color: var(--brand-primary) !important; }

/* ========== CloudLink 创建任务全屏弹窗覆盖 ========== */
.modal.modal-fullscreen {
    background: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.modal.modal-fullscreen .modal-content.modal-xl {
    border-radius: 1.5rem !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 弹窗头部 */
.modal-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border-glass) !important;
    padding: 16px 24px !important;
}
.modal-header h3 {
    font-weight: 700 !important;
}
.modal-header h3 i,
.modal-header h3 svg { color: var(--brand-primary) !important; }
.modal-close {
    border-radius: 0.75rem !important;
    width: 36px !important;
    height: 36px !important;
}
.modal-close:hover {
    background: rgba(0,0,0,0.04) !important;
}

/* 弹窗底部 */
.modal-footer {
    border-top: 1px solid var(--border-glass) !important;
    background: transparent !important;
    padding: 12px 24px !important;
}
.modal-footer .btn-primary {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 12px var(--brand-glow) !important;
}
.modal-footer .btn-primary:hover {
    filter: brightness(0.9);
}
.modal-footer .btn-default {
    border-radius: 0.75rem !important;
    background: rgba(0,0,0,0.04) !important;
    border: none !important;
    color: var(--text-muted) !important;
}
.modal-footer .btn-default:hover {
    background: rgba(0,0,0,0.08) !important;
}
.modal-footer-split .footer-left .input-sm {
    border: 1px solid var(--border-glass) !important;
    border-radius: 0.75rem !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    transition: all 0.2s !important;
}
.modal-footer-split .footer-left .input-sm:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px var(--brand-glow-md) !important;
    outline: none !important;
}

/* 面板Tab */
.panel-tabs {
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
}
.panel-tab {
    border-radius: 0 !important;
    flex: 1 !important;
    white-space: nowrap !important;
}
.panel-tab:hover {
    color: var(--brand-primary) !important;
}
.panel-tab.active {
    color: var(--brand-primary) !important;
    border-bottom-color: var(--brand-primary) !important;
    font-weight: 600 !important;
}

/* 面板头部 */
.task-panel .panel-header {
    background: rgba(0,0,0,0.02) !important;
    border-bottom: 1px solid var(--border-glass) !important;
}
.task-panel .panel-header h4 i,
.task-panel .panel-header h4 svg {
    color: var(--brand-primary) !important;
}

/* 文件浏览器 */
.file-browser {
    border-radius: 0.75rem !important;
    border: 1px solid var(--border-glass) !important;
}
.browser-toolbar {
    background: rgba(0,0,0,0.02) !important;
    border-bottom: 1px solid var(--border-glass) !important;
}

/* 任务创建器背景 */
.task-creator {
    background: var(--bg-main, #f8fafc) !important;
    display: flex !important;
    flex-direction: row !important;
    height: 100% !important;
}
.task-panel {
    background: var(--bg-modal, #fff) !important;
}
.task-panel.source-panel,
.task-panel.target-panel {
    flex: 1 !important;
    min-width: 0 !important;
}

/* 转移箭头 */
.transfer-arrow {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.transfer-arrow i {
    color: #fff !important;
    font-size: 12px !important;
}
.transfer-arrow-panel {
    width: 36px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 表单下拉框 */
.form-select {
    border: 1px solid var(--border-glass) !important;
    border-radius: 0.75rem !important;
    padding: 8px 12px !important;
    outline: none !important;
    transition: all 0.2s !important;
    font-size: 13px !important;
}
.form-select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px var(--brand-glow-md) !important;
}

/* ========== 通用样式覆盖（蓝色→翡翠绿） ========== */

/* 模态遮罩 */
.modal-overlay {
    background: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* 按钮 */
.btn-primary {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}
.btn-primary:hover {
    filter: brightness(0.9);
    border-color: var(--brand-primary) !important;
}
.btn-icon:hover {
    background: var(--brand-primary) !important;
    color: #fff !important;
}
.btn-success {
    background: var(--brand-primary) !important;
    color: #fff !important;
}
/* 工具栏小按钮保持原始样式，不用主题色 */
.browser-toolbar .btn-sm.btn-success {
    background: #fff !important;
    color: #52c41a !important;
    border: 1px solid #d9d9d9 !important;
}
.browser-toolbar .btn-sm.btn-success:hover {
    border-color: #52c41a !important;
    background: #f6ffed !important;
}
/* 统计栏按钮保持原始样式 */
.target-stats-bar .btn-sm.btn-primary,
.selected-stats-bar .btn-sm.btn-primary {
    background: #1890ff !important;
    border-color: #1890ff !important;
    color: #fff !important;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
}
.target-stats-bar .btn-sm.btn-primary:hover,
.selected-stats-bar .btn-sm.btn-primary:hover {
    background: #40a9ff !important;
    border-color: #40a9ff !important;
}

/* modal.css 覆盖 */
.modal-backdrop {
    background: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
.modal-dialog {
    border-radius: 1.5rem !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1) !important;
}
.modal-btn-primary {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}
.modal-btn-primary:hover {
    filter: brightness(0.9);
}
.modal-btn-default:hover {
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}
.modal-dialog-icon.success { color: var(--brand-primary) !important; }
.modal-dialog-icon.info { color: #3b82f6 !important; }
.modal-input:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px var(--brand-glow-md) !important;
}

/* Loading */
.global-loading {
    background: rgba(255,255,255,0.6) !important;
    backdrop-filter: blur(8px) !important;
}
.loading-content {
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1) !important;
}
.loading-content i {
    color: var(--brand-primary) !important;
}

/* 复选框 */
.checkbox-label input[type="checkbox"] {
    accent-color: var(--brand-primary) !important;
}

/* 设置页按钮 */
.btn-primary-outline {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}
.btn-primary-outline:hover {
    background: var(--brand-glow) !important;
}

/* 搜索、筛选组件蓝色→绿 */
.collect-tab:hover {
    background: var(--brand-glow) !important;
    border-color: var(--brand-glow-xl) !important;
    color: var(--brand-primary) !important;
}
.collect-tab.active {
    border-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}
.collect-tab.active .tab-badge {
    background: var(--brand-primary) !important;
}

/* 可编辑单元格 */
.editable-cell:hover {
    background: var(--brand-glow) !important;
    color: var(--brand-primary) !important;
}

/* 加载状态蓝色→绿 */
.collect-data-loading {
    color: var(--brand-primary) !important;
}

/* ========== 认证模态框 ========== */
.auth-tab {
    color: rgba(0,0,0,0.4);
    background: transparent;
}
.auth-tab.active {
    color: #fff;
    background: var(--brand-primary);
    box-shadow: 0 4px 12px var(--brand-glow);
}
#authModal input:focus {
    border-color: var(--brand-primary) !important;
}

/* ========== H5 创建任务弹窗响应式 ========== */
@media (max-width: 768px) {
    /* 弹窗全屏 */
    .modal.modal-fullscreen .modal-content.modal-xl {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        border: none !important;
    }
    /* 两列改为纵向堆叠 */
    .task-creator {
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    .task-panel.source-panel,
    .task-panel.target-panel {
        flex: none !important;
        min-height: 0 !important;
    }
    /* 转移箭头横向展示 */
    .task-panel.transfer-arrow-panel {
        width: 100% !important;
        height: 36px !important;
        flex-direction: row !important;
    }
    .transfer-arrow {
        transform: rotate(90deg);
    }
    /* 底部按钮区堆叠 */
    .modal-footer-split {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 12px 16px !important;
    }
    .modal-footer-split .footer-left {
        width: 100% !important;
        flex-wrap: wrap !important;
    }
    .modal-footer-split .footer-left .input-sm {
        flex: 1 !important;
        min-width: 80px !important;
        width: auto !important;
    }
    .modal-footer-split .footer-right {
        width: 100% !important;
        justify-content: flex-end !important;
    }
    /* 源面板头部 */
    .task-panel .panel-header h4 {
        font-size: 13px !important;
    }
    /* Tab字号 */
    .panel-tab {
        font-size: 12px !important;
        padding: 8px 6px !important;
    }
    /* 文件浏览器高度 */
    .file-browser {
        min-height: 200px !important;
    }
    .source-file-list, .target-file-list {
        min-height: 180px !important;
        max-height: 300px !important;
    }
}

/* ========================================
   落地页样式 (Landing Page)
   ======================================== */

.landing-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: radial-gradient(ellipse at top right, var(--brand-glow) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, var(--brand-glow-xs) 0%, transparent 50%),
                #fafbfd;
}

.landing-body .aurora-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.landing-nav {
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.75);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* Hero 标题动画 */
.landing-hero h1 {
    animation: landing-fade-up 0.8s ease-out;
}
.landing-hero p {
    animation: landing-fade-up 0.8s ease-out 0.1s both;
}
.landing-hero .flex {
    animation: landing-fade-up 0.8s ease-out 0.2s both;
}

@keyframes landing-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 平台卡片悬停 */
.landing-body .glass:hover {
    box-shadow: 0 8px 32px var(--brand-glow);
}

/* 落地页 H5 响应式 */
@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    .landing-hero p {
        font-size: 0.75rem;
    }
    /* 统计区域紧凑 */
    #stats .text-3xl,
    #stats .text-2xl {
        font-size: 1rem;
    }
    /* 功能卡片双列布局优化 */
    #features .glass {
        padding: 0.75rem;
    }
    /* 平台卡片超紧凑 */
    #platforms .glass {
        padding: 0.5rem 0.25rem;
    }
    /* CTA区域紧凑 */
    section:last-of-type .glass {
        padding: 1.25rem;
    }
}
