/* ============================================================
   hz400.com 现代商务响应式框架 v3
   设计风格: Stripe + Coinbase 混合，大红色主题
   ============================================================ */

:root {
  --primary: #F4202F;
  --primary-dark: #d91927;
  --primary-light: #ff6b6b;
  --primary-bg: #fff5f5;
  --primary-hover: #c41520;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-primary: 0 4px 20px rgba(244,32,47,0.3);
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--gray-800); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* 容器 */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }

/* 网格 */
.grid { display: grid; gap: 32px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-cols-3 { grid-template-columns: repeat(2, 1fr); } .grid-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; } }

/* 排版 */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--gray-900); }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
p { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: 0.875rem; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; font-size: 0.9375rem; font-weight: 600; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all 0.25s ease; text-decoration: none; line-height: 1.4; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(244,32,47,0.4); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

/* 卡片 */
.card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; transition: all 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* 导航栏 */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gray-200); height: var(--header-height); }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.navbar-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.navbar-brand img { height: 40px; }
.navbar-brand-text { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.navbar-nav { display: flex; align-items: center; gap: 4px; }
.navbar-nav a { padding: 8px 16px; color: var(--gray-700); font-weight: 500; font-size: 0.9375rem; border-radius: var(--radius-sm); transition: all 0.15s ease; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--primary); background: var(--primary-bg); }

/* 下拉菜单 */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 6px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid currentColor; vertical-align: middle; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s ease; z-index: 100; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.875rem; border-radius: 0; }

/* 汉堡菜单 */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gray-700); margin: 5px 0; transition: all 0.25s ease; border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .navbar-nav { position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; flex-direction: column; background: var(--white); padding: 24px; gap: 0; overflow-y: auto; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); z-index: 999; }
  .navbar-nav.open { transform: translateX(0); }
  .navbar-nav a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--gray-100); border-radius: 0; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--gray-50); border-radius: var(--radius-sm); margin: 8px 0; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
  .nav-overlay.active { display: block; }
}

/* Hero */
.hero { position: relative; padding: 64px 0 80px; background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%); color: var(--white); overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(244,32,47,0.15) 0%, transparent 70%); border-radius: 50%; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-content h1 { color: var(--white); margin-bottom: 24px; line-height: 1.2; }
.hero-content p { color: rgba(255,255,255,0.8); font-size: 1.125rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-phone { font-size: 2rem; font-weight: 700; color: var(--white); margin-top: 32px; }
.hero-phone a { color: var(--primary-light); }

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-phone { font-size: 1.5rem; }
}

/* Section */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 8px; }
.section-header p { color: var(--gray-500); font-size: 1.0625rem; max-width: 600px; margin: 0 auto; }
.section-label { display: inline-block; padding: 4px 12px; background: var(--primary-bg); color: var(--primary); font-size: 0.8125rem; font-weight: 600; border-radius: var(--radius-full); margin-bottom: 16px; }

/* 套餐卡片 */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow-md); border: 2px solid var(--gray-200); transition: all 0.25s ease; position: relative; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary); }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-primary); }
.pricing-card.featured::before { content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); padding: 4px 16px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin: 24px 0; }
.pricing-card .price small { font-size: 0.875rem; color: var(--gray-500); font-weight: 400; }
.pricing-card .price-desc { color: var(--gray-500); font-size: 0.9375rem; margin-bottom: 24px; }
.pricing-card ul { margin-bottom: 32px; }
.pricing-card li { padding: 8px 0; font-size: 0.9375rem; color: var(--gray-600); display: flex; align-items: flex-start; gap: 8px; }
.pricing-card li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* 号码列表 */
.number-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.number-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--gray-50); border-radius: var(--radius-sm); transition: all 0.15s ease; }
.number-item:hover { background: var(--primary-bg); }
.number-item .number { font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 600; color: var(--gray-800); }
.number-item .price-tag { background: var(--primary); color: var(--white); padding: 4px 10px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 600; }

/* 功能特性 */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { text-align: center; padding: 32px 16px; border-radius: var(--radius-md); transition: all 0.25s ease; }
.feature-card:hover { background: var(--gray-50); }
.feature-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: var(--primary-bg); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: 0.875rem; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.9375rem; font-family: var(--font-sans); transition: border-color 0.15s ease; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(244,32,47,0.1); }

