/* 🐕 小狗的家 — components.css */

    /* ========== 登录页面 ========== */
    .login-container {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      padding: 20px;
    }
    .login-box {
      background: var(--c-card);
      padding: 44px 32px;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      animation: slideUp 0.7s var(--ease-out) both;
      border: 1px solid rgba(255, 200, 150, 0.2);
      text-align: center;
      max-width: 400px;
      width: 100%;
    }
    .login-title {
      font-size: 28px;
      color: #e07b39;
      margin-bottom: 10px;
    }
    .login-subtitle {
      color: #b8860b;
      margin-bottom: 30px;
      font-size: 14px;
    }
    .login-input {
      width: 100%;
      padding: 15px;
      border: 2px solid #ffe0c0;
      border-radius: 10px;
      font-size: 16px;
      margin-bottom: 20px;
      outline: none;
      transition: border-color 0.3s;
    }
    .login-input:focus {
      border-color: #e07b39;
    }
    .login-btn {
      width: 100%;
      padding: 15px;
      background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-primary) 100%);
      color: white;
      border: none;
      border-radius: var(--radius-sm);
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s var(--ease-spring);
      letter-spacing: 0.03em;
    }
    .login-btn:hover {
      transform: translateY(-2px) scale(1.01);
      box-shadow: var(--shadow-glow);
    }
    .login-btn:active {
      transform: translateY(0) scale(0.98);
      transition-duration: 0.1s;
    }
    .login-error {
      color: #c75000;
      margin-top: 15px;
      display: none;
    }
    
    /* ========== 主页面容器 ========== */
    .main-container { display: none; }
    .main-container.active { display: block; }
    .login-container.hidden { display: none; }
    
    /* ========== 导航栏 ========== */
    .navbar {
      background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-primary) 100%);
      padding: 12px 15px;
      box-shadow: 0 4px 20px rgba(224, 123, 57, 0.25), 0 1px 3px rgba(0,0,0,0.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .navbar-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    .navbar-title {
      color: white;
      font-size: 18px;
      font-weight: bold;
    }
    .navbar-links {
      display: flex;
      gap: 8px;
      align-items: center;
      overflow-x: auto;
      overflow-y: visible;
      -webkit-overflow-scrolling: touch;
      padding: 4px 0;
    }
    .navbar-links::-webkit-scrollbar {
      display: none;
    }
    .nav-link {
      background: rgba(255,255,255,0.15);
      color: white;
      padding: 8px 16px;
      border-radius: var(--radius-pill);
      text-decoration: none;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.3s var(--ease-out);
      border: 1px solid rgba(255,255,255,0.1);
      white-space: nowrap;
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      height: 36px;
      line-height: 1;
      letter-spacing: 0.02em;
    }
    .nav-link:hover {
      background: rgba(255,255,255,0.28);
      transform: translateY(-1px);
      border-color: rgba(255,255,255,0.25);
    }
    .nav-link.active {
      background: rgba(255,255,255,0.35);
      border-color: rgba(255,255,255,0.3);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .logout-btn {
      background: rgba(255,255,255,0.15);
      color: white;
      padding: 6px 12px;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.3);
      cursor: pointer;
      font-size: 12px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    
    /* 桌面端导航栏 - 单行布局 */
    @media (min-width: 768px) {
      .navbar {
        padding: 15px 30px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
      }
      .navbar-top {
        display: contents;
        margin-bottom: 0;
      }
      .navbar-title {
        font-size: 20px;
        order: 1;
      }
      .navbar-links {
        flex: 1;
        justify-content: center;
        gap: 10px;
        order: 2;
      }
      .logout-btn {
        order: 3;
      }
      .nav-link {
        padding: 10px 18px;
        font-size: 14px;
      }
    }
    
    /* ========== 内容区域 ========== */
    .content {
      max-width: 800px;
      margin: 0 auto;
      padding: 15px;
      padding-bottom: 100px;
    }
    @media (min-width: 768px) {
      .content {
        padding: 30px 20px;
        padding-bottom: 50px;
      }
    }
    .page { display: none; }
    .page.active { display: block; }
    
    .card {
      background: var(--c-card);
      border-radius: var(--radius-md);
      padding: 20px;
      margin-bottom: 16px;
      box-shadow: var(--shadow-md);
      border: 1px solid rgba(240, 220, 195, 0.3);
      transition: box-shadow 0.3s var(--ease-out);
    }
    @media (min-width: 768px) {
      .card {
        padding: 25px;
        margin-bottom: 20px;
      }
    }
    .card-title {
      color: var(--c-primary);
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 10px;
      letter-spacing: 0.02em;
    }
    @media (min-width: 768px) {
      .card-title {
        font-size: 20px;
      }
    }
    
    /* ========== 按钮样式 ========== */
    .btn {
      padding: 10px 20px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s;
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-primary) 100%);
      color: white;
      border: none;
      font-weight: 500;
      letter-spacing: 0.02em;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-glow);
      filter: brightness(1.05);
    }
    .btn-primary:active {
      transform: translateY(0) scale(0.97);
      box-shadow: none;
      transition-duration: 0.1s;
    }
    .btn-secondary {
      background: #f5f5f5;
      color: #666;
    }
    .btn-small {
      padding: 6px 12px;
      font-size: 12px;
    }
    
    /* ========== 输入框 ========== */
    .input, .textarea {
      width: 100%;
      padding: 12px 14px;
      border: 2px solid var(--c-border);
      border-radius: var(--radius-sm);
      font-size: 16px;
      outline: none;
      margin-bottom: 10px;
      -webkit-appearance: none;
      background: #fefcfa;
      transition: border-color 0.25s, box-shadow 0.25s;
    }
    .input:focus, .textarea:focus {
      border-color: var(--c-primary);
      box-shadow: 0 0 0 3px var(--c-primary-glow);
      background: white;
    }
    .textarea { 
      min-height: 100px; 
      resize: vertical; 
      font-family: inherit; 
    }
    
    /* ========== 悬浮按钮 (FAB) ========== */
    .fab {
      position: fixed;
      bottom: 25px;
      right: 25px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-primary) 100%);
      color: white;
      border: none;
      box-shadow: 0 4px 20px rgba(224, 123, 57, 0.4), 0 0 0 0 rgba(224, 123, 57, 0);
      cursor: pointer;
      font-size: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.35s var(--ease-spring);
      z-index: 200;
      animation: gentleBob 3s ease-in-out infinite;
    }
    .fab:hover {
      transform: scale(1.12);
      box-shadow: 0 6px 28px rgba(224, 123, 57, 0.5), 0 0 0 6px rgba(224, 123, 57, 0.12);
      animation: none;
    }
    .fab:active {
      transform: scale(0.92);
      transition-duration: 0.12s;
    }
    @media (min-width: 768px) {
      .fab {
        bottom: 30px;
        right: 30px;
        width: 65px;
        height: 65px;
        font-size: 30px;
      }
    }
    
    /* ========== Modal 弹窗 ========== */
        .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: flex-end;
      justify-content: center;
      z-index: 300;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
    }
    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    .modal {
      background: var(--c-card);
      width: 100%;
      max-width: 500px;
      border-radius: var(--radius-lg) var(--radius-lg) 0 0;
      padding: 22px;
      transform: translateY(100%);
      transition: transform 0.4s var(--ease-out);
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
    }
    .modal-overlay.active .modal {
      transform: translateY(0);
    }
    @media (min-width: 768px) {
          .modal-overlay {
        align-items: center;
      }
      .modal {
        border-radius: 20px;
        max-height: 70vh;
      }
    }
    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    .modal-title {
      font-size: 18px;
      color: #e07b39;
      font-weight: bold;
    }
    .modal-close {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: #f5f5f5;
      color: #666;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .modal-close:hover {
      background: #eee;
    }
    .modal-body select {
      width: 100%;
      padding: 12px;
      border: 2px solid #ffe0c0;
      border-radius: 8px;
      font-size: 16px;
      margin-bottom: 10px;
      background: white;
      -webkit-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e07b39' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
    }
    .modal-footer {
      display: flex;
      gap: 10px;
      margin-top: 15px;
    }
    .modal-footer .btn {
      flex: 1;
      padding: 10px 12px;
      font-size: 13px;
    }
    
    /* ========== 空状态 ========== */
        .empty-state {
      color: #999;
      text-align: center;
      padding: 40px 20px;
      font-size: 14px;
    }
