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

    :root {
      --bg: #ffffff;
      --trbg: rgba(255, 255, 255, 0.247);
      --text: #111111;
      --border: #ddd;
      --btn-bg: #f5f5f5;
      --btn-hover: #e0e0e0;
      --main: #007aff;
      --card-bg: #fff;
      --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .theme-dark {
      --bg: #121212;
      --trbg: rgba(18, 18, 18, 0.253);
      --text: #ffffff;
      --border: #333;
      --btn-bg: #1e1e1e;
      --btn-hover: #2d2d2d;
      --main: #007aff;
      --card-bg: #1e1e1e;
      --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .theme-blue {
      --bg: #f0f7ff;
      --trbg: rgba(240, 247, 255, 0.253);
      --text: #002a5a;
      --border: #b8d8f8;
      --btn-bg: #d6e8ff;
      --btn-hover: #adcfff;
      --main: #007aff;
      --card-bg: #e8f3ff;
      --shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
    }

    .theme-red {
      --bg: #fff5f5;
      --trbg: rgba(255, 245, 255, 0.26);
      --text: #5a0000;
      --border: #f8b8b8;
      --btn-bg: #ffd6d6;
      --btn-hover: #ffadad;
      --main: #ff3b30;
      --card-bg: #ffe8e8;
      --shadow: 0 2px 8px rgba(255, 59, 48, 0.1);
    }

    .theme-green {
      --bg: #f2fff5;
      --trbg: rgba(242, 255, 245, 0.26);
      --text: #003a00;
      --border: #b8f8c8;
      --btn-bg: #d6ffde;
      --btn-hover: #adffc1;
      --main: #34c759;
      --card-bg: #e8ffe8;
      --shadow: 0 2px 8px rgba(52, 199, 89, 0.1);
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      line-height: 1.6;
      padding: 20px;
      transition: all 0.3s;
    }

    .container {
      max-width: 800px;
      margin: 0 auto;
    }

    h1,
    h3 {
      margin: 24px 0 12px;
    }

    hr {
      border: none;
      height: 1px;
      background: var(--border);
      margin: 12px 0;
    }

    a {
      color: var(--main);
      margin-right: 14px;
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    .btn-group,
    .theme-switch {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 16px 0;
    }

    button,
    .btn {
      padding: 8px 14px;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--btn-bg);
      color: var(--text);
      cursor: pointer;
      transition: 0.2s;

      background-color: var(--trbg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-radius: 8px;
    }

    button:hover,
    .btn:hover {
      background: var(--btn-hover);
    }

    input,
    select,
    textarea {
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--bg);
      color: var(--text);
      margin: 6px 0;
      width: 240px;
      max-width: 100%;
    }

    textarea {
      min-height: 80px;
      resize: vertical;
    }

    label {
      margin-right: 10px;
    }

    /* 开关 */
    .switch {
      position: relative;
      display: inline-block;
      width: 44px;
      height: 24px;
      margin: 6px 0;
    }

    .switch input {
      opacity: 0;
    }

    .slider {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #ccc;
      border-radius: 24px;
      transition: 0.3s;
    }

    .slider:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background: white;
      border-radius: 50%;
    }

    input:checked+.slider {
      background: var(--main);
    }

    input:checked+.slider:before {
      transform: translateX(20px);
    }

    /* 布局组件 */
    .row {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin: 12px 0;
    }

    .col {
      flex: 1;
      min-width: 200px;
    }

    /* 卡片 */
    .card {
      background: var(--card-bg);
      border-radius: 8px;
      padding: 16px;
      box-shadow: var(--shadow);
      margin: 12px 0;
    }

    /* 面板 */
    .panel {
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 16px;
      margin: 12px 0;
    }

    /* 导航栏 */
    .navbar {
      background: var(--card-bg);
      border-radius: 8px;
      padding: 12px 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: var(--shadow);
      margin: 0;
    }

    .navbar-brand {
      font-weight: bold;
    }

    .navbar-nav {
      display: flex;
      gap: 16px;
    }

    /* 侧边栏 */
    .sidebar {
      background: var(--card-bg);
      border-radius: 8px;
      width: 200px;
      padding: 16px;
      box-shadow: var(--shadow);
      margin: 12px 0;
    }

    .sidebar-menu {
      list-style: none;
    }

    .sidebar-menu li {
      padding: 8px 0;
      cursor: pointer;
    }

    .sidebar-menu li:hover {
      color: var(--main);
    }

    /* 标签页 */
    .tabs {
      display: flex;
      border-bottom: 1px solid var(--border);
      margin: 12px 0;
    }

    .tab {
      padding: 8px 16px;
      cursor: pointer;
      border-bottom: 2px solid transparent;
    }

    .tab.active {
      border-color: var(--main);
      color: var(--main);
    }

    /* 面包屑 */
    .breadcrumb {
      display: flex;
      gap: 8px;
      margin: 12px 0;
    }

    .breadcrumb-item::after {
      content: "/";
      margin-left: 8px;
      color: var(--border);
    }

    .breadcrumb-item:last-child::after {
      content: "";
    }

    /* 分页 */
    .pagination {
      display: flex;
      gap: 8px;
      margin: 12px 0;
    }

    .page-item {
      padding: 6px 12px;
      border: 1px solid var(--border);
      border-radius: 4px;
      cursor: pointer;
    }

    .page-item.active {
      background: var(--main);
      color: #fff;
      border-color: var(--main);
    }

    /* 菜单 */
    .menu {
      list-style: none;
      background: var(--card-bg);
      border-radius: 6px;
      box-shadow: var(--shadow);
      padding: 8px 0;
      width: 160px;
      margin: 12px 0;
    }

    .menu-item {
      padding: 8px 16px;
      cursor: pointer;
    }

    .menu-item:hover {
      background: var(--btn-bg);
    }

    /* 表格 */
    table {
      width: 100%;
      border-collapse: collapse;
      margin: 12px 0;
    }

    th,
    td {
      border: 1px solid var(--border);
      padding: 8px;
      text-align: left;
    }

    th {
      background: var(--btn-bg);
    }

    /* 列表 */
    .list {
      list-style: none;
      margin: 12px 0;
    }

    .list-item {
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
    }

    /* 头像 */
    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--main);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      margin: 6px 0;
    }

    /* 标签 */
    .tag {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 4px;
      background: var(--btn-bg);
      font-size: 12px;
      margin: 4px;
    }

    /* 徽章 */
    .badge {
      display: inline-block;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--main);
      color: #fff;
      font-size: 12px;
      text-align: center;
      line-height: 20px;
      margin-left: 4px;
    }

    /* 进度条 */
    .progress {
      width: 100%;
      height: 8px;
      background: var(--border);
      border-radius: 4px;
      margin: 12px 0;
    }

    .progress-bar {
      height: 100%;
      background: var(--main);
      border-radius: 4px;
      width: 60%;
    }

    /* 树形控件 */
    .tree {
      list-style: none;
      margin: 12px 0;
    }

    .tree-item {
      padding: 4px 0;
      cursor: pointer;
    }

    .tree-children {
      margin-left: 20px;
      list-style: none;
    }

    /* 弹窗 */
    .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }

    .modal-content {
      background: var(--card-bg);
      border-radius: 8px;
      padding: 24px;
      width: 90%;
      max-width: 400px;
    }

    /* 提示框 */
    .tooltip {
      position: relative;
      display: inline-block;
    }

    .tooltip-text {
      visibility: hidden;
      background: #333;
      color: #fff;
      padding: 4px 8px;
      border-radius: 4px;
      position: absolute;
      bottom: 125%;
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
      font-size: 12px;
    }

    .tooltip:hover .tooltip-text {
      visibility: visible;
    }

    /* 加载中 */
    .loading {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 2px solid var(--border);
      border-top-color: var(--main);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

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

    /* 消息提示 */
    .toast {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: #333;
      color: #fff;
      padding: 8px 16px;
      border-radius: 4px;
      z-index: 1001;
    }

    /* 表单 */
    .form-item {
      margin: 12px 0;
    }

    .form-label {
      display: block;
      margin-bottom: 4px;
    }

    /* 滑块 */
    .slider-input {
      -webkit-appearance: none;
      width: 240px;
      height: 6px;
      background: var(--border);
      border-radius: 3px;
      outline: none;
    }

    .slider-input::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--main);
      cursor: pointer;
    }

    /* 评分 */
    .rate {
      color: #ffc107;
      font-size: 20px;
    }

    /* 单选框样式 */
    .radio-item {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
    }

    .radio-item input[type="radio"] {
      appearance: none;
      width: 20px;
      height: 20px;
      border: 2px solid var(--border, #ddd);
      border-radius: 50%;
      background: var(--bg, #fff);
      position: relative;
      transition: all 0.2s ease;
    }

    .radio-item input[type="radio"]:checked {
      border-color: var(--main, #007aff);
      background: var(--main, #007aff);
    }

    .radio-item input[type="radio"]:checked::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--check-color, #fff);
    }

    .radio-item label {
      cursor: pointer;
      user-select: none;
    }

    /* 复选框样式 */
    .checkbox-item {
      display: flex;
      align-items: center;
      gap: 10px;
      cursor: pointer;
    }

    .checkbox-item input[type="checkbox"] {
      appearance: none;
      width: 20px;
      height: 20px;
      border: 2px solid var(--border, #ddd);
      border-radius: 4px;
      background: var(--bg, #fff);
      position: relative;
      transition: all 0.2s ease;
    }

    .checkbox-item input[type="checkbox"]:checked {
      border-color: var(--main, #007aff);
      background: var(--main, #007aff);
    }

    .checkbox-item input[type="checkbox"]:checked::after {
      content: "✓";
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: var(--check-color, #fff);
      font-size: 14px;
      font-weight: bold;
    }

    .checkbox-item label {
      cursor: pointer;
      user-select: none;
    }



    /* ========== 新增组件：浏览器标签页 (Browser Tabs) ========== */
    .tabs-browser {
      display: flex;
      flex-wrap: nowrap;
      border-bottom: 1px solid var(--border);
      background-color: var(--btn-bg);
      border-radius: 8px 8px 0 0;
      overflow-x: auto;
      scrollbar-width: none;
      /* 隐藏滚动条 */
    }

    .tabs-browser::-webkit-scrollbar {
      display: none;
    }

    .tab-browser {
      flex: 0 0 auto;
      padding: 12px 20px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text-secondary);
      background-color: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s ease;
    }

    /* 激活状态 */
    .tab-browser.active {
      color: var(--main);
      border-bottom-color: var(--main);
      background-color: var(--bg);
    }

    /* 悬停状态 */
    .tab-browser:not(.active):hover {
      color: var(--text);
      background-color: var(--btn-hover);
    }

    /* 标签内容容器 */
    .tabs-content {
      border: 1px solid var(--border);
      border-top: none;
      border-radius: 0 0 8px 8px;
      padding: 20px;
      background-color: var(--bg);
      min-height: 200px;
    }

    /* 内容项默认隐藏 */
    .tab-pane {
      display: none;
    }

    /* 激活的内容项显示 */
    .tab-pane.active {
      display: block;
      animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }