/* 米表系统样式 */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  background: -webkit-linear-gradient(top, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.9) 40%, rgba(230,240,255,0.85) 70%, rgba(220,235,250,0.9) 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(240,248,255,0.9) 40%, rgba(230,240,255,0.85) 70%, rgba(220,235,250,0.9) 100%);
}

/* 云雾层 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(200,220,255,0.15) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 70% 20%, rgba(180,210,255,0.12) 0%, transparent 50%),
              radial-gradient(ellipse 90% 60% at 50% 80%, rgba(190,215,255,0.1) 0%, transparent 50%),
              radial-gradient(ellipse 70% 50% at 80% 60%, rgba(210,230,255,0.08) 0%, transparent 50%);
  -webkit-animation: cloudDrift 30s ease-in-out infinite alternate;
  animation: cloudDrift 30s ease-in-out infinite alternate;
  z-index: -2;
}

@-webkit-keyframes cloudDrift {
  0% { -webkit-transform: translate(0, 0) scale(1); opacity: 1; }
  50% { -webkit-transform: translate(20px, -30px) scale(1.05); opacity: 0.9; }
  100% { -webkit-transform: translate(-10px, 20px) scale(1); opacity: 1; }
}

@keyframes cloudDrift {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  50% { transform: translate(20px, -30px) scale(1.05); opacity: 0.9; }
  100% { transform: translate(-10px, 20px) scale(1); opacity: 1; }
}

/* 雾气层 */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 100% 70% at 30% 50%, rgba(255,255,255,0.4) 0%, transparent 60%),
              radial-gradient(ellipse 80% 80% at 70% 30%, rgba(240,248,255,0.3) 0%, transparent 50%);
  -webkit-animation: fogPulse 20s ease-in-out infinite;
  animation: fogPulse 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@-webkit-keyframes fogPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes fogPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* 网格 */