/* 侧边栏 */
.with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
@media (max-width: 1024px) { .with-sidebar { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: calc(var(--header-height) + 24px); align-self: start; }

/* 面包屑 */
.breadcrumb { padding: 16px 0; font-size: 0.875rem; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* 页脚 */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .navbar-brand-text { color: var(--white); font-size: 1.25rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }
.footer h4 { color: var(--white); font-size: 0.9375rem; margin-bottom: 16px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; text-align: center; font-size: 0.8125rem; color: rgba(255,255,255,0.4); }

/* 浮动按钮 */
.floating-btn { position: fixed; right: 20px; bottom: 50%; transform: translateY(50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.floating-btn .btn-float { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; box-shadow: var(--shadow-primary); transition: all 0.25s ease; position: relative; }
.floating-btn .btn-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(244,32,47,0.4); }
.floating-btn .btn-float svg { width: 20px; height: 20px; }
.floating-btn .tooltip { position: absolute; right: 56px; top: 50%; transform: translateY(-50%); background: var(--gray-900); color: var(--white); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.75rem; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.15s ease; }
.floating-btn .btn-float:hover .tooltip { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  .floating-btn { right: 12px; bottom: 20%; gap: 6px; }
  .floating-btn .btn-float { width: 42px; height: 42px; }
  .floating-btn .tooltip { display: none; }
}

/* 返回顶部 */
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; background: var(--gray-800); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.25s ease; border: none; z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); transform: translateY(-3px); }

/* 文章 */
.article-header { padding: 48px 0 32px; border-bottom: 1px solid var(--gray-200); }
.article-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 16px; }
.article-meta { display: flex; gap: 24px; color: var(--gray-500); font-size: 0.875rem; }
.article-content { padding: 48px 0; max-width: 800px; }
.article-content p { line-height: 1.8; margin-bottom: 24px; }
.article-content img { border-radius: var(--radius-md); margin: 32px 0; }

/* 工具类 */
.bg-gray { background: var(--gray-50); }
.py-xl { padding-top: 48px; padding-bottom: 48px; }
.py-2xl { padding-top: 64px; padding-bottom: 64px; }
.mb-md { margin-bottom: 16px; }
.mb-xl { margin-bottom: 32px; }
.mt-xl { margin-top: 32px; }
.rounded { border-radius: var(--radius-md); }
.overflow-hidden { overflow: hidden; }

/* ============================================================
   Legacy Content Styles (for migrated old pages)
   ============================================================ */
.legacy-content {
  max-width: 100%;
}

/* Section containers */
.legacy-content .about_con,
.legacy-content .about_zizhi,
.legacy-content .about_youshi,
.legacy-content .about_yewu,
.legacy-content .rexiao_body,
.legacy-content .case_body,
.legacy-content .list_article {
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-100);
}

.legacy-content .about_con:last-child,
.legacy-content .about_zizhi:last-child,
.legacy-content .about_youshi:last-child {
  border-bottom: none;
}

/* Section titles */
.legacy-content .title {
  text-align: center;
  margin-bottom: 40px;
}

.legacy-content .h2 .tt {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  display: block;
  margin-bottom: 8px;
}

.legacy-content .title .text {
  font-size: 0.875rem;
  color: var(--gray-500);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.legacy-content .decoration_l,
.legacy-content .decoration_r {
  display: none;
}

/* Content text */
.legacy-content .prose p,
.legacy-content .editor p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--gray-700);
  font-size: 1rem;
}

/* Qualification images */
.legacy-content .about_zizhi ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
}

.legacy-content .about_zizhi ul li {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.legacy-content .about_zizhi ul li img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Advantage cards */
.legacy-content .about_youshi .ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.legacy-content .about_youshi .li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.legacy-content .about_youshi .li:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.legacy-content .content-top .img {
  margin-bottom: 16px;
}

.legacy-content .content-top .img img {
  max-width: 64px;
  height: auto;
}

.legacy-content .content-top .a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.legacy-content .content-top .b {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.legacy-content .content-bottom .h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 12px 0 4px;
}

.legacy-content .content-bottom p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

/* Package/feature tables */
.legacy-content .table,
.legacy-content .table_box {
  overflow-x: auto;
}

.legacy-content .sub-message-red {
  background: var(--primary-bg);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .legacy-content .about_zizhi ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .legacy-content .about_con,
  .legacy-content .about_zizhi,
  .legacy-content .about_youshi {
    padding: 32px 0;
  }
  
  .legacy-content .h2 .tt {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .legacy-content .about_zizhi ul {
    grid-template-columns: 1fr;
  }
  
  .legacy-content .about_youshi .ul {
    grid-template-columns: 1fr;
  }
}

/* Generic legacy element cleanup */
.legacy-content .f_l,
.legacy-content .f_r,
.legacy-content .fl,
.legacy-content .fr {
  float: none !important;
}

.legacy-content .marg60 {
  margin: 0;
}

.legacy-content .clearfix::after {
  content: '';
  display: table;
  clear: both;
}

/* Image Hover Effects for Legacy Content */
.legacy-content .content-top .hover_status,
.legacy-content .content-top .hover_status {
    display: none;
}

.legacy-content .about_youshi .li:hover .default_status,
.legacy-content .ul .li:hover .default_status {
    display: none;
}

.legacy-content .about_youshi .li:hover .hover_status,
.legacy-content .ul .li:hover .hover_status {
    display: inline-block;
}

/* Ensure images in legacy grids don't overflow */
.legacy-content .content-top img,
.legacy-content .content-bottom img {
    max-width: 100%;
    height: auto;
}
