/* ============================================================
   ToolHub · AI 工具集 - 设计系统
   ============================================================ */

:root {
  /* 色彩系统 */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-bg: #eff6ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --purple: #8b5cf6;
  --purple-bg: #f5f3ff;
  --teal: #14b8a6;
  --teal-bg: #f0fdfa;
  --orange: #f97316;
  --orange-bg: #fff7ed;
  --pink: #ec4899;
  --pink-bg: #fdf2f8;
  --indigo: #6366f1;
  --indigo-bg: #eef2ff;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.14);

  /* 过渡 */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ============================================================
   登录页
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #f5f3ff 100%);
  padding: 24px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  max-width: 960px;
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  min-height: 560px;
}

/* 左侧品牌区 */
.auth-left {
  background: linear-gradient(160deg, #2563eb 0%, #1e40af 60%, #4c1d95 100%);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand {
  margin-bottom: 48px;
}

.auth-logo {
  font-size: 48px;
  margin-bottom: 16px;
}

.auth-left h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.auth-tagline {
  font-size: 16px;
  opacity: 0.85;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.auth-feature:hover {
  background: rgba(255, 255, 255, 0.14);
}

.feature-icon {
  font-size: 24px;
  line-height: 1.4;
}

.auth-feature h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.auth-feature p {
  font-size: 13px;
  opacity: 0.75;
}

/* 右侧登录卡片 */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
}

.auth-card h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.google-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.google-btn:hover {
  border-color: #d0d5dd;
  background: #f9fafb;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.google-btn:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.guest-btn {
  width: 100%;
  height: 48px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.guest-btn:hover {
  background: var(--primary-light);
}

.auth-note {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.auth-note a {
  color: var(--primary);
  font-weight: 500;
}

.auth-note a:hover {
  text-decoration: underline;
}

/* ============================================================
   顶部导航
   ============================================================ */

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-logo {
  font-size: 24px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--border-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.user-avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.logout-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ============================================================
   页面容器
   ============================================================ */

.page-container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   首页 - Hero
   ============================================================ */

.hero {
  text-align: center;
  margin-bottom: 48px;
  padding: 24px 0 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero h1 .gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   工具网格
   ============================================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-count {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--border-light);
  padding: 4px 12px;
  border-radius: 999px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--primary));
  opacity: 0;
  transition: var(--transition);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  background: var(--icon-bg, var(--primary-bg));
}

.tool-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.tool-tags {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.tool-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--border-light);
  color: var(--text-secondary);
}

.tool-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
}

.tool-card:hover .tool-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   工具详情页
   ============================================================ */

.tool-page-header {
  margin-bottom: 32px;
}

.tool-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tool-back:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.tool-page-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-page-title .tool-icon {
  margin-bottom: 0;
}

.tool-page-title h1 {
  font-size: 26px;
  font-weight: 700;
}

.tool-page-title .tool-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.tool-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* 侧边栏 */
.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.sidebar-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-card li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sidebar-card li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-tip {
  background: var(--warning, #fffbeb);
  border: 1px solid #fde68a;
}

.sidebar-tip h3 {
  color: #92400e;
}

.sidebar-tip p {
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.6;
}

/* ============================================================
   表单元素
   ============================================================ */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* 上传区域 */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-page);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.upload-zone .upload-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.upload-zone h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.upload-zone p {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-zone p .link {
  color: var(--primary);
  font-weight: 600;
}

/* 已选文件 */
.selected-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--primary-bg);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.selected-file .file-icon {
  font-size: 28px;
}

.selected-file .file-meta {
  flex: 1;
  min-width: 0;
}

.selected-file .file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-file .file-size {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.selected-file .file-remove {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}

.selected-file .file-remove:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* 按钮组 */
.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn-primary {
  flex: 1;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  height: 50px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: #d0d5dd;
  background: var(--bg-page);
}

.btn-ghost {
  height: 44px;
  padding: 0 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

/* 选项卡片组 */
.option-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.option-card {
  padding: 14px 16px;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.option-card:hover {
  border-color: var(--primary);
}

.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.option-card .option-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

.option-card .option-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   处理进度与结果
   ============================================================ */

.processing-panel {
  margin-top: 28px;
  padding: 28px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.processing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.processing-header .spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.processing-header h4 {
  font-size: 15.5px;
  font-weight: 600;
}

.progress-bar {
  height: 8px;
  background: var(--border-light);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* 结果面板 */
.result-panel {
  margin-top: 28px;
  padding: 28px;
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-lg);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.result-header h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #065f46;
}

.result-actions {
  display: flex;
  gap: 10px;
}

.result-btn {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.result-btn:hover {
  background: #d1fae5;
}

.result-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 8px 0;
}

.result-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   历史记录页
   ============================================================ */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.history-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.history-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--border-light);
  flex-shrink: 0;
}

.history-meta {
  flex: 1;
  min-width: 0;
}

.history-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.history-time {
  font-size: 12.5px;
  color: var(--text-muted);
}

.history-status {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
}

/* ============================================================
   Toast 提示
   ============================================================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  animation: toastIn 0.3s cubic-bezier(0.21, 1.02, 0.73, 1);
  max-width: 360px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--primary); }

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 968px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .auth-left {
    padding: 40px 32px;
  }

  .auth-features {
    display: none;
  }

  .auth-brand {
    margin-bottom: 0;
    text-align: center;
  }

  .auth-logo {
    font-size: 40px;
  }

  .auth-left h1 {
    font-size: 28px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .navbar-inner {
    padding: 0 16px;
    gap: 16px;
  }

  .nav-links {
    gap: 0;
  }

  .user-name {
    display: none;
  }

  .page-container {
    padding: 24px 16px 48px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14.5px;
  }

  .tool-main {
    padding: 24px 20px;
  }

  .btn-group {
    flex-direction: column;
  }

  .history-item {
    flex-wrap: wrap;
  }
}