.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(180,200,220,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(180,200,220,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-animation: gridMove 60s linear infinite;
  animation: gridMove 60s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@-webkit-keyframes gridMove {
  0% { -webkit-transform: translate(0, 0); }
  100% { -webkit-transform: translate(20px, 20px); }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}

/* 右上角图标 */
.top-icons {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
}
.top-icon {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-decoration: none;
  color: #888;
  font-size: 22px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
}
.top-icon:hover {
  color: #333;
  -webkit-transform: scale(1.15);
  -ms-transform: scale(1.15);
  transform: scale(1.15);
}
body.dark-mode .top-icon { color: #b0b0b0; }
body.dark-mode .top-icon:hover { color: #fff; }

/* 左上角 Logo */
.top-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}
.top-logo a {
  text-decoration: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}
.top-logo img {
  max-height: 40px;
  width: auto;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.top-logo img:hover {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
}
.top-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a365d;
  text-shadow: 0 1px 10px rgba(255,255,255,0.8);
  white-space: nowrap;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  height: 100vh;
  min-height: 500px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content { position: relative; z-index: 1; padding: 0 20px; }

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #1a365d;
  margin-bottom: 15px;
  text-shadow: 0 2px 20px rgba(255,255,255,0.8);
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: #4a5568;
  font-weight: 300;
  letter-spacing: 1px;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  color: #718096;
  font-size: 14px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
  -webkit-animation: bounce 2.5s ease-in-out infinite;
  animation: bounce 2.5s ease-in-out infinite;
}

.scroll-hint span { font-size: 12px; }

@-webkit-keyframes bounce {
  0%, 100% { -webkit-transform: translateX(-50%) translateY(0); }
  50% { -webkit-transform: translateX(-50%) translateY(12px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

/* 内容区 */
.content-section {
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 20px 20px 0 0;
  padding: 30px 0 50px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  min-height: 100vh;
  box-shadow: 0 -10px 40px rgba(100,130,180,0.08);
}

.header { text-align: center; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #eee; }
.header p { font-size: 12px; color: #999; margin: 0; }

/* 搜索和排序 */
.toolbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.search-box {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 8px 12px 8px 35px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.search-box input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}
.sort-box {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
}
.sort-btn {
  padding: 4px 10px;
  font-size: 11px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}
.sort-btn:hover { border-color: #333; color: #333; background: #f8f8f8; }
.sort-btn.active { border-color: #333; color: #333; background: #f0f0f0; }

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: none;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: 99;
}
.back-to-top.show { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; }
.back-to-top:hover {
  -webkit-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102,126,234,0.5);
}

/* 暗黑模式 */
body.dark-mode {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #e0e0e0;
}
body.dark-mode::before {
  background: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(102,126,234,0.1) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 70% 20%, rgba(118,75,162,0.08) 0%, transparent 50%);
}
body.dark-mode::after {
  background: radial-gradient(ellipse 100% 70% at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
}
body.dark-mode .grid-overlay {
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
}
body.dark-mode .top-logo-text { color: #fff; }
body.dark-mode .hero-title { color: #fff; }
body.dark-mode .hero-subtitle { color: #b0b0b0; }
body.dark-mode .content-section {
  background: rgba(26,26,46,0.9);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
}
body.dark-mode .header { border-bottom-color: #333; }
body.dark-mode .header p { color: #888; }
body.dark-mode .search-box input {
  background: #16213e;
  border-color: #333;
  color: #e0e0e0;
}
body.dark-mode .cat-btn {
  background: rgba(30,30,50,0.95);
  border-color: rgba(255,255,255,0.1);
  color: #b0b0b0;
}
body.dark-mode .cat-btn:hover, body.dark-mode .cat-btn.active { border-color: rgba(255,255,255,0.3); color: #fff; background: rgba(255,255,255,0.1); }
body.dark-mode .sort-btn {
  background: rgba(30,30,50,0.95);
  border-color: rgba(255,255,255,0.1);
  color: #b0b0b0;
}
body.dark-mode .sort-btn:hover, body.dark-mode .sort-btn.active { border-color: rgba(255,255,255,0.3); color: #fff; background: rgba(255,255,255,0.1); }
body.dark-mode .domain-card {
  background: rgba(30,30,50,0.95);
  border-color: rgba(255,255,255,0.05);
}
body.dark-mode .domain-card:hover {
  box-shadow: 0 12px 40px rgba(102,126,234,0.25);
}
body.dark-mode .domain-name { 
  background: linear-gradient(135deg, rgba(254,249,195,0.2) 0%, rgba(253,230,138,0.2) 100%);
  color: #fef9c3; 
}
body.dark-mode .domain-desc { color: #c0c0d0; }
body.dark-mode .meta-badge {
  background: linear-gradient(135deg, rgba(34,197,94,0.2) 0%, rgba(74,222,128,0.2) 100%);
  color: #4ade80;
}
body.dark-mode .price {
  background: linear-gradient(135deg, #f87171 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.dark-mode .price-unit { background: rgba(239,68,68,0.2); color: #f87171; }
body.dark-mode .expire-row { border-top-color: rgba(255,255,255,0.1); }
body.dark-mode .progress-bar { background: rgba(255,255,255,0.1); }
body.dark-mode .footer { background: rgba(26,26,46,0.95); }
body.dark-mode .footer-name { color: #fff; }
body.dark-mode .footer-slogan { color: #888; }
body.dark-mode .footer-links a {
  background: #16213e;
  border-color: #333;
  color: #b0b0b0;
}
body.dark-mode .footer-links a:hover { border-color: #667eea; color: #fff; }
body.dark-mode .footer-copyright { color: #666; }
body.dark-mode .friend-link {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #b0b0b0;
}
body.dark-mode .friend-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
body.dark-mode .modal { background: #1a1a2e; }
body.dark-mode .modal-header { border-bottom-color: #333; }
body.dark-mode .modal-title { color: #fff; }
body.dark-mode .modal-close { background: #333; color: #888; }
body.dark-mode .whois-label { color: #888; }
body.dark-mode .whois-value { color: #e0e0e0; }
body.dark-mode .whois-item { border-bottom-color: #333; }

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  -webkit-animation: skeleton-loading 1.5s infinite;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}
body.dark-mode .skeleton {
  background: linear-gradient(90deg, #2d3a5a 25%, #3d4a6a 50%, #2d3a5a 75%);
  background-size: 200% 100%;
}
@-webkit-keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.sm { width: 60%; }
.skeleton-text.lg { height: 18px; width: 40%; }
.skeleton-badge { height: 20px; width: 80px; border-radius: 10px; }

/* 页面加载骨架屏 */
.loading-skeleton .domain-card {
  pointer-events: none;
}
.loading-skeleton .domain-name,
.loading-skeleton .domain-desc,
.loading-skeleton .meta-badge,
.loading-skeleton .price,
.loading-skeleton .price-unit,
.loading-skeleton .expire-row {
  color: transparent !important;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%) !important;
  background-size: 200% 100% !important;
  -webkit-animation: skeleton-loading 1.5s infinite !important;
  animation: skeleton-loading 1.5s infinite !important;
  border-radius: 4px !important;
}

/* 分类导航 */
.category-nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.cat-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}
.cat-label { font-size: 10px; color: #aaa; margin-right: 3px; }
.cat-btn {
  padding: 4px 10px;
  font-size: 11px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  color: #666;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}
.cat-btn:hover, .cat-btn.active { border-color: #333; color: #333; background: #f8f8f8; }
.cat-divider { width: 1px; height: 20px; background: #e0e0e0; margin: 0 8px; display: none; }

.section-title { font-size: 12px; font-weight: 500; color: #666; margin: 15px 0 8px; padding-left: 8px; border-left: 2px solid #ddd; }

/* 域名卡片 - 草图风格 */
.domain-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 13px 24px;
  margin-bottom: 10px;
  width: 100%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.domain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102,126,234,0.05) 0%, rgba(118,75,162,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.domain-card:hover::before { opacity: 1; }
.domain-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(102,126,234,0.15);
  border-color: rgba(102,126,234,0.2);
}
.domain-card:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 6px 20px rgba(102,126,234,0.1);
}
.domain-main {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  -ms-flex-align: start;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.domain-info { -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; min-width: 200px; position: relative; z-index: 1; }
.domain-name { 
  display: inline-block;
  font-size: 18px; 
  font-weight: 600; 
  color: #1a1a2e; 
  cursor: pointer; 
  word-break: break-all; 
  background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: all 0.3s ease; 
}
.domain-card:hover .domain-name { transform: translateX(4px); }
.domain-desc { font-size: 14px; color: #555; font-weight: 600; margin-top: 4px; line-height: 1.5; }
.domain-meta-row { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; gap: 8px; margin-top: 8px; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.meta-badge { 
  display: inline-block; 
  padding: 5px 12px; 
  background: linear-gradient(135deg, rgba(34,197,94,0.15) 0%, rgba(74,222,128,0.15) 100%);
  color: #16a34a; 
  border-radius: 20px; 
  font-size: 11px; 
  font-weight: 600; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  max-width: 120px; 
  transition: all 0.3s ease;
}
.domain-card:hover .meta-badge { transform: scale(1.05); }
.price-wrapper { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: end; -webkit-align-items: flex-end; -ms-flex-align: end; align-items: flex-end; gap: 6px; margin-left: auto; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; position: relative; z-index: 1; }
.price { 
  font-size: 22px; 
  font-weight: 700; 
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap; 
}
.price-unit { font-size: 10px; color: #ef4444; background: rgba(239,68,68,0.1); padding: 4px 10px; border-radius: 12px; white-space: nowrap; font-weight: 600; }

/* NEW 标签 */
.new-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 进度条 - 草图风格 */
.expire-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  width: 100%;
  position: relative;
  z-index: 1;
}
.expire-info { font-size: 12px; white-space: nowrap; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; gap: 8px; }
.expire-date { color: #888; }
.expire-days { color: #aaa; }
.progress-bar { -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; height: 6px; background: rgba(0,0,0,0.08); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; position: relative; }
.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-safe { background: linear-gradient(90deg, #4ade80, #22c55e); }
.progress-warn { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.progress-danger { background: linear-gradient(90deg, #f87171, #ef4444); }

.empty { text-align: center; padding: 40px; color: #999; }
.empty a { color: #2563eb; }

/* Footer */
.footer { padding: 30px 20px; text-align: center; background: rgba(255,255,255,0.9); }
.footer-logo { max-height: 40px; margin-bottom: 15px; }
.footer-name { font-size: 18px; font-weight: 500; color: #222; margin-bottom: 5px; }
.footer-slogan { font-size: 12px; color: #888; margin-bottom: 20px; }
.footer-links { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; gap: 10px; margin-bottom: 20px; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; }
.footer-links a { display: inline-block; color: #666; text-decoration: none; font-size: 13px; padding: 6px 12px; background: #fff; border: 1px solid #eee; border-radius: 20px; }
.footer-links a:hover { border-color: #ccc; color: #333; }
.footer-copyright { font-size: 11px; color: #aaa; }

/* 友情链接 */
.friend-links { margin-top: 15px; }
.friend-links-row { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: start; -webkit-justify-content: flex-start; -ms-flex-pack: start; justify-content: flex-start; }
.friend-links-title { font-size: 12px; color: #888; white-space: nowrap; }
.friend-links-list { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.friend-link { display: inline-block; padding: 4px 12px; background: rgba(128,128,128,0.1); color: #666; text-decoration: none; font-size: 12px; border-radius: 4px; -webkit-transition: all 0.2s ease; transition: all 0.2s ease; border: 1px solid rgba(128,128,128,0.15); }
.friend-link:hover { background: rgba(128,128,128,0.18); color: #333; }

/* 弹窗 */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; }
.modal-overlay.show { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; }
.modal { background: #fff; border-radius: 12px; width: 90%; max-width: 500px; max-height: 80vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; }
.modal-title { font-size: 14px; font-weight: 500; color: #222; }
.modal-close { width: 28px; height: 28px; border: none; background: #f5f5f5; border-radius: 6px; cursor: pointer; font-size: 18px; color: #666; line-height: 28px; text-align: center; padding: 0; }
.modal-body { padding: 15px 20px; max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.whois-item { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; padding: 10px 0; border-bottom: 1px solid #f5f5f5; font-size: 12px; }
.whois-item:last-child { border-bottom: none; }
.whois-label { width: 90px; -webkit-flex-shrink: 0; -ms-flex-negative: 0; flex-shrink: 0; color: #888; }
.whois-value { -webkit-box-flex: 1; -webkit-flex: 1; -ms-flex: 1; flex: 1; color: #333; word-break: break-all; }

/* 响应式 */
@media (max-width: 600px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 13px; letter-spacing: 0; }
  .domain-card { padding: 10px 14px; }
  .domain-name { font-size: 16px; padding: 3px 10px; }
  .domain-desc { font-size: 13px; }
  .price { font-size: 18px; }
  .domain-main { -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; -webkit-box-align: start; -webkit-align-items: flex-start; -ms-flex-align: start; align-items: flex-start; gap: 10px; }
  .domain-info { width: 100%; min-width: auto; }
  .price-wrapper { margin-left: 0; margin-top: 0; -webkit-box-orient: horizontal; -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; width: 100%; -webkit-box-pack: justify; -webkit-justify-content: space-between; -ms-flex-pack: justify; justify-content: space-between; }
  .expire-row { width: 100%; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding-top: 8px; }
  .progress-bar { width: 100%; }
  .cat-divider { display: none; }
  .cat-label { display: none; }
  .cat-btn { padding: 6px 12px; font-size: 12px; }
  .friend-links-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .friend-link { text-align: center; padding: 4px 8px; font-size: 11px; }
  .new-badge { top: 8px; right: 8px; padding: 3px 8px; font-size: 9px; }
}

@media (min-width: 601px) {
  .friend-links-list { display: grid; grid-template-columns: repeat(5, auto); gap: 8px; }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-title { font-size: 48px; }
  .hero-subtitle { font-size: 16px; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 64px; letter-spacing: -2px; }
  .hero-subtitle { font-size: 22px; letter-spacing: 2px; }
  .domain-meta { margin-left: 15px; }
  .cat-divider { display: block; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 80px; letter-spacing: -3px; }
  .hero-subtitle { font-size: 26px; letter-spacing: 3px; }
  .scroll-hint { bottom: 50px; font-size: 16px; }
  .scroll-hint span { font-size: 14px; }
}

@media (padding-bottom: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .content-section { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
}
