:root {
    /* Color Palette: Gentle Technical Light Mode (柔和工程日间风格) */
    --bg-base: #f2f4f7; /* 柔和舒适的暖灰图纸纸底 */
    --bg-surface: #ffffff; /* 卡片容器背景 */
    --bg-surface-hover: #eef2f6; 
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --border-color: rgba(15, 23, 42, 0.08);
    --border-color-strong: rgba(15, 23, 42, 0.16);
    
    /* Brand/Accent Colors (Blueprint Blue & Amber) */
    --accent-moss: #1e3a8a; /* 深蓝图蓝 */
    --accent-moss-light: #2563eb; /* 亮蓝 */
    --accent-moss-soft: rgba(30, 58, 138, 0.08);
    
    --accent-caramel: #d97706; /* 工程琥珀橙 */
    --accent-caramel-soft: rgba(217, 119, 6, 0.09);

    --accent-ink: #0284c7; /* 深青色 */
    --accent-ink-soft: rgba(2, 132, 199, 0.09);

    /* Layout & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-float: 0 20px 40px -12px rgba(15, 23, 42, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color-strong);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Typography Helpers */
.h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.h3 { font-size: 1.125rem; font-weight: 600; }
.h4 { font-size: 1rem; font-weight: 600; }
.text-body { font-size: 0.9375rem; }
.text-sm { font-size: 0.8125rem; }

/* Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.text-moss { color: var(--accent-moss); }
.text-ink { color: var(--accent-ink); }
.text-caramel { color: var(--accent-caramel); }
.text-secondary { color: var(--text-secondary); }

/* Spin Animation */
@keyframes spin { 100% { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    user-select: none;
}

.btn:active:not(:disabled) {
    transform: scale(0.98) translateY(1px) !important;
}

.btn-large {
    padding: 0.875rem 2.25rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--accent-moss);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.22);
}
.btn-primary:hover {
    background-color: var(--accent-moss-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 58, 138, 0.32);
}
.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color-strong);
    color: var(--text-primary);
}
.btn-outline:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--text-secondary);
}

.btn-secondary {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-color-strong);
    color: var(--text-primary);
}
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 0.8125rem;
    border-radius: 6px;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.form-label .required {
    color: var(--accent-caramel);
    margin-left: 3px;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
    transition: all var(--transition-fast);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-moss);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03), 0 0 0 3px var(--accent-moss-soft);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.border-left-moss { border-left: 4px solid var(--accent-moss); }
.border-left-ink { border-left: 4px solid var(--accent-ink); }
.border-left-caramel { border-left: 4px solid var(--accent-caramel); }

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
}

.card-body {
    padding: 1.5rem;
}

/* Custom Form Elements */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    background: var(--bg-surface-hover);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.radio-label input {
    display: none;
}

.radio-label:has(input:checked) {
    background: var(--accent-moss-soft);
    border-color: var(--accent-moss);
    color: var(--accent-moss);
}

.radio-label:has(input:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-tertiary);
    user-select: none;
}

/* Tooltip Component */
.info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    color: var(--text-tertiary);
    margin-left: 2px;
}

.info-tooltip-icon {
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.info-tooltip-wrapper:hover .info-tooltip-icon {
    color: var(--accent-moss);
}

.info-tooltip-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--text-primary);
    color: var(--bg-surface);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    z-index: 50;
    text-transform: none;
    letter-spacing: normal;
}

.info-tooltip-wrapper:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.profession-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface-hover);
    cursor: pointer;
    transition: all var(--transition-base);
}

.profession-checkbox:hover {
    border-color: var(--border-color-strong);
}

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

.profession-checkbox span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.profession-checkbox.active {
    background-color: var(--accent-caramel-soft);
    border-color: var(--accent-caramel);
}

.profession-checkbox.active span {
    color: var(--accent-caramel);
}

