/* ===== Gemini 会员 · 白色苹果风 ===== */
:root {
  --bg: #fbfbfd;
  --bg-card: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --primary: #0071e3;
  --primary-hover: #0077ed;
  --primary-soft: rgba(0, 113, 227, 0.08);
  --success: #34c759;
  --success-soft: rgba(52, 199, 89, 0.12);
  --warning-soft: rgba(255, 204, 0, 0.2);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ----- Header ----- */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(251, 251, 253, 0.85);
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
}
.logo:hover {
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  color: var(--primary);
  font-size: 1.25rem;
}

.nav {
  display: flex;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover {
  color: var(--text);
  background: var(--primary-soft);
  text-decoration: none;
}
.nav-link--active {
  color: var(--primary);
  background: var(--primary-soft);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
}
.header-user-link:hover {
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
}
.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-user-account {
  color: var(--text-secondary);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-sm {
  padding: 6px 14px;
  font-size: 0.875rem;
}

.search-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 200px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.search-icon {
  color: var(--text-tertiary);
  margin-right: 8px;
  font-size: 1rem;
}
.search-input {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  width: 100%;
  outline: none;
}
.search-input::placeholder {
  color: var(--text-tertiary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
  text-decoration: none;
  border: none;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn-ghost {
  color: var(--primary);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.btn-primary {
  color: #fff;
  background: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}
.btn-card {
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  border-radius: 10px;
}
.btn-card:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

/* ----- Main ----- */
.main {
  flex: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  width: 100%;
}

/* ----- Announcement ----- */
.announcement {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.announcement-title {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.announcement-icon {
  font-size: 1.25rem;
}

.announcement-list {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.announcement-list li {
  margin-bottom: 6px;
}
.announcement-list li::marker {
  content: "✓ ";
  color: var(--success);
  font-weight: 600;
}

.announcement-contact {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.announcement-contact p {
  margin: 4px 0;
}

.announcement-tip {
  background: var(--warning-soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip-icon {
  flex-shrink: 0;
}
.announcement-recommend {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* ----- Shop ----- */
.shop-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-icon {
  font-size: 1.375rem;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: var(--bg);
  border-radius: var(--radius);
  width: fit-content;
  border: 1px solid var(--border);
}
.tab {
  padding: 10px 20px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.tab:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}
.tab--active {
  color: var(--primary);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.tab-panel {
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.product-card--featured {
  grid-column: span 1;
}
@media (min-width: 900px) {
  .product-card--featured {
    grid-column: span 1;
    min-height: 320px;
  }
}

.product-card-visual {
  padding: 24px;
  min-height: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* Gemini Pro 主卡 - 深色渐变 + 发光字 */
.product-card--featured .product-card-visual {
  background: linear-gradient(145deg, #0f1419 0%, #1a2332 50%, #0d1117 100%);
  color: #fff;
}
.product-card--featured .product-card-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(0, 180, 216, 0.4);
  color: #7dd3fc;
}
.product-card--featured .product-card-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  margin-top: 4px;
}

.product-card-visual--card {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
}
.product-card-visual--card .product-card-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.product-card-visual--code {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--text);
}
.product-card-visual--code .product-card-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
}
.product-badge--auto {
  background: var(--success-soft);
  color: var(--success);
  right: 16px;
}
.product-badge--rec {
  background: rgba(52, 199, 89, 0.2);
  color: #248a3d;
  right: auto;
  left: 16px;
}

.product-card-title-wrap {
  margin-top: auto;
}
.product-card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: inherit;
}
.product-card-title--small {
  font-size: 1rem;
}
.product-card-desc {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.product-card-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.product-meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 6px;
  display: flex;
  gap: 16px;
}

/* ----- Footer ----- */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav {
    order: 3;
    width: 100%;
  }
  .header-actions {
    margin-left: 0;
    margin-right: auto;
  }
  .search-wrap {
    min-width: 140px;
  }
  .main {
    padding: 20px 16px 32px;
  }
  .announcement {
    padding: 20px 20px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}
