/* ============================================
   销售 CRM 管理系统 - 样式表
   ============================================ */

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #eff6ff;
    --color-bg: #f1f5f9;
    --color-sidebar: #1e293b;
    --color-sidebar-hover: #334155;
    --color-card: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-danger: #dc2626;
    --color-danger-light: #fee2e2;
    --color-info: #0ea5e9;
    --color-info-light: #e0f2fe;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --sidebar-width: 240px;
    --sidebar-collapsed: 64px;
    --transition: 0.2s ease;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

[v-cloak] {
    display: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: clamp(13px, 2.8vw, 14px);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    min-height: 100vh;
}

/* ===== 侧边栏 ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-sidebar);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding-bottom: var(--safe-bottom);
    z-index: 100;
    transition: width var(--transition);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
}

.logo-text {
    white-space: nowrap;
}

.collapse-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}

.collapse-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    color: #94a3b8;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--color-sidebar-hover);
    color: #fff;
}

.nav-item.active {
    background: var(--color-primary);
    color: #fff;
}

.nav-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed);
}

/* ===== 顶部栏 ===== */
.topbar {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    padding-top: calc(16px + var(--safe-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    color: var(--color-text);
}

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

/* ===== 视图内容 ===== */
.view-content {
    padding: 24px;
    flex: 1;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

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

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-bg);
    border-color: var(--color-text-muted);
}

.btn-danger {
    background: var(--color-danger);
    color: #fff;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 13px;
}

/* ===== 分页条 ===== */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 16px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.pagination-info {
    font-size: 13px;
    color: var(--color-text-muted);
    min-width: 140px;
    text-align: center;
}

.pagination-bar .btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    transition: opacity var(--transition);
}

.btn-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ===== 统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

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

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-blue { background: var(--color-primary-light); color: var(--color-primary); }
.stat-icon-amber { background: var(--color-warning-light); color: var(--color-warning); }
.stat-icon-green { background: var(--color-success-light); color: var(--color-success); }
.stat-icon-red { background: var(--color-danger-light); color: var(--color-danger); }
.stat-icon-purple { background: #f3e8ff; color: #7c3aed; }

.stat-value {
    font-size: clamp(18px, 5.5vw, 28px);
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 13px;
}

/* ===== 卡片 ===== */
.card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

.card-body.no-padding {
    padding: 0;
}

/* ===== 仪表盘行 ===== */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ===== 条形图 ===== */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 80px;
    text-align: right;
    font-size: 13px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
    min-width: 2px;
}

.bar-blue { background: var(--color-primary); }
.bar-amber { background: var(--color-warning); }
.bar-green { background: var(--color-success); }
.bar-red { background: var(--color-danger); }
.bar-gray { background: var(--color-text-muted); }
.bar-level-A { background: var(--color-danger); }
.bar-level-B { background: var(--color-warning); }
.bar-level-C { background: var(--color-info); }