/* 站前表块导入卡片 */
.import-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: all var(--transition-base);
    background: var(--bg-surface-hover);
}
.import-card-active {
    border-left: 3px solid var(--accent-moss);
    background: var(--accent-moss-soft);
}
.import-status {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--bg-surface);
}
.import-status-active {
    color: var(--accent-moss);
    background: var(--accent-moss-soft);
    font-weight: 500;
}
/* Cable Trench Custom Styles */
.cable-card {
    background-color: var(--bg-surface-hover);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}
.cable-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed var(--border-color-strong);
    padding-bottom: 8px;
}
.cable-title i {
    color: var(--text-tertiary);
}
.cable-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}
.cable-row:last-child {
    margin-bottom: 0;
}
.cable-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.cable-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}
.cable-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}
.cable-input-prefix {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}
.cable-input {
    width: 100%;
    max-width: 100px;
    padding: 6px 8px;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}
.cable-input:focus {
    outline: none;
    border-color: var(--accent-moss);
    box-shadow: inset 0 1px 3px rgba(45, 42, 38, 0.05), 0 0 0 3px var(--accent-moss-soft);
}

/* Table specific styles */
.table-container table {
    width: 100%;
    table-layout: fixed;
}
.table-container th {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.room-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-moss);
    margin: 0;
    display: block;
}

.hint-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-surface-hover);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-tertiary);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-caramel-soft);
    color: var(--accent-caramel);
}

/* Animations */
.fade-enter-active,
.fade-leave-active {
    transition: opacity var(--transition-base), transform var(--transition-base);
}
.fade-enter-from,
.fade-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

/* Global Notifications */
.notifications-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    font-size: 0.9375rem;
    font-weight: 500;
    animation: slideInRight 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notify-success { color: var(--accent-moss); border-left: 4px solid var(--accent-moss); }
.notify-error { color: var(--accent-caramel); border-left: 4px solid var(--accent-caramel); }
.notify-info { color: var(--accent-ink); border-left: 4px solid var(--accent-ink); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Layout Styles */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 80px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-base);
    z-index: 100;
}

.sidebar.sidebar-open {
    width: 240px;
}

.sidebar-header {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--accent-ink);
    white-space: nowrap;
    overflow: hidden;
}

.logo i {
    font-size: 1.5rem;
    color: var(--accent-moss);
}

.sidebar-nav {
    flex: 1;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.nav-item i {
    font-size: 1.25rem;
    min-width: 20px;
    text-align: center;
}

.nav-item:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--accent-moss-soft);
    color: var(--accent-moss);
}

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

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-base);
}

.navbar {
    height: 72px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 10;
}

.page-container {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

/* Home View Styles */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-section .mt-2 {
    margin-top: 8px;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color-strong);
}

.tool-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.tool-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-moss);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
}

.tool-card:hover .tool-action {
    opacity: 1;
    transform: translateX(0);
}

/* 模块折叠交互 */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-header:hover {
    background: rgba(255, 255, 255, 0.8);
}

.collapse-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-tertiary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.collapse-icon.is-collapsed {
    transform: rotate(-90deg);
}

.collapsible-body {
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                padding-top 0.45s cubic-bezier(0.25, 1, 0.5, 1),
                padding-bottom 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 2000px;
    opacity: 1;
}

.collapsible-body.is-collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* 关于页面 */
.about-view {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.about-card-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(91, 122, 214, 0.06) 0%, rgba(142, 95, 211, 0.06) 100%);
    border: 1px solid rgba(91, 122, 214, 0.15);
    overflow: hidden;
}

.about-card-bg-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    color: rgba(91, 122, 214, 0.08);
    pointer-events: none;
    z-index: 0;
}

.about-card-hero .about-card-header {
    position: relative;
    z-index: 1;
}

