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

 body {
     background: #f9f5f0;
     font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
     color: #2d2a24;
     padding: 16px 12px 40px;
     min-height: 100vh;
 }

 .container {
     max-width: 820px;
     margin: 0 auto;
     background: #ffffff;
     border-radius: 28px;
     box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
     padding: 28px 20px 36px;
     transition: all 0.2s;
 }

 .page-header {
     text-align: center;
     padding-bottom: 20px;
     border-bottom: 2px solid #f0ebe4;
     margin-bottom: 24px;
 }

 .page-header h1 {
     font-size: 26px;
     font-weight: 700;
     letter-spacing: 2px;
     color: #1f1b16;
     background: linear-gradient(145deg, #2d2a24 0%, #5a4f44 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     margin-bottom: 6px;
 }

 .page-header .sub {
     font-size: 13px;
     color: #a09488;
     letter-spacing: 6px;
     font-weight: 300;
 }

 .search-wrap {
     position: relative;
     margin-bottom: 28px;
 }

 .search-wrap input {
     width: 100%;
     padding: 14px 20px 14px 48px;
     border: 1.5px solid #e8e0d6;
     border-radius: 60px;
     font-size: 16px;
     background: #faf8f5;
     transition: all 0.25s;
     color: #2d2a24;
     outline: none;
     font-weight: 400;
     letter-spacing: 0.3px;
 }

 .search-wrap input::placeholder {
     color: #bfb6ab;
     font-weight: 300;
 }

 .search-wrap input:focus {
     border-color: #c4b5a5;
     background: #ffffff;
     box-shadow: 0 0 0 4px rgba(196, 181, 165, 0.12);
 }

 .search-wrap .search-icon {
     position: absolute;
     left: 18px;
     top: 50%;
     transform: translateY(-50%);
     font-size: 20px;
     color: #bfb6ab;
     pointer-events: none;
 }

 .search-wrap .clear-btn {
     position: absolute;
     right: 16px;
     top: 50%;
     transform: translateY(-50%);
     background: none;
     border: none;
     font-size: 20px;
     color: #bfb6ab;
     cursor: pointer;
     display: none;
     padding: 4px 8px;
     border-radius: 30px;
 }

 .search-wrap .clear-btn:hover {
     background: #f0ebe4;
 }

 .search-wrap .clear-btn.visible {
     display: block;
 }

 .search-stats {
     font-size: 13px;
     color: #a09488;
     text-align: right;
     margin-top: 8px;
     padding-right: 6px;
     min-height: 22px;
 }

 .section {
     margin-bottom: 18px;
     border-radius: 18px;
     background: #fcfaf7;
     border: 1px solid #eee8e0;
     overflow: hidden;
     transition: border-color 0.2s;
 }

 .section.highlight {
     border-color: #d4c8bb;
 }

 .section-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 16px 20px;
     cursor: pointer;
     user-select: none;
     -webkit-tap-highlight-color: transparent;
     background: #fcfaf7;
     transition: background 0.2s;
 }

 .section-header:hover {
     background: #f8f4ef;
 }

 .section-header:active {
     background: #f2ece4;
 }

 .section-header h2 {
     font-size: 17px;
     font-weight: 600;
     color: #2d2a24;
     letter-spacing: 0.8px;
     display: flex;
     align-items: center;
     gap: 8px;
     flex-wrap: wrap;
 }

 .section-header h2 .badge {
     font-size: 12px;
     font-weight: 400;
     background: #e8e0d6;
     color: #5a4f44;
     padding: 0 12px;
     border-radius: 30px;
     line-height: 22px;
     letter-spacing: 0.3px;
 }

 .toggle-icon {
     font-size: 16px;
     color: #b5a89b;
     transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
     flex-shrink: 0;
     margin-left: 12px;
     font-weight: 300;
 }

 .toggle-icon.open {
     transform: rotate(180deg);
 }

 .section-content {
     padding: 0 20px 20px;
     display: none;
     animation: fadeSlide 0.3s ease;
 }

 .section-content.open {
     display: block;
 }

 @keyframes fadeSlide {
     0% {
         opacity: 0;
         transform: translateY(-6px);
     }

     100% {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* 三级折叠 */
 .sub-section {
     margin-bottom: 12px;
     border-radius: 14px;
     background: #f8f5f0;
     border: 1px solid #eee8e0;
     overflow: hidden;
 }

 .sub-section-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 12px 16px;
     cursor: pointer;
     user-select: none;
     -webkit-tap-highlight-color: transparent;
     background: #f8f5f0;
     transition: background 0.2s;
 }

 .sub-section-header:hover {
     background: #f2ece4;
 }

 .sub-section-header h3 {
     font-size: 15px;
     font-weight: 500;
     color: #3d3530;
     letter-spacing: 0.5px;
 }

 .sub-section-header .toggle-icon {
     font-size: 14px;
     margin-left: 8px;
 }

 .sub-section-content {
     padding: 0 16px 16px;
     display: none;
     animation: fadeSlide 0.25s ease;
 }

 .sub-section-content.open {
     display: block;
 }

 .sub-section-content pre {
     font-family: "PingFang SC", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
     white-space: pre;
     word-break: break-word;
     line-height: 1.7;
     font-size: 14px;
     color: #1f1b16;
     background: transparent;
     margin: 0;
     padding: 8px 0;
     border: none;
 }

 .face-block {
     padding: 12px 10px;
     background: #ffffff;
     border-radius: 12px;
     border: 1px solid #f0ebe4;
     margin-bottom: 10px;
 }

 .face-block:last-child {
     margin-bottom: 0;
 }

 .face-block .face-label {
     font-size: 12px;
     color: #bfb6ab;
     letter-spacing: 2px;
     margin-bottom: 6px;
     border-bottom: 1px dashed #eee8e0;
     padding-bottom: 4px;
 }

 .face-block pre {
     font-family: inherit;
     white-space: pre;
     word-break: break-word;
     margin: 0;
     padding: 0;
     background: transparent;
     font-size: 14px;
     line-height: 1.7;
     color: #1f1b16;
     border: none;
 }

 .rule-block {
     padding: 4px 0 2px;
 }

 .rule-item {
     padding: 10px 14px 10px 18px;
     margin-bottom: 6px;
     background: #f8f5f0;
     border-radius: 12px;
     font-size: 15px;
     line-height: 1.7;
     color: #2d2a24;
     border-left: 3px solid #d4c8bb;
     letter-spacing: 0.3px;
 }

 .rule-item:last-child {
     margin-bottom: 0;
 }

 .sub-rules {
     margin-top: 12px;
     padding: 14px 16px 12px 20px;
     background: #f5f0ea;
     border-radius: 14px;
     border-left: 3px solid #c4b5a5;
 }

 .sub-rules .sub-item {
     padding: 6px 0;
     font-size: 15px;
     line-height: 1.7;
     letter-spacing: 0.3px;
     color: #2d2a24;
 }

 .sub-rules .sub-item:last-child {
     padding-bottom: 2px;
 }

 .sub-rules .note {
     margin-top: 8px;
     padding: 8px 12px;
     background: #ede7df;
     border-radius: 10px;
     font-size: 14px;
     color: #5a4f44;
     text-align: center;
 }

 .no-result {
     text-align: center;
     padding: 40px 16px 32px;
     color: #a09488;
     font-size: 15px;
     letter-spacing: 0.5px;
     display: none;
 }

 .no-result .icon {
     font-size: 42px;
     display: block;
     margin-bottom: 12px;
     opacity: 0.6;
 }

 .no-result.show {
     display: block;
 }

 .page-footer {
     text-align: center;
     padding-top: 24px;
     margin-top: 8px;
     font-size: 12px;
     color: #ccc3b8;
     letter-spacing: 1px;
     border-top: 1px solid #f0ebe4;
 }

 @media (max-width: 600px) {
     body {
         padding: 10px 8px 30px;
     }

     .container {
         padding: 18px 12px 24px;
         border-radius: 20px;
     }

     .page-header h1 {
         font-size: 21px;
     }

     .page-header .sub {
         font-size: 11px;
         letter-spacing: 4px;
     }

     .search-wrap input {
         padding: 12px 16px 12px 42px;
         font-size: 15px;
         border-radius: 40px;
     }

     .search-wrap .search-icon {
         left: 14px;
         font-size: 18px;
     }

     .section-header {
         padding: 14px 16px;
     }

     .section-header h2 {
         font-size: 15px;
         letter-spacing: 0.5px;
     }

     .section-header h2 .badge {
         font-size: 11px;
         padding: 0 10px;
         line-height: 20px;
     }

     .section-content {
         padding: 0 14px 16px;
     }

     .rule-item {
         padding: 8px 12px 8px 14px;
         font-size: 14px;
         line-height: 1.6;
     }

     .sub-rules {
         padding: 10px 12px 10px 16px;
     }

     .sub-rules .sub-item {
         font-size: 14px;
         line-height: 1.6;
     }

     .sub-section-header {
         padding: 10px 14px;
     }

     .sub-section-header h3 {
         font-size: 14px;
     }

     .sub-section-content {
         padding: 0 12px 12px;
     }

     .sub-section-content pre {
         font-size: 13px;
         line-height: 1.6;
     }

     .face-block {
         padding: 10px 8px;
     }

     .face-block pre {
         font-size: 13px;
         line-height: 1.6;
     }

     .toggle-icon {
         font-size: 14px;
         margin-left: 8px;
     }

     .search-stats {
         font-size: 12px;
     }
 }

 @media (max-width: 400px) {
     .container {
         padding: 12px 8px 16px;
         border-radius: 16px;
     }

     .page-header h1 {
         font-size: 18px;
     }

     .section-header h2 {
         font-size: 14px;
     }

     .sub-section-content pre {
         font-size: 12px;
     }

     .face-block pre {
         font-size: 12px;
     }

     .rule-item {
         font-size: 13px;
     }
 }

 @media (prefers-color-scheme: dark) {
     body {
         background: #1a1714;
     }

     .container {
         background: #24211d;
         box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
     }

     .page-header {
         border-bottom-color: #3a3530;
     }

     .page-header h1 {
         background: linear-gradient(145deg, #e8e0d6 0%, #bfb6ab 100%);
         -webkit-background-clip: text;
         -webkit-text-fill-color: transparent;
         background-clip: text;
     }

     .page-header .sub {
         color: #8a7a6a;
     }

     .search-wrap input {
         background: #2d2a24;
         border-color: #3f3a34;
         color: #e8e0d6;
     }

     .search-wrap input::placeholder {
         color: #6a5f54;
     }

     .search-wrap input:focus {
         background: #33302a;
         border-color: #5a4f44;
         box-shadow: 0 0 0 4px rgba(90, 79, 68, 0.2);
     }

     .search-wrap .search-icon {
         color: #6a5f54;
     }

     .search-wrap .clear-btn {
         color: #6a5f54;
     }

     .search-wrap .clear-btn:hover {
         background: #3a3530;
     }

     .search-stats {
         color: #6a5f54;
     }

     .section {
         background: #2d2a24;
         border-color: #3f3a34;
     }

     .section.highlight {
         border-color: #5a4f44;
     }

     .section-header {
         background: #2d2a24;
     }

     .section-header:hover {
         background: #33302a;
     }

     .section-header:active {
         background: #3a3530;
     }

     .section-header h2 {
         color: #e8e0d6;
     }

     .section-header h2 .badge {
         background: #3f3a34;
         color: #bfb6ab;
     }

     .toggle-icon {
         color: #6a5f54;
     }

     .rule-item {
         background: #33302a;
         border-left-color: #5a4f44;
         color: #e8e0d6;
     }

     .sub-rules {
         background: #2a2722;
         border-left-color: #5a4f44;
     }

     .sub-rules .sub-item {
         color: #e8e0d6;
     }

     .sub-rules .note {
         background: #3a3530;
         color: #bfb6ab;
     }

     .sub-section {
         background: #33302a;
         border-color: #3f3a34;
     }

     .sub-section-header {
         background: #33302a;
     }

     .sub-section-header:hover {
         background: #3a3530;
     }

     .sub-section-header h3 {
         color: #e8e0d6;
     }

     .sub-section-content {
         background: #2d2a24;
     }

     .sub-section-content pre {
         color: #e8e0d6;
     }

     .face-block {
         background: #24211d;
         border-color: #3a3530;
     }

     .face-block .face-label {
         color: #6a5f54;
         border-bottom-color: #3a3530;
     }

     .face-block pre {
         color: #e8e0d6;
     }

     .no-result {
         color: #6a5f54;
     }

     .page-footer {
         color: #4a443e;
         border-top-color: #3a3530;
     }
 }

 /* ===== 复制按钮 ===== */
 .copy-btn {
     font-size: 12px;
     color: #8a7a6a;
     cursor: pointer;
     margin-left: 12px;
     background: #f0ebe4;
     padding: 2px 12px;
     border-radius: 30px;
     display: inline-block;
     user-select: none;
     -webkit-tap-highlight-color: transparent;
     transition: background 0.2s;
 }

 .copy-btn:active {
     background: #d4c8bb;
 }

 /* ===== Toast 提示 ===== */
 .toast-msg {
     position: fixed;
     bottom: 30px;
     left: 50%;
     transform: translateX(-50%);
     background: rgba(0, 0, 0, 0.75);
     color: #fff;
     padding: 10px 28px;
     border-radius: 40px;
     font-size: 15px;
     z-index: 9999;
     opacity: 0;
     transition: opacity 0.3s ease;
     pointer-events: none;
     white-space: nowrap;
     backdrop-filter: blur(4px);
 }

 .toast-msg.show {
     opacity: 1;
 }
 /* ===== 品牌切换开关 ===== */
 .brand-switch {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 12px;
     margin-bottom: 16px;
     padding: 8px 12px;
     background: #f5f0ea;
     border-radius: 40px;
     font-size: 14px;
     font-weight: 500;
     color: #5a4f44;
     user-select: none;
 }

 .brand-switch .brand-label {
     transition: color 0.3s;
     font-weight: 600;
     letter-spacing: 1px;
 }

 .brand-switch .brand-label.active {
     color: #2d2a24;
 }

 .brand-switch .brand-label.inactive {
     color: #bfb6ab;
 }

 /* 开关样式 */
 .switch {
     position: relative;
     display: inline-block;
     width: 48px;
     height: 26px;
     flex-shrink: 0;
 }

 .switch input {
     opacity: 0;
     width: 0;
     height: 0;
 }

 .slider {
     position: absolute;
     cursor: pointer;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: #ccc3b8;
     transition: 0.3s;
     border-radius: 26px;
 }

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

 .switch input:checked+.slider {
     background: #5a4f44;
 }

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

 /* 暗色模式适配 */
 @media (prefers-color-scheme: dark) {
     .brand-switch {
         background: #2d2a24;
         color: #bfb6ab;
     }

     .brand-switch .brand-label.active {
         color: #e8e0d6;
     }

     .brand-switch .brand-label.inactive {
         color: #6a5f54;
     }

     .slider {
         background: #4a443e;
     }
 }
