    /* Critical CSS for immediate rendering */
    *{margin:0;padding:0;box-sizing:border-box}
    body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}
    .container{width:100%;max-width:800px;margin:0 auto;padding:2rem}
    h1.logo{color:#fff;font-size:3rem;font-weight:700;text-align:center;margin-bottom:0.5rem}
    .subtitle{color:rgba(255,255,255,0.9);text-align:center;margin-bottom:2rem}
    .main-card{background:#fff;border-radius:20px;padding:2rem;box-shadow:0 20px 60px rgba(0,0,0,0.3)}
    .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
    /* ================================================
     新設計樣式 - 手機優先 (2025-01-07)
     ================================================ */

</style>
  <style>
    :root {
      --primary-color: #aeadf0;
      --secondary-color: #C38D94;
      --accent-color: #A76571;
      --dark-color: #565676;
      --light-color: #d8dcff;
      --success-color: #aeadf0;
      --danger-color: #A76571;
      --light-bg: #f5f5fb;
      --border-radius: 8px;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background: linear-gradient(135deg, #d8dcff 0%, #aeadf0 50%, #C38D94 100%);
      min-height: 100vh;
      margin: 0;
      padding-top: 60px; /* 為固定導航欄預留空間 */
    }

    /* 導航欄樣式 - 已改用統一 navbar.tpl，以下樣式已停用 */
    /*
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(86, 86, 118, 0.98);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      height: 70px;
    }

    .navbar-container {
      width: 100%;
      max-width: 1400px !important;
      margin: 0 auto;
      padding: 0 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 100%;
    }

    .navbar-logo {
      text-decoration: none;
      display: inline-flex;
      align-items: center;
    }

    .logo-text {
      font-size: 1.5rem;
      font-weight: 700;
      color: #d8dcff;
    }

    .navbar-toggle {
      display: none;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    .navbar-toggle span {
      display: block;
      width: 25px;
      height: 3px;
      background: #d8dcff;
      margin: 5px 0;
      transition: 0.3s;
    }

    .navbar-collapse {
      display: flex;
      align-items: center;
      gap: 2rem;
      margin-left: auto !important;
      justify-content: flex-end;
      flex: 1;
    }

    .navbar-nav {
      display: flex;
      flex-direction: row;
      list-style: none;
      margin: 0;
      padding: 0;
      gap: 0.5rem;
      align-items: center;
    }

    .navbar-nav li {
      list-style: none;
      display: inline-block;
    }

    .nav-link {
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      transition: all 0.3s;
      white-space: nowrap;
      display: inline-block;
    }

    .nav-link:hover,
    .nav-link.active {
      background: rgba(216, 220, 255, 0.2);
      color: #d8dcff;
    }

    .navbar-actions {
      display: flex;
      flex-direction: row;
      gap: 1rem;
      align-items: center;
    }

    .navbar-user-info {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.25rem 0.75rem;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      margin-right: 0.5rem;
    }

    .navbar-avatar {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .navbar-username {
      color: white;
      font-weight: 500;
      font-size: 0.9rem;
      max-width: 150px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .btn-nav {
      padding: 0.5rem 1rem;
      border-radius: 6px;
      text-decoration: none;
      font-size: 0.9rem;
      transition: all 0.3s;
      color: white;
      white-space: nowrap;
      display: inline-block;
    }

    .btn-nav.btn-outline {
      border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .btn-nav.btn-outline:hover {
      background: rgba(255, 255, 255, 0.1);
    }

    .btn-nav.btn-primary {
      background: linear-gradient(135deg, #aeadf0 0%, #C38D94 100%);
    }
    */

    /* .btn-nav.btn-primary:hover {
      background: linear-gradient(135deg, #C38D94 0%, #A76571 100%);
    } */


    .btn-login:hover {
      background: rgba(174, 173, 240, 0.2);
      transform: translateY(-1px);
    }
    
    .btn-register {
      background: linear-gradient(135deg, #aeadf0 0%, #C38D94 100%);
      color: var(--dark-color);
      border: none;
    }
    
    .btn-register:hover {
      background: linear-gradient(135deg, #C38D94 0%, #A76571 100%);
      color: white;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(229, 178, 93, 0.3);
    }
    
    .btn-dashboard {
      background: rgba(216, 220, 255, 0.2);
      color: #d8dcff;
      border: 1px solid #d8dcff;
    }
    
    .btn-dashboard:hover {
      background: rgba(216, 220, 255, 0.3);
      transform: translateY(-1px);
    }
    
    .btn-logout {
      background: transparent;
      color: rgba(255, 255, 255, 0.8);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .btn-logout:hover {
      background: rgba(255, 255, 255, 0.1);
      color: white;
      border-color: rgba(255, 255, 255, 0.5);
    }
    
    .main-container {
      min-height: calc(100vh - 70px);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 20px 60px;
    }
    
    .url-shortener-card {
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
      padding: 3rem;
      width: 100%;
      max-width: 700px;
      text-align: center;
      position: relative;
      margin-top: 40px;
      margin-bottom: 2rem;
    }
    
    .user-info-bar, .guest-info-bar {
      background: rgba(216, 220, 255, 0.2);
      border-radius: var(--border-radius);
      padding: 1rem;
      margin-bottom: 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      text-align: left;
    }
    
    .guest-info-bar {
      background: rgba(174, 173, 240, 0.2);
    }
    
    .user-welcome, .guest-welcome {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .user-avatar-sm {
      width: 32px;
      height: 32px;
      border-radius: 50%;
    }
    
    .guest-welcome i {
      font-size: 1.5rem;
      color: var(--warning-color);
    }
    
    .user-actions, .guest-actions {
      display: flex;
      gap: 0.5rem;
    }
    
    .btn-sm {
      padding: 0.375rem 0.75rem;
      font-size: 0.875rem;
      border-radius: 4px;
      text-decoration: none;
      transition: all 0.3s ease;
    }
    
    .btn-outline-primary {
      border: 1px solid var(--secondary-color);
      color: var(--accent-color);
      background: transparent;
    }
    
    .btn-outline-primary:hover {
      background: linear-gradient(135deg, #aeadf0 0%, #C38D94 100%);
      color: var(--dark-color);
      border-color: var(--primary-color);
    }
    
    .btn-outline-secondary {
      border: 1px solid var(--accent-color);
      color: var(--dark-color);
      background: transparent;
    }
    
    .btn-outline-secondary:hover {
      background: var(--accent-color);
      color: white;
    }
    
    .logo {
      font-size: 2.5rem;
      font-weight: 700;
      background: linear-gradient(135deg, #C38D94 0%, #A76571 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 0.5rem;
    }
    
    .subtitle {
      color: var(--dark-color);
      font-size: 1.1rem;
      margin-bottom: 2rem;
    }
    
    .url-input-group {
      position: relative;
      margin-bottom: 1.5rem;
    }
    
    .url-input {
      border: 2px solid #e9ecef;
      border-radius: var(--border-radius);
      padding: 0.875rem 1rem;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      width: 100%;
    }
    
    .url-input:focus {
      border-color: var(--secondary-color);
      box-shadow: 0 0 0 0.2rem rgba(229, 178, 93, 0.25);
      outline: none;
    }
    
    .url-input.is-valid {
      border-color: var(--success-color);
    }
    
    .url-input.is-valid:focus {
      border-color: var(--success-color);
      box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    }
    
    .url-input.is-invalid {
      border-color: var(--danger-color);
    }
    
    .url-input.is-invalid:focus {
      border-color: var(--danger-color);
      box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }
    
    .shorten-btn {
      background: linear-gradient(135deg, #aeadf0 0%, #C38D94 100%);
      border: none;
      border-radius: var(--border-radius);
      color: var(--dark-color);
      font-weight: 600;
      padding: 0.875rem 2rem;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      cursor: pointer;
      width: 100%;
    }
    
    .shorten-btn:hover:not(:disabled) {
      background: linear-gradient(135deg, #C38D94 0%, #A76571 100%);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(184, 125, 75, 0.3);
      color: white;
    }
    
    .shorten-btn:disabled {
      background: var(--secondary-color);
      cursor: not-allowed;
    }
    
    .result-container {
      margin-top: 1.5rem;
      padding: 1rem;
      background: var(--light-bg);
      border-radius: var(--border-radius);
      display: none;
      border: 2px solid var(--light-color);
    }
    
    .short-url {
      font-family: 'Courier New', monospace;
      font-size: 1.2rem;
      color: var(--accent-color);
      word-break: break-all;
      margin-bottom: 1rem;
      background: white;
      padding: 0.75rem;
      border-radius: 6px;
      border: 1px solid rgba(242, 221, 110, 0.3);
    }
    
    .copy-btn {
      background: linear-gradient(135deg, #d8dcff 0%, #aeadf0 100%);
      border: none;
      border-radius: var(--border-radius);
      color: var(--dark-color);
      padding: 0.75rem 1.5rem;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 600;
      width: 100%;
      font-size: 1.1rem;
    }
    
    .copy-btn:hover {
      background: linear-gradient(135deg, #aeadf0 0%, #C38D94 100%);
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(229, 178, 93, 0.3);
    }
    
    @media (max-width: 768px) {
      .result-container {
        margin-top: 1rem;
        padding: 1rem 0.75rem;
        border-radius: 12px;
        position: relative;
        animation: slideInUp 0.3s ease;
      }
      
      .short-url {
        font-size: 0.9rem;
        padding: 1rem 0.75rem;
        border-radius: 8px;
        line-height: 1.4;
        text-align: center;
        background: #f8f9fa;
      }
      
      .copy-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 52px;
        border-radius: 10px;
        margin-bottom: 0.5rem;
      }
      
      @keyframes slideInUp {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
    }
    
    /* 統計數據區域 */
    .stats-section {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: 2.5rem;
      margin-bottom: 2rem;
      width: 100%;
      max-width: 900px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    .stats-container {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
      text-align: center;
    }
    
    .stat-item {
      padding: 1rem;
    }
    
    .stat-value {
      font-size: 2.5rem;
      font-weight: 700;
      background: linear-gradient(135deg, #C38D94 0%, #A76571 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 0.5rem;
      display: block;
    }
    
    .stat-label {
      color: var(--dark-color);
      font-size: 0.9rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .features {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: 3rem;
      margin-bottom: 2rem;
      width: 100%;
      max-width: 900px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }
    
    .features-title {
      font-size: 2rem;
      font-weight: 700;
      color: #333;
      margin-bottom: 2rem;
      text-align: center;
    }
    
    .features-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      text-align: center;
    }
    
    .feature-item {
      padding: 1.5rem;
      background: #f8f9fa;
      border-radius: 12px;
      transition: all 0.3s ease;
      text-align: center;
    }
    
    .feature-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      background: white;
    }
    
    .feature-icon {
      font-size: 2rem;
      margin-bottom: 1rem;
      display: inline-block;
      width: 60px;
      height: 60px;
      line-height: 60px;
      background: linear-gradient(135deg, rgba(207, 242, 126, 0.3) 0%, rgba(242, 221, 110, 0.3) 100%);
      border-radius: 50%;
      color: var(--accent-color);
    }
    
    .feature-icon i {
      font-size: 1.5rem;
    }
    
    h3.feature-title,
    .feature-title {
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #333;
      font-size: 1rem;
      line-height: 1.5;
    }
    
    /* Visually hidden but still accessible to screen readers */
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    
    .feature-desc {
      font-size: 0.9rem;
      color: var(--secondary-color);
      line-height: 1.6;
    }
    
    /* 信任標誌區域 */
    .trust-badges {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: 2rem;
      margin-bottom: 2rem;
      width: 100%;
      max-width: 900px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      text-align: center;
    }
    
    .trust-badges-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: #333;
      margin-bottom: 1.5rem;
    }
    
    .badges-container {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 3rem;
      flex-wrap: wrap;
    }
    
    .badge-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--secondary-color);
      font-size: 0.95rem;
    }
    
    .badge-icon {
      font-size: 1.5rem;
      color: var(--light-color);
    }
    
    .footer {
      background: linear-gradient(135deg, #565676 0%, #A76571 100%);
      color: white;
      padding: 3rem 1rem 1.5rem;
      font-size: 0.9rem;
      margin-top: 3rem;
      width: 100%;
    }
    
    .footer-content {
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
    }
    
    .footer-links {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      margin-bottom: 2rem;
      text-align: center;
      justify-items: center;
    }
    
    .footer-section h4 {
      color: rgba(255, 255, 255, 0.95);
      margin-bottom: 1rem;
      font-size: 1rem;
      font-weight: 600;
      text-align: center;
    }
    
    .footer-section nav {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      align-items: center;
    }
    
    .footer-section a {
      color: rgba(255, 255, 255, 0.8);
      text-decoration: none;
      transition: color 0.3s ease;
      font-size: 0.9rem;
      display: inline-block;
      padding: 0.25rem 0.5rem;
    }
    
    .footer-section a:hover {
      color: rgba(255, 255, 255, 1);
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      padding-top: 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* 適應平板和中等螢幕 - 已改用統一 navbar.tpl，以下樣式已停用 */
    /*
    @media (max-width: 992px) {
      .navbar-nav {
        gap: 0.5rem;
      }

      .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
      }

      .nav-link i {
        display: none;
      }

      .btn-nav {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
      }

      .navbar-menu {
        gap: 1rem;
      }

      .logo-subtitle {
        display: none;
      }
    }
    */
    
    /* 響應式導航欄 - 已改用統一 navbar.tpl，以下樣式已停用 */
    /*
    @media (max-width: 768px) {
      .navbar {
        min-height: 60px;
      }

      .navbar-container {
        padding: 0 1rem;
        min-height: 60px;
      }

      .navbar-toggle {
        display: block;
        flex-direction: column;
      }

      .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
      }

      .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
      }

      .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
      }

      .navbar-collapse {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(86, 86, 118, 0.98);
        padding: 2rem 1rem;
        display: none;
        flex-direction: column;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      }

      .navbar-collapse.show {
        display: flex;
      }

      .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
      }

      .nav-item {
        width: 100%;
      }

      .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        justify-content: flex-start;
      }

      .navbar-actions {
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
      }

      .navbar-user-info {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 0.5rem;
        padding: 0.5rem 1rem;
      }

      .btn-nav {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
      }

      .logo-subtitle {
        display: none;
      }
    }
    */
    
    /* 統一的響應式設計 */
    @media (max-width: 768px) {
      body {
        padding-top: 60px;
      }
      
      .main-container {
        padding: 10px;
        min-height: calc(100vh - 60px);
      }
      
      .url-shortener-card {
        margin-top: 20px;
        margin-bottom: 1.5rem;
        padding: 2rem 1.5rem;
      }
      
      .stats-section {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
      }
      
      .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
      }
      
      .stat-value {
        font-size: 2rem;
      }
      
      .stat-label {
        font-size: 0.8rem;
      }
      
      .features {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
      }
      
      .features-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
      }
      
      .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
      }
      
      .feature-item {
        padding: 1.2rem;
      }
      
      .feature-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        margin-bottom: 0.8rem;
      }
      
      .feature-icon i {
        font-size: 1.3rem;
      }
      
      h3.feature-title,
      .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
      }
      
      .feature-desc {
        font-size: 0.85rem;
      }
      
      .trust-badges {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
      }
      
      .trust-badges-title {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
      }
      
      .badges-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
      }
      
      .badge-item {
        font-size: 0.85rem;
      }
      
      .badge-icon {
        font-size: 1.2rem;
      }
      
      .footer {
        margin-top: 2rem;
        padding: 2rem 1rem 1.5rem;
        font-size: 0.85rem;
      }
      
      .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
      }
      
      .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
      }
      
      .footer-section nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
      }
      
      .footer-section a {
        font-size: 0.85rem;
      }
    }
    
    @media (max-width: 768px) {
      .url-shortener-card {
        margin: 0.25rem;
        padding: 1rem 0.75rem;
        max-width: calc(100vw - 0.5rem);
        border-radius: 12px;
      }
      
      .logo {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
      }
      
      .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
      }
      
      .features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
      }
      
      .main-container {
        padding: 5px;
        min-height: auto;
      }
      
      /* 手機版全螢幕優化 */
      body {
        overflow-x: hidden;
      }
    }
      
      /* 手機版用戶資訊列 */
      .user-info-bar, .guest-info-bar {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        text-align: left;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
        font-size: 0.85rem;
      }
      
      .user-welcome, .guest-welcome {
        justify-content: flex-start;
        font-size: 0.9rem;
        margin-right: auto;
      }
      
      .user-actions, .guest-actions {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.3rem;
        margin-left: auto;
      }
      
      .user-actions .btn, .guest-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
      }
      
      /* 手機版標籤按鈕 */
      .function-tabs {
        flex-wrap: nowrap;
        gap: 0.25rem;
        justify-content: center;
        margin-bottom: 1.25rem;
      }
      
      .function-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        flex: 1;
        min-width: 70px;
        border-radius: 8px;
        text-align: center;
        transition: all 0.2s ease;
      }
      
      .function-tab i {
        display: block;
        margin-bottom: 0.2rem;
        font-size: 1.1rem;
      }
      
      /* 手機版輸入框 */
      .url-input {
        font-size: 16px; /* 防止iOS縮放 */
        padding: 1rem 0.75rem;
        border-radius: 10px;
        line-height: 1.2;
        min-height: 48px; /* 觸控友好最小高度 */
        border: 2px solid #e9ecef;
      }
      
      .url-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
        transform: none; /* 防止變形 */
      }
      
      .shorten-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-height: 52px;
        border-radius: 10px;
        font-weight: 600;
        margin-top: 0.75rem;
      }
      
      .url-input-group {
        margin-bottom: 0.75rem;
      }
      
      /* 說明文字優化 */
      .url-input-group small {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-top: 0.4rem;
      }
      
      /* 手機版設定面板 */
      .settings-panel {
        padding: 0.75rem;
        border-radius: 8px;
        margin-top: 0.5rem;
      }
      
      .setting-group {
        margin-bottom: 0.75rem;
      }
      
      .setting-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
      }
      
      .setting-group .form-control {
        font-size: 16px; /* 防止iOS縮放 */
        padding: 0.6rem 0.75rem;
        border-radius: 6px;
        min-height: 42px;
      }
      
      .settings-toggle {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
        min-height: 44px;
        margin-bottom: 0.5rem;
      }
      
      .advanced-settings {
        margin-bottom: 0.75rem;
      }
      
      /* 手機版密碼快選按鈕 */
      .password-quick-select {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-start;
      }
      
      .password-quick-select .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        min-height: 32px;
        min-width: 50px;
        margin-bottom: 0.2rem;
      }
      
      .password-quick-select small {
        width: 100%;
        margin-bottom: 0.3rem;
        font-size: 0.8rem;
      }
    }
    
    .loading {
      display: inline-block;
      width: 20px;
      height: 20px;
      border: 3px solid #ffffff;
      border-radius: 50%;
      border-top-color: transparent;
      animation: spin 1s ease-in-out infinite;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    /* 上傳進度條樣式 */
    .upload-progress-wrapper {
      margin: 1.5rem 0;
      padding: 1.5rem;
      background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .upload-progress-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.75rem;
    }
    
    .upload-filename {
      font-size: 0.9rem;
      color: #495057;
      font-weight: 500;
      max-width: 70%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .upload-percent {
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--primary-color);
      min-width: 50px;
      text-align: right;
    }
    
    .upload-progress-bar {
      width: 100%;
      height: 24px;
      background: #e9ecef;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
      position: relative;
    }
    
    .upload-progress-fill {
      height: 100%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 12px;
      transition: width 0.3s ease;
      position: relative;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .upload-progress-fill::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
      );
      animation: shimmer 2s infinite;
    }
    
    @keyframes shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }
    
    .upload-speed-info {
      display: flex;
      justify-content: space-between;
      margin-top: 0.75rem;
      font-size: 0.8rem;
      color: #6c757d;
    }
    
    .upload-speed, .upload-remaining {
      font-weight: 500;
    }
    
    /* 多檔案上傳進度 */
    .multi-upload-progress {
      margin-top: 1rem;
    }
    
    .file-upload-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0.75rem;
      background: white;
      border-radius: 8px;
      margin-bottom: 0.5rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .file-upload-item .file-icon {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f0f2f5;
      border-radius: 6px;
      color: var(--primary-color);
    }
    
    .file-upload-item .file-info {
      flex: 1;
    }
    
    .file-upload-item .file-name {
      font-size: 0.875rem;
      font-weight: 500;
      color: #495057;
      margin-bottom: 0.25rem;
    }
    
    .file-upload-item .file-progress {
      height: 4px;
      background: #e9ecef;
      border-radius: 2px;
      overflow: hidden;
    }
    
    .file-upload-item .file-progress-fill {
      height: 100%;
      background: var(--success-color);
      transition: width 0.3s ease;
    }
    
    .file-upload-item .file-status {
      font-size: 0.75rem;
      color: #6c757d;
      min-width: 60px;
      text-align: right;
    }
    
    .file-upload-item.complete .file-status {
      color: var(--success-color);
      font-weight: 600;
    }
    
    .file-upload-item.error .file-status {
      color: var(--danger-color);
    }
    
    /* 功能切換標籤 */
    .function-tabs {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 2rem;
    }
    
    .function-tab {
      background: transparent;
      border: 2px solid rgba(242, 221, 110, 0.3);
      border-radius: var(--border-radius);
      padding: 0.75rem 1.5rem;
      font-size: 1rem;
      color: var(--dark-color);
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .function-tab:hover {
      border-color: var(--secondary-color);
      color: var(--secondary-color);
      background: rgba(242, 221, 110, 0.1);
    }
    
    .function-tab.active {
      background: linear-gradient(135deg, #aeadf0 0%, #C38D94 100%);
      border-color: var(--secondary-color);
      color: var(--dark-color);
      font-weight: 600;
    }
    
    /* 上傳區域 */
    .upload-area {
      border: 2px dashed #e9ecef;
      border-radius: var(--border-radius);
      padding: 3rem 2rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-bottom: 1.5rem;
      background: #f8f9fa;
    }
    
    .upload-area:hover {
      border-color: var(--primary-color);
      background: rgba(0, 123, 255, 0.05);
    }
    
    .upload-area.dragover,
    .upload-area.drag-over {
      border-color: var(--success-color);
      background: rgba(40, 167, 69, 0.1);
      transform: scale(1.02);
    }
    
    .upload-area.has-file {
      border-color: var(--success-color);
      background: rgba(40, 167, 69, 0.1);
    }
    
    .upload-icon {
      font-size: 3rem;
      color: var(--secondary-color);
      margin-bottom: 1rem;
    }
    
    .upload-area:hover .upload-icon,
    .upload-area.dragover .upload-icon {
      color: var(--primary-color);
    }
    
    .upload-area.has-file .upload-icon {
      color: var(--success-color);
    }
    
    .upload-text h4 {
      margin-bottom: 0.5rem;
      color: #333;
    }
    
    .upload-text p {
      margin-bottom: 0.5rem;
      color: var(--secondary-color);
    }
    
    .upload-text small {
      color: #999;
    }
    
    .file-info {
      margin-top: 1rem;
      padding: 1rem;
      background: white;
      border-radius: var(--border-radius);
      border: 1px solid #e9ecef;
      display: none;
    }
    
    .file-info.show {
      display: block;
    }
    
    .file-details {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }
    
    .file-name {
      font-weight: 600;
      color: #333;
    }
    
    .file-size {
      color: var(--secondary-color);
      font-size: 0.9rem;
    }
    
    .progress-bar {
      width: 100%;
      height: 4px;
      background: #e9ecef;
      border-radius: 2px;
      overflow: hidden;
    }
    
    .progress-fill {
      height: 100%;
      background: var(--success-color);
      width: 0%;
      transition: width 0.3s ease;
    }
    
    /* 多圖片預覽樣式 */
    .images-preview-container {
      width: 100%;
      margin-top: 1rem;
      padding: 1rem;
      background: rgba(0, 0, 0, 0.02);
      border-radius: var(--border-radius);
      border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .images-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
      gap: 0.75rem;
      margin-bottom: 1rem;
    }
    
    .image-preview-item {
      position: relative;
      border-radius: var(--border-radius);
      overflow: hidden;
      background: #fff;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      aspect-ratio: 1;
      transition: all 0.3s ease;
    }
    
    .image-preview-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .image-preview-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    
    .image-preview-item .image-actions {
      position: absolute;
      top: 5px;
      right: 5px;
      display: flex;
      gap: 5px;
      opacity: 0;
      transition: opacity 0.3s;
    }
    
    .image-preview-item:hover .image-actions {
      opacity: 1;
    }
    
    .image-preview-item .edit-btn,
    .image-preview-item .remove-btn {
      background: rgba(0, 0, 0, 0.7);
      color: white;
      border: none;
      border-radius: 50%;
      width: 28px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.3s;
    }
    
    .image-preview-item .edit-btn:hover {
      background: rgba(0, 123, 255, 0.9);
    }
    
    .image-preview-item .remove-btn:hover {
      background: rgba(220, 53, 69, 0.9);
    }
    
    .image-preview-item.add-more {
      cursor: pointer;
      background: #f8f9fa;
    }
    
    .images-count {
      text-align: center;
      color: #666;
      font-size: 0.9rem;
      padding-top: 0.5rem;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* 圖片編輯器模態框 */
    .image-editor-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 10000;
    }
    
    .image-editor-modal.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .editor-container {
      background: white;
      border-radius: 8px;
      width: 95%;
      max-width: 1200px;
      height: 90vh;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
    
    .editor-header {
      padding: 1rem;
      border-bottom: 1px solid #e9ecef;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
    }
    
    .editor-title {
      font-size: 1.2rem;
      font-weight: 600;
    }
    
    .editor-body {
      flex: 1;
      display: flex;
      overflow: hidden;
      min-height: 0;
    }
    
    .editor-canvas-container {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f8f9fa;
      position: relative;
      overflow: hidden;
    }
    
    .editor-canvas {
      max-width: 100%;
      max-height: 100%;
      cursor: move;
    }
    
    .editor-toolbar {
      width: 280px;
      background: white;
      border-left: 1px solid #e9ecef;
      padding: 1rem;
      overflow-y: auto;
      overflow-x: hidden;
      max-height: 100%;
    }
    
    /* 工具欄滾動條樣式 */
    .editor-toolbar::-webkit-scrollbar {
      width: 6px;
    }
    
    .editor-toolbar::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 3px;
    }
    
    .editor-toolbar::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 3px;
    }
    
    .editor-toolbar::-webkit-scrollbar-thumb:hover {
      background: #555;
    }
    
    .editor-tool {
      margin-bottom: 1rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid #f0f0f0;
    }
    
    .editor-tool:last-child {
      border-bottom: none;
    }
    
    .editor-tool-title {
      font-size: 0.75rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #6c757d;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .editor-tool-buttons {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.35rem;
    }
    
    /* 濾鏡按鈕特殊處理 */
    .editor-tool:nth-child(2) .editor-tool-buttons {
      grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
    }
    
    .editor-tool-btn {
      padding: 0.35rem 0.5rem;
      border: 1px solid #dee2e6;
      background: white;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.75rem;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.25rem;
      min-height: 32px;
    }
    
    .editor-tool-btn i {
      font-size: 0.85rem;
    }
    
    .editor-tool-btn:hover {
      background: #007bff;
      color: white;
      border-color: #007bff;
    }
    
    .editor-tool-btn.active {
      background: #007bff;
      color: white;
      border-color: #007bff;
    }
    
    .mosaic-size-control {
      margin-top: 0.5rem;
    }
    
    /* 編輯器調整控制項 */
    .editor-adjustments {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-top: 0.25rem;
    }
    
    .adjustment-item {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }
    
    .adjustment-item label {
      font-size: 0.75rem;
      color: #6c757d;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: 500;
    }
    
    .adjustment-item input[type="range"] {
      width: 100%;
      height: 4px;
      border-radius: 2px;
      background: #e9ecef;
      outline: none;
      -webkit-appearance: none;
      cursor: pointer;
    }
    
    .adjustment-item input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--primary-color, #007bff);
      cursor: pointer;
    }
    
    .adjustment-item input[type="range"]::-moz-range-thumb {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--primary-color, #007bff);
      cursor: pointer;
      border: none;
    }
    
    /* 插圖工具樣式 */
    .draw-tools {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-top: 0.25rem;
    }
    
    .draw-tools .editor-tool-buttons {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .draw-color-picker {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.35rem;
      background: #f8f9fa;
      border-radius: 4px;
      margin-bottom: 0.5rem;
    }
    
    .draw-color-picker label {
      font-size: 0.75rem;
      color: #6c757d;
      font-weight: 500;
    }
    
    .draw-color-picker input[type="color"] {
      width: 45px;
      height: 28px;
      border: 1px solid #dee2e6;
      border-radius: 4px;
      cursor: pointer;
      padding: 2px;
    }
    
    .draw-color-picker input[type="color"]:hover {
      border-color: #007bff;
    }
    
    /* 裁切比例按鈕 */
    .crop-ratios {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.35rem;
      margin: 0.5rem 0;
    }
    
    .crop-ratios .editor-tool-btn {
      font-size: 0.75rem;
      padding: 0.35rem 0.5rem;
      min-height: 28px;
    }
    
    /* 主要操作按鈕 */
    .editor-tool-btn.primary {
      background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
      color: white;
      border: none;
      font-weight: 500;
    }
    
    .editor-tool-btn.primary:hover {
      background: linear-gradient(135deg, #0056b3 0%, #003f7f 100%);
      transform: translateY(-1px);
    }
    
    /* 濾鏡按鈕樣式 */
    .filter-btn {
      min-width: 70px;
      font-size: 0.85rem;
    }
    
    .filter-btn.active {
      background: linear-gradient(135deg, #aeadf0 0%, #C38D94 100%);
      color: white;
      border-color: transparent;
    }
    
    .mosaic-size-label {
      font-size: 0.85rem;
      color: #6c757d;
    }
    
    .mosaic-size-slider {
      width: 100%;
      margin-top: 0.25rem;
    }
    
    /* 圖片編輯器手機版優化 */
    @media (max-width: 768px) {
      .editor-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
      }
      
      .editor-body {
        flex-direction: column;
      }
      
      .editor-toolbar {
        width: 100%;
        height: 35vh;
        max-height: 35vh;
        border-left: none;
        border-top: 2px solid #e9ecef;
        padding: 0.75rem;
        order: 2;
      }
      
      .editor-canvas-container {
        order: 1;
        flex: 1;
        min-height: 0;
      }
      
      .editor-tool {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
      }
      
      .editor-tool-title {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
      }
      
      .editor-tool-btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.35rem;
        min-height: 26px;
      }
      
      .editor-tool-btn i {
        font-size: 0.75rem;
      }
      
      .editor-tool-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
      }
      
      .adjustment-item label {
        font-size: 0.7rem;
      }
      
      .draw-tools .editor-tool-buttons {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .crop-ratios {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
      }
    }
    
    .editor-footer {
      padding: 1rem;
      border-top: 1px solid #e9ecef;
      display: flex;
      justify-content: flex-end;
      gap: 0.5rem;
    }
    
    .image-preview img {
      width: 100%;
      height: auto;
      max-height: 300px;
      object-fit: contain;
      display: block;
      background: #f8f9fa;
    }
    
    .image-preview-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .image-preview:hover .image-preview-overlay {
      opacity: 1;
    }
    
    .image-preview-actions {
      display: flex;
      gap: 0.5rem;
    }
    
    .image-preview-actions .btn {
      border-radius: 20px;
      padding: 0.4rem 0.8rem;
      font-size: 0.85rem;
      font-weight: 500;
      transition: all 0.3s ease;
    }
    
    .image-preview-actions .btn:hover {
      transform: scale(1.05);
    }
    
    .image-info {
      padding: 1rem;
      background: white;
      border: 1px solid #e9ecef;
      border-top: none;
      border-bottom-left-radius: var(--border-radius);
      border-bottom-right-radius: var(--border-radius);
    }
    
    .image-details {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    .image-name {
      font-weight: 600;
      color: #333;
      font-size: 0.9rem;
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .image-size {
      color: var(--secondary-color);
      font-size: 0.85rem;
      font-weight: 500;
    }
    
    /* 上傳區域狀態 */
    .upload-area.has-image {
      border-color: var(--success-color);
      background: rgba(40, 167, 69, 0.05);
    }
    
    .upload-area.has-image .upload-icon,
    .upload-area.has-image .upload-text {
      display: none;
    }
    
    /* 響應式設計 */
    @media (max-width: 768px) {
      .image-preview {
        max-width: 100%;
      }
      
      .image-details {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .image-preview-actions {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        gap: 1rem;
      }
      
      .image-preview-actions .btn {
        justify-content: center;
        flex: 1;
        min-width: 80px;
      }
      
      /* 手機版上傳區域 */
      .upload-area {
        padding: 2rem 0.75rem 1.5rem;
        margin-bottom: 0.75rem;
        border-radius: 12px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }
      
      .upload-icon {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
      }
      
      .upload-text h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
      }
      
      .upload-text p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        text-align: center;
      }
      
      .upload-text small {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.3;
      }
      
      /* 手機版檔案資訊 */
      .file-info {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 8px;
      }
      
      .file-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
      }
      
      .file-name {
        font-size: 0.85rem;
        word-break: break-all;
      }
      
      .file-size {
        font-size: 0.8rem;
      }
      
      /* 手機版圖片預覽 */
      .image-preview {
        max-width: 100%;
        border-radius: 8px;
      }
      
      .image-preview img {
        max-height: 250px;
      }
      
      .image-info {
        padding: 0.75rem;
        border-radius: 0 0 8px 8px;
      }
    }
    
    /* 進階設定提示文字 */
    .settings-hint {
      text-align: center;
      margin: 1rem 0 0.5rem 0;
      padding: 0.5rem;
      background: linear-gradient(90deg, transparent, #f8f9fa, transparent);
      border-radius: 6px;
    }
    
    .settings-hint small {
      color: #6c757d;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }
    
    .settings-hint i {
      color: #667eea;
      font-size: 0.9rem;
      animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.6; }
    }
    
    /* 手機版提示文字 */
    @media (max-width: 576px) {
      .settings-hint small {
        font-size: 0.8rem;
      }
    }
    
    /* 進階設定樣式 - 改進視覺清晰度 */
    .advanced-settings {
      margin: 0.5rem 0 1rem 0;
      position: relative;
    }
    
    .settings-toggle {
      background: #f8f9fa;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 0.6rem 1rem;
      color: #495057;
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 500;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    
    /* 手機版按鈕調整 */
    @media (max-width: 576px) {
      .settings-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        gap: 0.4rem;
      }
    }
    
    .settings-toggle::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: rgba(255, 255, 255, 0.2);
      transition: left 0.5s ease;
    }
    
    .settings-toggle:hover::before {
      left: 100%;
    }
    
    .settings-toggle:hover {
      background: white;
      border-color: #667eea;
      color: #667eea;
    }
    
    .settings-toggle.active {
      background: #667eea;
      border-color: #667eea;
      color: white;
    }
    
    .settings-toggle i {
      font-size: 1.1rem;
      transition: transform 0.5s ease;
    }
    
    .settings-toggle:hover i {
      transform: rotate(180deg);
    }
    
    .settings-panel {
      margin-top: 1rem;
      padding: 1rem;
      background: linear-gradient(to bottom, #ffffff, #f8f9fa);
      border: 1px solid #e1e5f0;
      border-radius: 12px;
      animation: slideDown 0.4s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
      position: relative;
    }
    
    /* 手機版設定面板調整 */
    @media (max-width: 576px) {
      .settings-panel {
        padding: 0.75rem;
        margin-top: 0.75rem;
      }
    }
    
    
    @keyframes slideDown {
      from { 
        opacity: 0; 
        transform: translateY(-20px);
      }
      to { 
        opacity: 1; 
        transform: translateY(0);
      }
    }
    
    .setting-group {
      margin-bottom: 1rem;
      padding: 0.75rem;
      background: white;
      border-radius: 8px;
      border: 1px solid #e9ecef;
      transition: all 0.3s ease;
    }
    
    .setting-group:hover {
      border-color: #667eea;
      box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    }
    
    .setting-group:last-child {
      margin-bottom: 0;
    }
    
    .setting-group label {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: 0.5rem;
      font-weight: 600;
      color: #2d3748;
      font-size: 0.9rem;
    }
    
    .setting-group label i {
      font-size: 0.9rem;
      flex-shrink: 0;
    }
    
    .setting-group .form-control,
    .setting-group select {
      width: 100%;
      padding: 0.5rem 0.75rem;
      border: 1px solid #ced4da;
      border-radius: 6px;
      font-size: 0.9rem;
      transition: all 0.3s ease;
      background: white;
    }
    
    .setting-group .form-control:focus,
    .setting-group select:focus {
      border-color: #667eea;
      outline: none;
      box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
      background: white;
    }
    
    .setting-group small.text-muted {
      display: block;
      margin-top: 0.4rem;
      padding: 0.4rem 0.6rem;
      background: #f8f9fa;
      border-radius: 4px;
      font-size: 0.8rem;
      color: #6c757d;
    }
    
    .setting-group small.text-muted i {
      color: #667eea;
      font-size: 0.8rem;
    }
    
    /* 手機版響應式調整 */
    @media (max-width: 576px) {
      .setting-group {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
      }
      
      .setting-group label {
        font-size: 0.85rem;
        gap: 0.3rem;
      }
      
      .setting-group label i {
        font-size: 0.85rem;
      }
      
      .setting-group .form-control,
      .setting-group select {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
      }
      
      .setting-group small.text-muted {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
      }
    }
    
    /* 密碼快選樣式 - 改進視覺設計 */
    .password-quick-select {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.3rem;
      margin-top: 0.5rem;
      padding: 0.5rem;
      background: #f8f9fa;
      border-radius: 6px;
      border: 1px solid #e9ecef;
    }
    
    .password-quick-select small.text-muted {
      font-weight: 500;
      color: #495057;
      padding: 0;
      background: none;
      margin: 0;
      font-size: 0.8rem;
    }
    
    .password-quick-select .btn {
      font-size: 0.75rem;
      padding: 0.25rem 0.5rem;
      border-radius: 15px;
      transition: all 0.3s ease;
      line-height: 1.2;
      font-weight: 500;
      border: 1px solid;
      position: relative;
      overflow: hidden;
    }
    
    /* 手機版密碼快選調整 */
    @media (max-width: 576px) {
      .password-quick-select {
        padding: 0.4rem;
        gap: 0.25rem;
      }
      
      .password-quick-select small.text-muted {
        font-size: 0.75rem;
      }
      
      .password-quick-select .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
      }
    }
    
    .password-quick-select .btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.3s, height 0.3s;
    }
    
    .password-quick-select .btn:hover::before {
      width: 100px;
      height: 100px;
    }
    
    .password-quick-select .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    .password-quick-select .btn-outline-secondary {
      border-color: #dee2e6;
      color: #6c757d;
    }
    
    .password-quick-select .btn-outline-secondary:hover {
      background-color: var(--primary-color);
      border-color: var(--primary-color);
      color: white;
    }
    
    .password-quick-select .btn-outline-primary:hover {
      background-color: #0056b3;
      border-color: #0056b3;
      color: white;
    }
    
    .password-quick-select .btn-outline-success:hover {
      background-color: #198754;
      border-color: #198754;
      color: white;
    }
    
    /* 密碼輸入框臨時高亮效果 */
    .password-input-highlight {
      background-color: #e7f3ff !important;
      border-color: #007bff !important;
      transition: all 0.3s ease !important;
    }
    
    /* 會員專享選項樣式 */
    .member-only {
      background-color: rgba(255, 193, 7, 0.1) !important;
      color: #856404 !important;
      font-style: italic;
    }
    
    .member-only:disabled {
      background-color: rgba(108, 117, 125, 0.1) !important;
      color: #6c757d !important;
      cursor: not-allowed;
    }
    
    .guest-limit-hint {
      font-size: 0.8rem;
      line-height: 1.3;
    }
    
    .guest-limit-hint a {
      color: var(--primary-color);
      text-decoration: none;
      font-weight: 500;
    }
    
    .guest-limit-hint a:hover {
      text-decoration: underline;
    }
    
    @media (max-width: 768px) {
      .guest-limit-hint {
        font-size: 0.75rem;
        text-align: center;
        padding: 0.4rem 0.6rem;
        background: rgba(255, 193, 7, 0.1);
        border-radius: 6px;
        margin-top: 0.4rem;
      }
      
      .member-notification {
        padding: 0.75rem;
        margin: 0.5rem 0;
        font-size: 0.85rem;
        text-align: center;
        border-radius: 8px;
      }
      
      /* 手機版功能特色 */
      .feature-item {
        padding: 0.75rem 0.5rem;
        text-align: center;
      }
      
      .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
      }
      
      h3.feature-title,
      .feature-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
      }
      
      .feature-desc {
        font-size: 0.8rem;
        line-height: 1.3;
      }
    }
    
    /* 會員專享提示動畫 */
    .member-hint-show {
      animation: fadeInUp 0.3s ease;
    }
    
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    @keyframes slideInRight {
      from {
        opacity: 0;
        transform: translateX(100%);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }
    
    /* 會員升級通知樣式 */
    .member-notification {
      border-radius: 8px;
      border: 1px solid #ffc107;
      background: linear-gradient(45deg, #fff3cd, #fef9e7);
    }
    
    .member-notification .fas.fa-crown {
      font-size: 1.2rem;
      animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }
    
    .checkbox-label {
      display: flex !important;
      align-items: center;
      gap: 0.5rem;
      font-weight: normal !important;
      cursor: pointer;
    }
    
    .checkbox-label input[type="checkbox"] {
      width: auto;
      margin: 0;
    }
    
    /* 設定面板特殊樣式 */
    .settings-panel .form-control::placeholder {
      color: #999;
      font-style: italic;
    }
    
    .settings-info {
      background: rgba(0, 123, 255, 0.1);
      border: 1px solid rgba(0, 123, 255, 0.2);
      border-radius: 4px;
      padding: 0.75rem;
      margin-bottom: 1rem;
      font-size: 0.85rem;
      color: var(--primary-color);
    }
    
    .settings-warning {
      background: rgba(220, 53, 69, 0.1);
      border: 1px solid rgba(220, 53, 69, 0.2);
      border-radius: 4px;
      padding: 0.75rem;
      margin-bottom: 1rem;
      font-size: 0.85rem;
      color: var(--danger-color);
    }
    /* ================================================
     新設計樣式 - 手機優先 (2025-01-07)
     ================================================ */

</style>