.about-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.about-card-accent {
    border-top: 4px solid var(--accent-caramel);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.about-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-icon.blue {
    background: rgba(91, 122, 214, 0.12);
    color: #5b7ad6;
}

.about-icon.green {
    background: rgba(93, 106, 76, 0.12);
    color: var(--accent-moss);
}

.about-icon.amber {
    background: rgba(201, 134, 66, 0.12);
    color: var(--accent-caramel);
}

.about-card-titles .h3 {
    margin-bottom: 4px;
}

.about-card-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.about-section {
    display: flex;
    align-items: baseline;
    gap: 48px;
    padding: 8px 0;
}

.about-section-vertical {
    flex-direction: column;
    gap: 12px;
}

.about-section-title {
    margin-bottom: 12px;
}

.about-section-label {
    flex-shrink: 0;
    width: 120px;
    font-weight: 600;
    color: var(--text-primary);
}

.about-section-value {
    color: var(--text-secondary);
    font-weight: 500;
}

.about-version {
    background: rgba(91, 122, 214, 0.12);
    color: #5b7ad6;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-moss-soft);
    color: var(--accent-moss);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.about-feature-desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.about-tag {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid;
    font-size: 0.875rem;
    font-weight: 500;
    background: transparent;
}

.about-stack-note {
    color: var(--text-tertiary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.about-roadmap {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.about-roadmap-item:last-child {
    border-bottom: none;
}

.about-roadmap-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-moss-soft);
    color: var(--accent-moss);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.about-roadmap-text {
    color: var(--text-secondary);
    padding-top: 2px;
}

.about-section-contact {
    align-items: flex-start;
}

.about-link {
    color: #5b7ad6;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.about-link:hover {
    color: #8e5fd3;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .about-view {
        padding: 16px;
    }

    .about-card-bg-icon {
        display: none;
    }

    .about-section {
        flex-direction: column;
        gap: 8px;
    }

    .about-section-label {
        width: auto;
    }

    .about-roadmap-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

/* --- 主题切换按钮 (Theme Toggle Button) --- */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color-strong);
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
    transform: translateY(-0.5px);
}
.theme-toggle-btn i {
    font-size: 1rem;
}

/* --- 按钮流沙进度条 (Progress line indicator) --- */
.btn-primary.is-generating {
    position: relative;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.8;
}
.btn-primary.is-generating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-caramel), transparent);
    animation: flow-sand 1.2s infinite linear;
}
@keyframes flow-sand {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- QoS 常用意见句库抽屉 (QoS Drawer) --- */
.qos-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 360px;
    height: 100%;
    background-color: var(--bg-surface);
    box-shadow: -4px 0 24px rgba(45, 42, 38, 0.08);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-left: 1px solid var(--border-color);
}
.qos-drawer.open {
    right: 0;
}
.qos-drawer-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}
.drawer-close-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.drawer-close-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}
.qos-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.opinion-group-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.opinion-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.opinion-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.opinion-item:hover {
    border-color: var(--accent-moss);
    background-color: var(--accent-moss-soft);
    color: var(--accent-moss);
    transform: translateX(2px);
}
.opinion-add-icon {
    font-size: 0.875rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.opinion-item-text {
    font-size: 0.8125rem;
    line-height: 1.4;
    font-weight: 500;
}
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(45, 42, 38, 0.15);
    backdrop-filter: blur(2px);
    z-index: 999;
}

/* --- 电缆沟 SVG 横断面动态预览 --- */
.trench-layout-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}
.trench-inputs-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.trench-preview-panel {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.preview-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.3);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.preview-panel-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.trench-svg {
    width: 100%;
    max-height: 220px;
    display: block;
    overflow: visible;
}
.trench-concrete-path {
    transition: d var(--transition-slow);
}
.trench-lid {
    transition: x var(--transition-slow), y var(--transition-slow), width var(--transition-slow), height var(--transition-slow);
}
.cable-card {
    transition: all var(--transition-base);
}
.cable-card.active-preview {
    border-color: var(--accent-ink);
    box-shadow: 0 0 0 3px var(--accent-ink-soft);
}

