
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
      color: #fff;
      min-height: 100vh;
      padding: 20px;
      line-height: 1.6;
      overflow-x: hidden;
    }
    
    .container {
      max-width: 1600px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr;
      gap: 6px; /*上下間距*/
      position: relative;
    }
    
    
    header {
      grid-column: 1 / -1;
      text-align: center;
      padding: 15px 0;
      background: linear-gradient(90deg, #0d324d, #1a6dcc);
      border-radius: 15px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
      margin-bottom: 20px;
      color: white;
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
    }
   /*以下是原本手機隱藏藥用語法*/  
    header::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 70%);
      pointer-events: none;
    }
    
    header h1 {
      font-size: 2rem;
      margin-bottom: 8px;
      text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
      position: relative;
      z-index: 2;
    }
    
    header p {
      font-size: 1.1rem;
      opacity: 0.9;
      max-width: 800px;
      margin: 0 auto;
      position: relative;
      z-index: 2;
    }
 /*以上是原本手機隱藏藥用語法*/
 
    
    .diagram-container {
      background: rgba(13, 19, 33, 0.8);
      border-radius: 15px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
      overflow: hidden;
      height: 80vh;
      position: relative;
      border: 1px solid rgba(26, 109, 204, 0.3);
    }
    
    #pixiCanvas {
      width: 100%;
      height: 100%;
    }
    
    .floating-controls {
      position: absolute;
      top: 8px !important;
      left: 8px !important;
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 15px;
      background: rgba(13, 19, 33, 0.85);
      border-radius: 15px;
      padding: 20px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(26, 109, 204, 0.3);
      width: 220px;
      transition: all 0.3s ease;
      max-height: 90vh;
      overflow: hidden;
    }
    
    .controls-collapsed {
      width: 50px;
      height: 50px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      border-radius: 50%;
      overflow: hidden;
    }
    
    .controls-collapsed .controls-content {
      display: none;
    }
    
    .controls-collapsed .toggle-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
      font-size: 1.5rem;
      color: #4cc9f0;
    }
    
    .toggle-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(76, 201, 240, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #4cc9f0;
      z-index: 101;
    }
    
    .section-title {
      font-size: 1.3rem;
      color: #4cc9f0;
      margin-bottom: 15px;
      padding-bottom: 12px;
      border-bottom: 2px solid rgba(76, 201, 240, 0.3);
      position: relative;
    }
    
    .section-title::after {
      content: "";
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 80px;
      height: 3px;
      background: linear-gradient(90deg, #4cc9f0, transparent);
    }
    
    .btn-group {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 10px;
    }
    
    button {
      background: linear-gradient(90deg, #1a6dcc, #0d4a9e);
      color: white;
      border: none;
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(26, 109, 204, 0.4);
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      z-index: 1;
    }
    
    button::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      transition: 0.5s;
      z-index: -1;
    }
    
    button:hover::before {
      left: 100%;
    }
    
    button:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(26, 109, 204, 0.6);
    }
    
    button:active {
      transform: translateY(1px);
    }
    
    .stats {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-top: 10px;
      font-size: 0.85rem;
    }
    
    .stat-card {
      background: rgba(76, 201, 240, 0.1);
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      text-align: center;
      border: 1px solid rgba(76, 201, 240, 0.2);
      font-size: 0.85rem;
    }
    
    .stat-value {
      font-size: 1.1rem;
      font-weight: 700;
      color: #4cc9f0;
      margin: 6px 0;
      text-shadow: 0 0 8px rgba(76, 201, 240, 0.5);
    }
    
    .stat-label {
      font-size: 0.8rem;
      color: #a5b4fc;
    }
    
    footer {
      grid-column: 1 / -1;
      text-align: center;
      padding: 25px 0;
      color: #a5b4fc;
      font-size: 1rem;
      margin-top: 20px;
      border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .loading-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(13, 19, 33, 0.9);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 100;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
    }
    
    .loading-overlay.active {
      opacity: 1;
      pointer-events: all;
    }
    
    .spinner {
      width: 60px;
      height: 60px;
      border: 5px solid rgba(76, 201, 240, 0.2);
      border-top: 5px solid #4cc9f0;
      border-radius: 50%;
      animation: spin 1.5s linear infinite;
      margin-bottom: 25px;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .zoom-controls {
      position: absolute;
      top: 20px;
      right: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      z-index: 10;
    }
    
    .zoom-btn {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: rgba(13, 19, 33, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      cursor: pointer;
      font-size: 1.5rem;
      font-weight: bold;
      color: #4cc9f0;
      border: 1px solid rgba(76, 201, 240, 0.3);
      transition: all 0.3s ease;
    }
    
    .zoom-btn:hover {
      background: rgba(76, 201, 240, 0.2);
      transform: scale(1.1);
    }
    
    .node-info {
      position: absolute;
      background: rgba(13, 19, 33, 0.95);
      border: 2px solid #4cc9f0;
      border-radius: 12px;
      padding: 20px;
      width: 300px;
      z-index: 50;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      display: none;
      backdrop-filter: blur(10px);
    }
    
    .node-info h3 {
      color: #4cc9f0;
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(76, 201, 240, 0.3);
    }
    
    .node-info p {
      margin: 8px 0;
      display: flex;
    }
    
    .node-info .label {
      min-width: 100px;
      color: #a5b4fc;
    }
    
    .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: #4cc9f0;
      border: none;
      font-size: 1rem;
    }
    
    .expand-indicator {
      position: absolute;
      bottom: 5px;
      right: 5px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: #4cc9f0;
    }
    
    .layer-controls {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
      background: rgba(76, 201, 240, 0.1);
      padding: 12px;
      border-radius: 10px;
      font-size: 0.9rem;
    }
    
    .layer-input-group {
      display: flex;
      gap: 8px;
    }
    
    .layer-input-group input {
      flex: 1;
      padding: 8px;
      border-radius: 8px;
      background: rgba(76, 201, 240, 0.1);
      border: 1px solid rgba(76, 201, 240, 0.3);
      color: white;
      font-size: 0.9rem;
    }
    
    .layer-nav {
      display: flex;
      justify-content: space-between;
      gap: 8px;
    }
    
    .layer-nav button {
      flex: 1;
      padding: 8px;
      font-size: 0.85rem;
    }
    
    .controls-content {
      max-height: 70vh;
      overflow-y: auto;
      padding-right: 5px;
    }
    
    .controls-content::-webkit-scrollbar {
      width: 6px;
    }
    
    .controls-content::-webkit-scrollbar-thumb {
      background-color: rgba(76, 201, 240, 0.5);
      border-radius: 3px;
    }
    
    .controls-content::-webkit-scrollbar-track {
      background: rgba(13, 19, 33, 0.3);
    }
    
    @media (max-width: 992px) {
      .diagram-container {
        height: 60vh;
      }
      
      .floating-controls {
        top: 8px !important;
        left: 8px !important;
        width: 180px;
        padding: 15px;
      }
      
      button {
        padding: 10px;
        font-size: 0.85rem;
      }
      
      .stat-card {
        padding: 8px;
      }
      
      header {
        display: none;
      }
      
      .node-info {
        width: 90%;
        left: 5% !important;
        top: 10px !important;
        max-height: 80vh;
        overflow-y: auto;
      }
    }
    
    @media (max-width: 768px) {
      .floating-controls {
        top: 8px !important;
        left: 8px !important;
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        overflow: hidden;
      }
      
      .floating-controls .controls-content {
        display: none;
      }
      
      .floating-controls .toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 1.5rem;
        color: #4cc9f0;
      }
      
      .layer-controls {
        padding: 10px;
      }
      
      .layer-input-group {
        flex-direction: column;
      }
    }
    
    .mobile-info-btn {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(76, 201, 240, 0.8);
      color: white;
      padding: 12px 24px;
      border-radius: 30px;
      font-weight: bold;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      cursor: pointer;
      display: none;
      z-index: 200;
      border: none;
      font-size: 1rem;
    }
    
    .file-input-container {
      margin-top: 12px;
    }
    
    .file-input-container label {
      display: block;
      margin-bottom: 5px;
      color: #4cc9f0;
      font-weight: bold;
      font-size: 0.85rem;
    }
    
    .file-input-container input {
      width: 100%;
      padding: 8px;
      border-radius: 8px;
      background: rgba(76, 201, 240, 0.1);
      border: 1px solid rgba(76, 201, 240, 0.3);
      color: white;
      font-size: 0.85rem;
    }
  
    @media (max-width: 768px) {
      .node-info {
        width: 90% !important;
        left: 5% !important;
        top: 10px !important;
        right: auto !important;
        max-height: 75vh;
        overflow-y: auto;
        font-size: 0.9rem;
      }
    }

    .progress-container {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 4px;
      margin-top: 8px;
      overflow: hidden;
    }
    
    .progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #4cc9f0, #1a6dcc);
      border-radius: 4px;
      width: 0%;
      transition: width 0.3s ease;
    }
    
    .current-layer-display {
      margin-top: 8px;
      text-align: center;
      font-size: 1rem;
      color: #4cc9f0;
      font-weight: bold;
    }
    
    .error-message {
      color: #ff6b6b;
      font-size: 0.8rem;
      margin-top: 5px;
      display: none;
    }
    
    .performance-tips {
      background: rgba(255, 107, 107, 0.1);
      border-radius: 8px;
      padding: 10px;
      margin-top: 10px;
      font-size: 0.8rem;
    }
    
    .performance-tips h4 {
      color: #ff6b6b;
      margin-bottom: 5px;
    }
    
    .performance-tips ul {
      padding-left: 20px;
    }
    
    .performance-tips li {
      margin-bottom: 3px;
    }
    
    /* 新增：節點導航按鈕 */
    .nav-buttons {
      display: flex;
      gap: 8px;
      margin-top: 8px;
    }
    
    .nav-buttons button {
      flex: 1;
    }
    
    /* 高亮動畫 */
    @keyframes highlight {
      0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
      50% { transform: scale(1.05); box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.9); }
      100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
    }
    
    .node-highlight {
      animation: highlight 1s ease-in-out;
    }
