/* 南翔智选 - 智能选型页面样式 */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    :root {
      --purple: #7B5EA7;
      --purple-dark: #5C3D8C;
      --purple-light: #EDE8F5;
      --purple-bg: #F8F6FC;
      --yellow: #F5C542;
      --white: #FFFFFF;
      --gray-100: #F5F5F5;
      --gray-300: #E0E0E0;
      --gray-500: #9E9E9E;
      --gray-700: #616161;
      --gray-900: #212121;
      --radius: 16px;
      --shadow: 0 2px 20px rgba(123,94,167,0.08);
      --shadow-hover: 0 8px 32px rgba(123,94,167,0.15);
    }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
      color: var(--gray-900);
      background: var(--purple-bg);
      line-height: 1.6;
    }
    .navbar {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      background: rgba(255,255,255,0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--purple-light);
      transition: box-shadow 0.3s;
    }
    .nav-inner {
      max-width: 1280px; margin: 0 auto;
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 40px; height: 72px;
    }
    .logo {
      display: flex; align-items: center; gap: 10px;
      font-size: 22px; font-weight: 700; color: var(--purple);
      text-decoration: none;
    }
    .logo-mascot { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple-light); }
    .nav-back {
      text-decoration: none; color: var(--gray-700); font-size: 15px; font-weight: 500;
      padding: 8px 18px; border-radius: 8px; transition: all 0.2s;
    }
    .nav-back:hover { background: var(--purple-light); color: var(--purple); }
    .page {
      max-width: 1280px; margin: 0 auto; padding: 96px 40px 60px;
    }
    .page-header { text-align: center; margin-bottom: 40px; }
    .page-header h1 { font-size: 32px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
    .page-header p { color: var(--gray-500); font-size: 16px; }
    .card {
      background: var(--white); border-radius: var(--radius); padding: 32px;
      box-shadow: var(--shadow); border: 1px solid var(--purple-light); margin-bottom: 24px;
    }
    .card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--purple); display: flex; align-items: center; gap: 8px; }
    .form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
    .form-group { display: flex; flex-direction: column; gap: 6px; }
    .form-group label { font-size: 14px; font-weight: 600; color: var(--gray-700); }
    .form-group input, .form-group select {
      padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 10px;
      font-size: 14px; font-family: inherit; background: var(--white); color: var(--gray-900);
      transition: border-color 0.2s;
    }
    .form-group input:focus, .form-group select:focus { outline: none; border-color: var(--purple); }
    .btn-primary {
      background: linear-gradient(135deg, var(--purple), var(--purple-dark));
      color: white; padding: 12px 28px; border-radius: 10px; border: none;
      font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s;
      display: inline-flex; align-items: center; gap: 8px;
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(123,94,167,0.3); }
    .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .btn-secondary {
      background: var(--gray-100); color: var(--gray-700); padding: 10px 20px;
      border-radius: 10px; border: none; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .btn-secondary:hover { background: var(--gray-300); }
    .quote-type-toggle {
      display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
      background: var(--white); padding: 12px 16px; border-radius: 12px;
      border: 1px solid var(--purple-light);
    }
    .quote-type-toggle .toggle-label {
      font-size: 14px; font-weight: 700; color: var(--gray-700); white-space: nowrap;
    }
    .quote-type-toggle .toggle-option {
      flex: 1; padding: 10px 16px; border-radius: 8px; border: 2px solid var(--purple-light);
      background: var(--white); color: var(--gray-700); font-size: 14px; font-weight: 600;
      cursor: pointer; text-align: center; transition: all 0.2s;
    }
    .quote-type-toggle .toggle-option:hover { border-color: var(--purple); }
    .quote-type-toggle .toggle-option.active {
      background: var(--purple); color: white; border-color: var(--purple);
    }
    .quote-type-badge {
      display: inline-block; padding: 2px 8px; border-radius: 4px;
      font-size: 11px; font-weight: 600; margin-left: 6px;
    }
    .quote-type-badge.channel { background: #E3F2FD; color: #1565C0; }
    .quote-type-badge.terminal { background: #FFF3E0; color: #E65100; }
    .dealer-tier-row {
      display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
      background: var(--white); padding: 12px 16px; border-radius: 12px;
      border: 1px solid var(--purple-light);
    }
    .dealer-tier-row .toggle-label {
      font-size: 14px; font-weight: 700; color: var(--gray-700); white-space: nowrap;
    }
    .tier-select {
      padding: 8px 14px; border: 2px solid var(--purple-light); border-radius: 8px;
      font-size: 14px; font-weight: 600; background: var(--white); color: var(--gray-900);
      cursor: pointer; min-width: 140px;
    }
    .tier-select:focus { outline: none; border-color: var(--purple); }
    .tier-max-discount {
      font-size: 13px; color: var(--gray-500);
      background: var(--purple-bg); padding: 6px 12px; border-radius: 6px;
    }
    .tier-max-discount strong {
      color: var(--purple);
    }
    .discount-quick-btn {
      padding: 6px 12px; border: 2px solid var(--purple-light); border-radius: 8px;
      font-size: 13px; font-weight: 600; background: var(--white); color: var(--gray-700);
      cursor: pointer; transition: all 0.2s; white-space: nowrap;
    }
    .discount-quick-btn:hover { border-color: var(--purple); }
    .discount-quick-btn.active {
      background: var(--purple); color: white; border-color: var(--purple);
    }
    .discount-custom-input {
      width: 80px; padding: 6px 10px; border: 2px solid var(--purple-light); border-radius: 8px;
      font-size: 13px; font-weight: 600; text-align: center;
      background: var(--white); color: var(--gray-900);
    }
    .discount-custom-input:focus { outline: none; border-color: #FF9800; }
    .discount-custom-input.warning { border-color: #FF9800; background: #FFF3E0; }
    .quote-price-input {
      width: 100px; padding: 4px 8px; border: 2px solid var(--purple-light); border-radius: 6px;
      font-size: 13px; font-weight: 600; text-align: right; color: var(--gray-900);
    }
    .quote-price-input:focus { outline: none; border-color: var(--purple); }
    .quote-price-input.below-base { border-color: #FF9800; background: #FFF3E0; color: #BF360C; }
    .discount-hint { font-size: 13px; color: var(--gray-500); }
    .discount-hint.warning { color: #E65100; font-weight: 600; }
    .special-approval-notice {
      background: linear-gradient(135deg, #FFF3E0, #FFE8CC); color: #BF360C;
      padding: 14px 18px; border-radius: 10px;
      font-size: 14px; border: 2px solid #FF9800;
      display: flex; align-items: center; gap: 10px;
      font-weight: 600;
    }
    .special-approval-notice .icon {
      font-size: 20px;
    }
    .base-price-info {
      background: #E8F5E9; color: #2E7D32;
      padding: 10px 14px; border-radius: 8px;
      font-size: 13px; border: 1px solid #A5D6A7;
      margin-top: 10px;
    }
    .model-price .discount-tag {
      display: inline-block; font-size: 11px; color: #E65100;
      background: #FFF3E0; padding: 2px 6px; border-radius: 4px;
      margin-left: 6px; font-weight: 600;
    }
    .model-price .final-price {
      color: var(--purple); font-weight: 700;
    }
    .quote-item .final-price-info {
      font-size: 12px; color: var(--gray-500); margin-top: 4px;
    }
    .quote-item .special-tag {
      display: inline-block; font-size: 11px; color: #E65100;
      background: #FFF3E0; padding: 2px 6px; border-radius: 4px;
      margin-left: 6px; font-weight: 600;
    }
    .btn-outline {
      background: var(--white); color: var(--purple); border: 1px solid var(--purple);
      padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
      transition: all 0.2s;
    }
    .btn-outline:hover, .btn-outline.active { background: var(--purple); color: white; }
    .category-tabs {
      display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
    }
    .model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
    .model-card {
      background: var(--white); border: 1px solid var(--purple-light); border-radius: 14px;
      padding: 24px; transition: all 0.3s; cursor: pointer; position: relative;
      display: flex; flex-direction: column;
    }
    .model-card:hover { box-shadow: var(--shadow-hover); border-color: var(--purple); transform: translateY(-2px); }
    .model-card.selected { border-color: var(--purple); background: var(--purple-bg); box-shadow: var(--shadow-hover); }
    .model-card .badge {
      position: absolute; top: 16px; right: 16px;
      background: var(--purple-light); color: var(--purple); font-size: 12px; font-weight: 600;
      padding: 4px 10px; border-radius: 6px;
    }
    .model-img-wrap {
      width: 100%; height: 160px; border-radius: 10px;
      background: var(--gray-100); margin-bottom: 12px;
      overflow: hidden; position: relative;
    }
    .model-img-wrap .model-img {
      width: 100%; height: 100%; object-fit: contain;
      opacity: 0; animation: imgFadeIn 0.4s ease forwards;
    }
    @keyframes imgFadeIn {
      to { opacity: 1; }
    }
    .model-img-fallback {
      position: absolute; top: 0; left: 0; right: 0; bottom: 0;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      background: linear-gradient(135deg, var(--purple-light), #f0ebf8);
      color: var(--purple);
    }
    .model-img-fallback .fallback-letter {
      font-size: 42px; font-weight: 800; letter-spacing: 2px;
      opacity: 0.35; line-height: 1;
    }
    .model-img-fallback .fallback-series {
      font-size: 12px; font-weight: 600; margin-top: 6px;
      opacity: 0.7;
    }
    .model-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
    .model-card .series { color: var(--purple); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
    .model-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
    .model-spec { font-size: 13px; color: var(--gray-500); }
    .model-spec span { color: var(--gray-900); font-weight: 600; }
    .model-price { font-size: 20px; font-weight: 800; color: var(--purple); margin-bottom: 12px; margin-top: auto; }
    .model-price .unit { font-size: 13px; font-weight: 400; color: var(--gray-500); }
    .model-actions { display: flex; gap: 8px; }
    .model-actions button { flex: 1; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; }
    .btn-add { background: var(--purple-light); color: var(--purple); }
    .btn-add:hover { background: var(--purple); color: white; }
    .btn-add.added { background: #4FE0A3; color: white; }
    .empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
    .empty-state .icon { font-size: 48px; margin-bottom: 16px; }
    .empty-state p { font-size: 15px; }
    .quote-panel {
      position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
      background: var(--white); border-top: 1px solid var(--purple-light);
      box-shadow: 0 -4px 24px rgba(0,0,0,0.06); padding: 16px 40px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .quote-panel .info { display: flex; align-items: center; gap: 16px; }
    .quote-panel .count {
      background: var(--purple); color: white; width: 32px; height: 32px;
      border-radius: 50%; display: flex; align-items: center; justify-content: center;
      font-size: 14px; font-weight: 700;
    }
    .quote-panel .text { font-size: 15px; font-weight: 600; }
    .quote-panel .text span { color: var(--purple); }
    .quote-btn { background: linear-gradient(135deg, var(--yellow), #FFD54F); color: #1A1033; padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 700; border: none; cursor: pointer; }
    .quote-btn:hover { transform: translateY(-2px); }
    .modal-overlay {
      position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.5);
      display: flex; align-items: center; justify-content: center; padding: 20px;
      opacity: 0; visibility: hidden; transition: all 0.3s;
    }
    .modal-overlay.show { opacity: 1; visibility: visible; }
    .modal {
      background: var(--white); border-radius: var(--radius); width: 100%; max-width: 640px;
      max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-hover);
      transform: translateY(20px); transition: transform 0.3s;
    }
    .modal-overlay.show .modal { transform: translateY(0); }
    .modal-header {
      padding: 24px 32px; border-bottom: 1px solid var(--gray-100);
      display: flex; justify-content: space-between; align-items: center;
    }
    .modal-header h3 { font-size: 18px; font-weight: 700; }
    .modal-close { background: none; border: none; font-size: 24px; color: var(--gray-500); cursor: pointer; }
    .modal-body { padding: 24px 32px; }
    .modal-footer { padding: 16px 32px 24px; display: flex; justify-content: flex-end; gap: 12px; }
    .quote-item {
      display: flex; align-items: center; gap: 12px; padding: 12px;
      background: var(--purple-bg); border-radius: 10px; margin-bottom: 8px;
    }
    .quote-item .name { flex: 1; font-weight: 600; font-size: 14px; }
    .quote-item .qty { width: 70px; }
    .quote-item .qty input { width: 100%; padding: 6px 8px; border: 1px solid var(--gray-300); border-radius: 6px; text-align: center; font-size: 14px; }
    .quote-item .remove { background: none; border: none; color: #E53935; font-size: 18px; cursor: pointer; }
    .quote-item .name { cursor: pointer; user-select: none; }
    .quote-item .name .expand-icon { display: inline-block; width: 16px; font-size: 12px; color: var(--gray-400); transition: transform 0.2s; margin-right: 4px; }
    .quote-item .name .expand-icon.open { transform: rotate(90deg); }
    .model-detail-row { display: none; padding: 10px 12px 12px 32px; margin-top: -4px; margin-bottom: 8px; background: #fafafa; border-radius: 0 0 10px 10px; font-size: 12px; color: var(--gray-600); border-top: 1px dashed var(--gray-300); }
    .model-detail-row.show { display: block; }
    .model-detail-row .detail-item { display: inline-flex; align-items: center; gap: 4px; margin-right: 16px; margin-bottom: 4px; }
    .model-detail-row .detail-label { color: var(--gray-400); }
    .model-detail-row .detail-value { font-weight: 600; color: var(--gray-700); }
    .result-count { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; }
    .result-count span { color: var(--purple); font-weight: 700; }
    .loading { text-align: center; padding: 40px; color: var(--gray-500); }
    .loading .spinner { width: 40px; height: 40px; border: 3px solid var(--purple-light); border-top-color: var(--purple); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* 报价历史 */
    .quote-history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .quote-history-table th { text-align: left; padding: 10px 12px; background: var(--purple-bg); color: var(--gray-700); font-weight: 700; font-size: 12px; border-bottom: 2px solid var(--purple-light); }
    .quote-history-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-300); color: var(--gray-900); }
    .quote-history-table tr:hover td { background: var(--purple-bg); }
    .status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
    .status-badge.draft { background: #F5F5F5; color: #9E9E9E; }
    .status-badge.pending { background: #FFF3E0; color: #E65100; }
    .status-badge.approved { background: #E8F5E9; color: #2E7D32; }
    .status-badge.rejected { background: #FFEBEE; color: #C62828; }
    .status-badge.price_audit { background: #FFF3E0; color: #E65100; }
    .status-badge.reviewed { background: #E3F2FD; color: #1565C0; }
    .history-empty { text-align: center; padding: 40px; color: var(--gray-500); }
    .history-empty .icon { font-size: 48px; margin-bottom: 12px; }
    .history-action { color: var(--purple); text-decoration: none; font-size: 12px; font-weight: 600; cursor: pointer; }
    .history-action:hover { text-decoration: underline; }
    /* 预览弹窗 */
    .preview-modal { max-width: 900px; }
    .preview-table { width: 100%; border-collapse: collapse; font-size: 13px; }
    .preview-table th {
      background: #1a6b3c; color: #fff; padding: 10px 8px; text-align: center; font-weight: 600;
    }
    .preview-table td { padding: 8px; border: 1px solid #ddd; text-align: center; }
    .preview-table td.left { text-align: left; }
    .preview-total { background: #f1f8e9; font-weight: 700; }
    .preview-total td { border: 1px solid #4B6F44; }
    .preview-notes { font-size: 13px; color: #555; margin-top: 16px; line-height: 2; }
    .preview-notes li { margin-left: 20px; }

    @media (max-width: 768px) {
      .page { padding: 88px 16px 100px; }
      .nav-inner { padding: 0 16px; }
      .form-grid { grid-template-columns: 1fr; }
      .model-grid { grid-template-columns: 1fr; }
      .quote-panel { padding: 12px 16px; flex-direction: column; gap: 12px; }
      .modal { max-width: 100%; }
    }

    /* 我的报价单 */
    .my-quotes-section {
      max-width: 1200px;
      margin: 40px auto;
      padding: 0 20px;
    }
    .my-quotes-section h3 {
      font-size: 18px;
      color: #1a1a2e;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .my-quotes-list {
      background: white;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
      overflow: hidden;
    }
    .my-quote-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 20px;
      border-bottom: 1px solid #f0f0f0;
      transition: background 0.2s;
    }
    .my-quote-item:hover { background: #fafafa; }
    .my-quote-item:last-child { border-bottom: none; }
    .my-quote-info { flex: 1; min-width: 0; }
    .my-quote-no {
      font-size: 14px;
      font-weight: 600;
      color: #333;
    }
    .my-quote-meta {
      font-size: 12px;
      color: #999;
      margin-top: 4px;
    }
    .my-quote-status {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 500;
      margin-right: 12px;
    }
    .status-pending {
      background: #fff3cd;
      color: #856404;
    }
    .status-approved {
      background: #d4edda;
      color: #155724;
    }
    .status-rejected {
      background: #f8d7da;
      color: #721c24;
    }
    .my-quote-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .btn-download-pdf {
      background: #c41e24;
      color: white;
      border: none;
      padding: 6px 14px;
      border-radius: 6px;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-download-pdf:hover { background: #a0181e; }
    .btn-download-pdf:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
    .my-quotes-empty {
      text-align: center;
      padding: 40px 20px;
      color: #999;
      font-size: 14px;
    }

    /* ===== 行业解决方案 Banner ===== */
    .industry-banner {
      background: linear-gradient(135deg, #7B5EA7 0%, #9B7EC7 100%);
      border-radius: 16px;
      margin: 16px 0 24px;
      color: white;
      box-shadow: 0 4px 20px rgba(123,94,167,0.25);
    }
    .industry-banner-inner {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 20px 24px;
      position: relative;
    }
    .industry-banner-icon {
      font-size: 32px;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .industry-banner-content {
      flex: 1;
      min-width: 0;
    }
    .industry-banner-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .industry-banner-desc {
      font-size: 14px;
      opacity: 0.95;
      line-height: 1.5;
      margin-bottom: 10px;
    }
    .industry-banner-tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .industry-tag {
      background: rgba(255,255,255,0.2);
      padding: 4px 12px;
      border-radius: 20px;
      font-size: 13px;
      font-weight: 500;
    }
    .industry-banner-close {
      background: rgba(255,255,255,0.2);
      border: none;
      color: white;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.2s;
    }
    .industry-banner-close:hover { background: rgba(255,255,255,0.35); }
    @media (max-width: 640px) {
      .industry-banner-inner { padding: 16px; gap: 12px; }
      .industry-banner-icon { font-size: 24px; }
      .industry-banner-title { font-size: 16px; }
      .industry-banner-desc { font-size: 13px; }
    }