/* --- Excel HUD Preview --- */
.import-card {
    position: relative;
}
.excel-hud-preview {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 50;
    padding: 12px;
    overflow: hidden;
}
.hud-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}
.hud-body {
    max-height: 180px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.hud-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.hud-table th, .hud-table td {
    padding: 6px 10px;
    font-size: 0.75rem;
}
.hud-table th {
    background-color: var(--bg-surface-hover);
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.hud-table td {
    color: var(--text-primary);
    border-bottom: 1px solid rgba(45, 42, 38, 0.05);
    background-color: var(--bg-surface);
}
.hud-table tr:last-child td {
    border-bottom: none;
}
.hud-footer {
    margin-top: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-align: right;
}

/* --- 经典工程蓝图暗色主题 (Classic Blueprint Theme) --- */
.blueprint-theme {
    --bg-base: #090e1a; /* 极深靛蓝 */
    --bg-surface: #0f172a; /* 深卡片蓝 */
    --bg-surface-hover: #1e293b;
    
    --text-primary: #f8fafc; /* 白 */
    --text-secondary: #94a3b8; /* 浅蓝灰 */
    --text-tertiary: #64748b; /* 暗蓝灰 */
    
    --border-color: rgba(0, 180, 216, 0.15); /* 荧光蓝线条 */
    --border-color-strong: rgba(0, 180, 216, 0.35);
    
    --accent-moss: #00b4d8; /* 荧光青蓝 */
    --accent-moss-light: #90e0ef;
    --accent-moss-soft: rgba(0, 180, 216, 0.12);
    
    --accent-caramel: #f39c12; /* 荧光橙色 */
    --accent-caramel-soft: rgba(243, 156, 18, 0.12);
    
    --accent-ink: #06b6d4; /* 深青色 */
    --accent-ink-soft: rgba(6, 182, 212, 0.12);
    
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.6);
    --shadow-float: 0 24px 72px rgba(0, 0, 0, 0.8);
}

.blueprint-theme body,
.blueprint-theme .main-content {
    background-color: var(--bg-base);
}

.blueprint-theme .sidebar {
    background-color: var(--bg-surface);
}

.blueprint-theme .navbar {
    background-color: var(--bg-surface);
}

.blueprint-theme .card-header {
    background: rgba(15, 23, 42, 0.6);
}

.blueprint-theme .excel-hud-preview {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: var(--border-color-strong);
}

.blueprint-theme .hud-table td {
    background-color: #0f172a;
    border-bottom: 1px solid rgba(0, 180, 216, 0.08);
}

.blueprint-theme .hud-table th {
    background-color: #1e293b;
}

.blueprint-theme .trench-preview-panel {
    background-color: #0f172a;
}

.blueprint-theme .preview-panel-header {
    background-color: rgba(15, 23, 42, 0.8);
}

.blueprint-theme .qos-drawer {
    background-color: var(--bg-surface);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

.blueprint-theme .qos-drawer-header {
    background-color: rgba(15, 23, 42, 0.8);
}

.blueprint-theme .drawer-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.blueprint-theme .cable-card {
    background-color: #131c2e;
    border: 1px solid rgba(0, 180, 216, 0.1);
}

.blueprint-theme .cable-title {
    color: #cbd5e1;
}

.blueprint-theme .cable-label {
    color: #94a3b8;
}

.blueprint-theme .cable-input {
    background-color: #0f172a;
    color: #f8fafc;
}

.blueprint-theme .table-container th {
    background-color: #131c2e;
    color: #94a3b8;
    border-bottom: 1px solid var(--border-color-strong);
}

.blueprint-theme .table-container tr.bg-gray-50 {
    background-color: #131c2e;
}

.blueprint-theme .table-container tr.border-b.border-gray-100 {
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
}

.blueprint-theme .table-container tr.opacity-40.bg-gray-50\/50 {
    background-color: rgba(15, 23, 42, 0.5);
}

.blueprint-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 180, 216, 0.25);
}

.blueprint-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--accent-moss);
}
}