.bar-value {
    width: 30px;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

/* ===== 数据表格 ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    background: #f8fafc;
    white-space: nowrap;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    color: var(--color-primary);
}

.sort-icon {
    font-size: 10px;
    opacity: 0.5;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}

.table-row-hover:hover {
    background: #f8fafc;
}

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

.text-ellipsis {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* ===== 链接 ===== */
.link {
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.tag-blue { background: var(--color-primary-light); color: var(--color-primary); }
.tag-amber { background: var(--color-warning-light); color: #92400e; }
.tag-green { background: var(--color-success-light); color: #166534; }
.tag-red { background: var(--color-danger-light); color: #991b1b; }
.tag-gray { background: #f1f5f9; color: var(--color-text-muted); }
.tag-light { background: var(--color-bg); color: var(--color-text-muted); border: 1px solid var(--color-border); }

.tag-level-A { background: var(--color-danger-light); color: #991b1b; }
.tag-level-B { background: var(--color-warning-light); color: #92400e; }
.tag-level-C { background: var(--color-info-light); color: #075985; }

/* ===== 操作按钮 ===== */
.action-btns {
    display: flex;
    gap: 4px;
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.btn-icon-danger:hover {
    color: var(--color-danger);
}

.btn-icon-sm {
    padding: 3px;
}

/* ===== 筛选栏 ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.search-box input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--color-card);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.select:focus {
    border-color: var(--color-primary);
}

.select-sm {
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 6px;
}

/* ===== 表格底部 ===== */
.table-footer {
    padding: 12px 0;
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: right;
}

/* ===== 空状态 ===== */
.empty-state {
    padding: 48px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.empty-state.small {
    padding: 24px 20px;
}

.empty-state p {
    margin-top: 12px;
}

/* ===== 客户详情 ===== */
.detail-header {
    margin-bottom: 20px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.detail-name {
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-left,
.detail-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 信息网格 ===== */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.info-value {
    font-size: 14px;
    font-weight: 500;
}

.info-remark {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.remark-text {
    margin-top: 6px;
    color: var(--color-text);
    line-height: 1.6;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-card);
    z-index: 1;
}

.dot-phone { background: var(--color-primary); }
.dot-visit { background: var(--color-success); }
.dot-wechat { background: #22c55e; }
.dot-email { background: var(--color-info); }
.dot-other { background: var(--color-text-muted); }

.timeline-content {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 12px 16px;
}

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

.timeline-date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-left: auto;
}

.timeline-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}

.timeline-next {
    margin-top: 8px;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal {
    background: var(--color-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

.modal-sm {
    max-width: 480px;
}

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

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

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

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

/* ===== 表单 ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

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

.form-label.required::after {
    content: ' *';
    color: var(--color-danger);
}

.form-input {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
    font-family: inherit;
    width: 100%;
    -webkit-appearance: none;
    -webkit-border-radius: var(--radius);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 客户搜索选择器 */
.customer-select-wrap {
    position: relative;
}

.customer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 2px;
}

.customer-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.customer-dropdown-item:last-child {
    border-bottom: none;
}

.customer-dropdown-item:hover {
    background: #f0f5ff;
}

.customer-dropdown-item.active {
    background: #e6f0ff;
    color: var(--color-primary);
    font-weight: 600;
}

.cd-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-phone {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

.customer-dropdown-empty {
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.form-textarea {
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    animation: toastIn 0.3s ease;
}

.toast-success { background: var(--color-success); }
.toast-error { background: var(--color-danger); }
.toast-info { background: var(--color-primary); }

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

.toast-enter-active, .toast-leave-active {
    transition: all 0.3s ease;
}

.toast-enter-from, .toast-leave-to {
    opacity: 0;
    transform: translateY(20px);
}

/* ===== 订单进度条 ===== */
.order-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 0;
}

.progress-step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    z-index: 2;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.progress-step.active .progress-circle {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.progress-step.current .progress-circle {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
    box-shadow: 0 0 0 4px var(--color-success-light);
}

.progress-label {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    white-space: nowrap;
}

.progress-step.active .progress-label {
    color: var(--color-text);
    font-weight: 600;
}

.progress-step.current .progress-label {
    color: var(--color-success);
    font-weight: 600;
}

.progress-line {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    z-index: 1;
}

.progress-line.completed {
    background: var(--color-primary);
}

/* ===== 回款信息 ===== */
.payment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-item {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid transparent;
}

.payment-item.payment-paid {
    background: var(--color-success-light);
    border-color: var(--color-success);
}

.payment-label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.payment-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.payment-paid .payment-amount {
    color: var(--color-success);
}

.payment-date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ===== 订单操作区域 ===== */
.order-action-area {
    margin-top: 8px;
}

/* ===== 加载状态 ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f6fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #4f6df5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 顶部栏左侧 ===== */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

/* ===== 手机端遮罩 ===== */
.sidebar-backdrop {
    display: none;
}

/* ===== 图纸管理 ===== */
.drawing-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    padding: 32px 16px;
    text-align: center;
    margin-bottom: 16px;
    transition: var(--transition);
}

.drawing-upload-area:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.drawing-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--color-text-muted);
}

.drawing-upload-label span:first-of-type {
    font-weight: 600;
    color: var(--color-text);
}

.drawing-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawing-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    transition: var(--transition);
}

.drawing-item:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.drawing-icon {
    flex-shrink: 0;
}

.drawing-info {
    flex: 1;
    min-width: 0;
}

.drawing-name {
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawing-meta {
    font-size: 12px;
    margin-top: 2px;
}

.drawing-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.drawing-preview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drawing-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.drawing-preview-name {
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.pdf-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
    font-size: 14px;
}

.pdf-error .btn {
    margin-top: 12px;
}

/* PDF 缩放工具栏 */
.pdf-viewer-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pdf-zoom-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #1e293b;
    border-radius: var(--radius) var(--radius) 0 0;
    color: #fff;
    flex-shrink: 0;
}
.pdf-zoom-label {
    font-size: 13px;
    min-width: 44px;
    text-align: center;
}

.pdf-pages {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    background: #525659;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 12px;
    flex: 1;
    min-height: 300px;
}
.pdf-pages-inner {
    display: inline-block;
    min-width: 100%;
    transition: transform 0.15s ease;
}

.pdf-page-canvas {
    display: block;
    margin: 0 auto 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: #fff;
}

/* ===== 现场进度 & 问题反馈 ===== */
.progress-form-card {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
}

.photo-upload-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.photo-preview-item {
    position: relative;
    width: 72px;
    height: 72px;
}

.photo-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.photo-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    border: none;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-upload-btn {
    width: 72px;
    height: 72px;
    border: 2px dashed var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    text-align: center;
    transition: border-color 0.2s;
}

.photo-upload-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* 进度时间线 */
.progress-timeline {
    position: relative;
    padding-left: 20px;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-content {
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.timeline-stage {
    background: var(--color-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.timeline-meta {
    font-size: 12px;
    color: #999;
}

.timeline-note {
    font-size: 14px;
    color: var(--color-text);
    margin: 4px 0 8px;
    line-height: 1.5;
}

.timeline-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.timeline-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.15s;
}

.timeline-photo:hover {
    transform: scale(1.05);
}

/* 问题反馈卡片 */
.issue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.issue-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 12px;
}

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

.issue-status-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.issue-status-pending {
    background: #fee2e2;
    color: #dc2626;
}

.issue-status-processing {
    background: #fef3c7;
    color: #d97706;
}

.issue-status-resolved {
    background: #d1fae5;
    color: #059669;
}

.issue-status-select {
    padding: 2px 6px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.issue-desc {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.5;
    margin: 4px 0 8px;
}

.issue-resolved-info {
    font-size: 12px;
    color: #059669;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d1fae5;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-row {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* ---- 侧边栏变抽屉 ---- */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow-lg);
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar.collapsed {
        width: var(--sidebar-width);
    }
    .sidebar .logo-text,
    .sidebar .nav-item span:not(.nav-badge),
    .sidebar-footer {
        display: block !important;
    }
    .collapse-btn {
        display: none;
    }

    /* ---- 遮罩 ---- */
    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 99;
    }

    /* ---- 主内容区全宽 ---- */
    .main-content {
        margin-left: 0 !important;
    }

    /* ---- 汉堡按钮显示 ---- */
    .mobile-menu-btn {
        display: inline-flex;
    }

    /* ---- 顶栏紧凑 ---- */
    .topbar {
        padding: 12px 16px;
        padding-top: calc(12px + var(--safe-top));
    }
    .page-title {
        font-size: 17px;
    }
    .topbar-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    .topbar-actions .btn {
        padding: 6px 10px;
        font-size: 13px;
    }
    /* 新增按钮交给右下角浮动按钮 */
    .topbar-actions .btn-add {
        display: none;
    }
    .user-info {
        display: none;
    }
    .user-menu {
        padding-left: 8px;
        gap: 2px;
    }

    /* ---- 视图内边距 ---- */
    .view-content {
        padding: 16px;
    }

    /* ---- 统计卡片 ---- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }
    .stat-card {
        padding: 14px;
        gap: 10px;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    .stat-value {
        font-size: 20px;
    }
    .stat-label {
        font-size: 11px;
    }

    /* ---- 表格改卡片式布局（无需横向滚动/手动放大） ---- */
    .card-body.no-padding {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
    }
    .data-table {
        font-size: 14px;
        min-width: 0 !important;
        display: block;
        width: 100%;
    }
    .data-table thead {
        display: none;
    }
    .data-table tbody {
        display: block;
        width: 100%;
    }
    .data-table tr {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        background: #fff;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        margin: 0 0 10px 0;
        padding: 2px 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .data-table td {
        display: flex;
        grid-column: 1 / -1;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 7px 14px;
        border: none;
        text-align: right;
        white-space: normal;
        word-break: break-word;
        min-height: 34px;
    }
    /* 手机端隐藏的次要字段 */
    .data-table td.mobile-hide {
        display: none !important;
    }
    /* 图纸/进度/反馈三个按钮合并一行（三等分） */
    .data-table td.td-btns {
        grid-column: auto;
        justify-content: center;
        padding: 4px 4px;
        min-height: 44px;
    }
    .data-table td.td-btns::before {
        content: none;
    }
    .data-table td.td-btns .btn-sm {
        min-height: 36px;
        padding: 6px 8px;
        font-size: 13px;
    }
    .data-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 500;
        color: var(--color-text-muted);
        flex-shrink: 0;
        text-align: left;
    }
    /* 第一列作为卡片标题 */
    .data-table td:first-child {
        font-size: 16px;
        font-weight: 600;
        justify-content: flex-start;
        border-bottom: 1px solid var(--color-border);
        margin-bottom: 4px;
        padding: 12px 14px 10px;
        min-height: 0;
    }
    .data-table td:first-child::before {
        content: none;
    }
    /* 卡片内操作按钮加大触控 */
    .data-table td .action-btns {
        justify-content: flex-end;
        gap: 6px;
    }
    .data-table td .btn-icon {
        width: 44px;
        height: 44px;
    }
    .data-table td .btn-sm {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 14px;
    }
    .text-ellipsis {
        max-width: none;
    }

    /* ---- 筛选栏纵向 ---- */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .search-box {
        max-width: none;
    }
    .select {
        width: 100%;
    }

    /* ---- 表单单列 ---- */
    .form-grid {
        grid-template-columns: 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* ---- 弹窗全屏 ---- */
    .modal-overlay {
        padding: 0;
        padding-bottom: var(--safe-bottom);
    }
    .modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        height: 100vh;
        height: 100dvh;
    }
    .modal-sm {
        max-width: 100%;
    }
    .modal-body {
        padding: 16px;
    }
    .modal-header {
        padding: 14px 16px;
    }
    .modal-header h3 {
        font-size: 16px;
    }
    .modal-footer {
        padding: 12px 16px;
    }
    .modal-footer .btn {
        flex: 1;
        justify-content: center;
    }

    /* ---- 详情页 ---- */
    .detail-name {
        font-size: 20px;
    }

    /* ---- 订单进度条 ---- */
    .order-progress {
        flex-wrap: wrap;
        gap: 16px;
    }
    .progress-step {
        flex: 0 0 42%;
    }
    .progress-line {
        display: none;
    }

    /* ---- 回款信息 ---- */
    .payment-summary {
        grid-template-columns: 1fr;
    }

    /* ---- 登录页 ---- */
    .login-card {
        padding: 28px 24px;
        width: 100%;
        border-radius: 12px;
    }
    .login-logo h1 {
        font-size: 22px;
    }

    /* ---- Toast 居中（避开浮动按钮） ---- */
    .toast {
        left: 16px;
        right: 16px;
        bottom: calc(88px + var(--safe-bottom));
        text-align: center;
        justify-content: center;
    }

    /* ---- 时间线 ---- */
    .timeline {
        padding-left: 16px;
    }

    /* ---- 图纸预览 ---- */
    .drawing-preview-header {
        flex-wrap: wrap;
    }
    .drawing-item {
        flex-wrap: wrap;
    }
    .drawing-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
}

/* ===== 登录页 ===== */
.login-page {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    width: 380px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
    color: #333;
}
.login-logo svg {
    color: #667eea;
    margin-bottom: 8px;
}
.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
}
.login-logo p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

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

.login-error {
    color: #e74c3c;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.login-hint {
    margin-top: 20px;
    text-align: center;
}
.login-hint p {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

/* ===== 顶部栏用户菜单 ===== */
.user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 16px;
    border-left: 1px solid var(--color-border, #e8e8e8);
}
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 8px;
}
.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #333);
}
.user-role {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 2px;
}
.role-admin {
    background: #fdecea;
    color: #e74c3c;
}
.role-sales {
    background: #e3f2fd;
    color: #1976d2;
}
.role-production {
    background: #e8f5e9;
    color: #2e7d32;
}

/* ===== 角色标签 ===== */
.tag-blue {
    background: #e3f2fd;
    color: #1976d2;
}

/* ===== 超小屏手机 (<=480px) ===== */
@media (max-width: 480px) {
    /* ---- 顶栏进一步紧凑 ---- */
    .topbar {
        padding: 10px 12px;
        padding-top: calc(10px + var(--safe-top));
    }
    .topbar-actions .btn {
        padding: 6px 8px;
        font-size: 12px;
    }
    .page-title {
        font-size: 15px;
    }

    /* ---- 视图内边距 ---- */
    .view-content {
        padding: 12px;
    }

    /* ---- 统计卡片单列紧凑 ---- */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stat-card {
        padding: 10px 12px;
        gap: 8px;
    }
    .stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    .stat-value {
        font-size: 17px;
    }
    .stat-label {
        font-size: 10px;
    }

    /* ---- 表格保持卡片式（继承 768px 卡片布局） ---- */

    /* ---- 表单更紧凑 ---- */
    .form-grid {
        gap: 10px;
    }
    .form-label {
        font-size: 13px;
    }
    .form-input {
        font-size: 15px; /* >=16px 避免 iOS 自动放大 */
        padding: 10px 12px;
    }

    /* ---- 弹窗紧凑 ---- */
    .modal-body {
        padding: 12px;
    }
    .modal-header {
        padding: 12px;
    }
    .modal-header h3 {
        font-size: 15px;
    }
    .modal-footer {
        padding: 10px 12px;
        padding-bottom: calc(10px + var(--safe-bottom));
    }

    /* ---- 登录卡片 ---- */
    .login-card {
        padding: 28px 20px;
        border-radius: 12px;
    }
    .login-logo h1 {
        font-size: 19px;
    }
    .login-logo svg {
        width: 44px;
        height: 44px;
    }

    /* ---- 图纸/进度/反馈弹窗紧凑 ---- */
    .drawing-item, .progress-item, .issue-item {
        padding: 8px 10px;
    }
    .photo-thumb {
        width: 64px !important;
        height: 64px !important;
    }
    .photo-grid {
        gap: 6px;
    }

    /* ---- 按钮触摸目标 >=44px ---- */
    .btn {
        min-height: 40px;
    }
    .btn-sm {
        min-height: 36px;
        padding: 6px 10px;
        font-size: 12px;
    }

    /* ---- 进度步骤更窄 ---- */
    .progress-step {
        flex: 0 0 100%;
    }
}

/* ===== 极窄屏 (<=360px) ===== */
@media (max-width: 360px) {
    /* ---- 统计卡片保持双列但更紧凑 ---- */
    .stats-grid {
        gap: 6px;
    }
    .stat-card {
        padding: 8px 10px;
    }
    .stat-icon {
        width: 32px;
        height: 32px;
    }
    .stat-icon svg {
        width: 16px;
        height: 16px;
    }
    .stat-value {
        font-size: 15px;
    }

    /* ---- 表格保持卡片式 ---- */
    .data-table td {
        padding: 7px 12px;
    }
    .data-table td:first-child {
        padding: 10px 12px 9px;
        font-size: 15px;
    }

    /* ---- 顶栏 ---- */
    .topbar {
        padding: 8px 10px;
        padding-top: calc(8px + var(--safe-top));
    }
    .page-title {
        font-size: 14px;
    }
    .topbar-actions {
        gap: 4px;
    }
    .topbar-actions .btn {
        padding: 5px 6px;
        font-size: 11px;
    }

    /* ---- 视图内容 ---- */
    .view-content {
        padding: 8px;
    }

    /* ---- 弹窗 ---- */
    .modal-header h3 {
        font-size: 14px;
    }
    .modal-body {
        padding: 10px;
    }
}

/* ===== 手机横屏 (height <=500px & landscape) ===== */
@media (max-height: 500px) and (orientation: landscape) {
    /* ---- 登录页横屏 ---- */
    .login-page {
        align-items: flex-start;
        overflow-y: auto;
    }
    .login-card {
        width: 360px;
        margin: var(--safe-top) auto var(--safe-bottom);
        padding: 20px 28px;
    }
    .login-logo {
        margin-bottom: 12px;
    }
    .login-logo svg {
        width: 36px;
        height: 36px;
    }
    .login-logo h1 {
        font-size: 18px;
    }

    /* ---- 弹窗横屏 ---- */
    .modal {
        height: 100vh;
        height: 100dvh;
    }
    .modal-body {
        max-height: calc(100dvh - 100px);
    }

    /* ---- 侧边栏横屏 ---- */
    .sidebar {
        width: 200px;
    }
}

/* ===== 大屏优化 (>=1920px) ===== */
@media (min-width: 1920px) {
    :root {
        --sidebar-width: 280px;
    }
    body {
        font-size: 15px;
    }
    .view-content {
        padding: 32px;
        max-width: 1600px;
        margin: 0 auto;
    }
    .page-title {
        font-size: 22px;
    }
    .stat-value {
        font-size: 30px;
    }
}

/* ===== PWA 独立模式 (全屏 App) ===== */
@media (display-mode: standalone) {
    /* 独立模式无地址栏，安全区域更靠上 */
    .topbar {
        padding-top: calc(16px + var(--safe-top));
    }
    /* iOS black-translucent 状态栏：顶部需要更多空间 */
    @supports (padding: env(safe-area-inset-top)) {
        .topbar {
            padding-top: calc(16px + env(safe-area-inset-top, 0px));
        }
    }
    /* 弹窗底部留出 home indicator 空间 */
    .modal-footer {
        padding-bottom: calc(12px + var(--safe-bottom));
    }
}

/* ===== PWA 引导提示 ===== */
.pwa-install-hint {
    position: fixed;
    bottom: calc(16px + var(--safe-bottom));
    left: 16px;
    right: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideUp 0.3s ease;
}
.pwa-install-hint .pwa-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pwa-install-hint .pwa-text {
    flex: 1;
}
.pwa-install-hint .pwa-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== 移动端浮动新增按钮 (FAB) ===== */
.fab-add {
    display: none;
    position: fixed;
    right: 18px;
    bottom: calc(22px + var(--safe-bottom));
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    z-index: 90;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.15s ease, background 0.15s ease;
}
.fab-add:active {
    transform: scale(0.92);
    background: var(--color-primary-hover);
}
.fab-add svg {
    pointer-events: none;
}
@media (max-width: 768px) {
    .fab-add {
        display: flex;
    }
    /* 有浮动按钮时底部内容留出空间，避免遮挡 */
    .view-content {
        padding-bottom: 96px;
    }
}

/* ===== ICP 备案号底部 ===== */
.icp-footer {
    text-align: center;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--color-text-tertiary);
    background: var(--color-background-secondary);
    border-top: 1px solid var(--color-border-tertiary);
}
.icp-footer a {
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color 0.2s;
}
.icp-footer a:hover {
    color: var(--color-text-secondary);
    text-decoration: underline;
}
@media (max-width: 768px) {
    .icp-footer {
        font-size: 11px;
        padding: 8px 12px;
    }
}
