/* ============================================
   172号卡分销官网 - 主样式表 v2.0
   主色调: #1E6FFF  #FF6B35  #00C853
   ============================================ */

:root {
  --primary: #1E6FFF;
  --primary-dark: #1555CC;
  --primary-light: #E8F0FF;
  --accent: #FF6B35;
  --success: #00C853;
  --warning: #FF9500;
  --danger: #FF3B30;
  --bg: #f5f7fa;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-light: #666;
  --text-muted: #999;
  --border: #e8eaed;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --nav-height: 64px;
  --tab-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: calc(var(--tab-height) + var(--safe-bottom) + 10px);
  -webkit-font-smoothing: antialiased;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky; top:0; z-index:1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}
.header-inner {
  max-width: 1200px; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  height:100%; padding:0 20px;
}
.site-logo img { height:36px; width:auto; }
.desktop-nav { display:flex; gap:4px; }
.desktop-nav .nav-link {
  padding:8px 16px; border-radius:8px; color:var(--text);
  text-decoration:none; font-size:14px; font-weight:500;
  transition: all 0.2s;
}
.desktop-nav .nav-link:hover { background:var(--primary-light); color:var(--primary); }
.desktop-nav .nav-link.active { background:var(--primary); color:#fff; }
.btn-login-desktop {
  background:var(--primary); color:#fff; padding:8px 20px;
  border-radius:8px; text-decoration:none; font-size:14px; font-weight:600;
  transition: all 0.2s;
}
.btn-login-desktop:hover { background:var(--primary-dark); transform:translateY(-1px); box-shadow:0 4px 12px rgba(30,111,255,0.3); }

/* ===== Hero Banner ===== */
.hero-banner {
  background: linear-gradient(135deg, #1E6FFF 0%, #4D8FFF 40%, #7BABFF 100%);
  padding: 60px 20px 50px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.hero-banner::before {
  content:''; position:absolute;
  width:600px; height:600px;
  background: rgba(255,255,255,0.05);
  border-radius:50%;
  top:-200px; right:-200px;
}
.hero-banner::after {
  content:''; position:absolute;
  width:400px; height:400px;
  background: rgba(255,255,255,0.04);
  border-radius:50%;
  bottom:-150px; left:-100px;
}
.hero-inner { position:relative; z-index:1; max-width:800px; margin:0 auto; }
.hero-inner h1 {
  color:#fff; font-size:36px; font-weight:800; margin-bottom:12px;
  text-shadow:0 2px 8px rgba(0,0,0,0.15);
}
.hero-subtitle { color:rgba(255,255,255,0.9); font-size:16px; margin-bottom:24px; }
.hero-sellpoints {
  display:flex; flex-wrap:wrap; justify-content:center; gap:10px;
  margin-bottom:32px;
}
.sellpoint {
  background:rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  color:#fff; padding:8px 16px; border-radius:20px;
  font-size:13px; font-weight:500;
  display:inline-flex; align-items:center; gap:6px;
}
.sellpoint svg { flex-shrink:0; }
.hero-buttons { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn-primary {
  display:inline-block; background:var(--accent); color:#fff;
  padding:14px 36px; border-radius:12px; font-size:16px;
  font-weight:700; text-decoration:none;
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
  transition: all 0.3s;
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(255,107,53,0.5); }
.btn-outline {
  display:inline-block; border:2px solid rgba(255,255,255,0.6); color:#fff;
  padding:12px 32px; border-radius:12px; font-size:16px;
  font-weight:600; text-decoration:none;
  transition: all 0.3s;
}
.btn-outline:hover { background:rgba(255,255,255,0.15); border-color:#fff; }

/* ===== Sections ===== */
.section {
  max-width: 1200px; margin: 0 auto; padding: 50px 20px;
}
.section-title {
  text-align:center; font-size:28px; font-weight:800; color:var(--text);
  margin-bottom:8px;
}
.section-title .title-decorate {
  position:relative; display:inline-block;
}
.section-title .title-decorate::after {
  content:''; position:absolute;
  bottom:-4px; left:50%; transform:translateX(-50%);
  width:40px; height:3px; background:var(--primary);
  border-radius:2px;
}
.section-desc { text-align:center; color:var(--text-light); font-size:15px; margin-bottom:36px; }

/* ===== Feature Grid ===== */
.feature-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:20px;
}
.feature-card {
  background:var(--card-bg); border-radius:var(--radius-lg);
  padding:28px 24px; text-align:center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border:1px solid var(--border);
}
.feature-card:hover {
  transform:translateY(-4px); box-shadow:var(--shadow-lg);
  border-color:var(--primary-light);
}
.feature-icon { margin-bottom:16px; }
.feature-card h3 { font-size:17px; font-weight:700; margin-bottom:8px; color:var(--text); }
.feature-card p { font-size:14px; color:var(--text-light); line-height:1.6; }

/* ===== Package Cards ===== */
.package-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:20px;
}
.package-card {
  background:var(--card-bg); border-radius:var(--radius-xl);
  overflow:hidden; box-shadow:var(--shadow-sm);
  border:1px solid var(--border);
  transition: all 0.3s;
  position:relative;
}
.package-card:hover {
  transform:translateY(-6px); box-shadow:var(--shadow-lg);
}
.package-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
}
.package-card:nth-child(1)::before { background: #00C853; }  /* 移动 */
.package-card:nth-child(2)::before { background: #FF3B30; }  /* 联通 */
.package-card:nth-child(3)::before { background: #1E6FFF; }  /* 电信 */
.package-card:nth-child(4)::before { background: #9C27B0; }  /* 广电 */
.package-card:nth-child(5)::before { background: #FF9500; }
.package-card:nth-child(6)::before { background: #00BCD4; }
.package-badge {
  position:absolute; top:12px; right:12px;
  background:var(--accent); color:#fff;
  padding:3px 10px; border-radius:12px;
  font-size:11px; font-weight:700;
}
.package-top {
  padding:24px 20px 16px;
  text-align:center;
  border-bottom:1px dashed var(--border);
}
.package-top h3 { font-size:20px; font-weight:700; color:var(--text); }
.package-price { margin-top:8px; }
.package-price .amount { font-size:32px; font-weight:800; color:var(--accent); }
.package-price .unit { font-size:14px; color:var(--text-muted); }
.package-body { padding:16px 20px; }
.package-body ul { list-style:none; }
.package-body ul li {
  padding:6px 0; font-size:14px; color:var(--text-light);
  display:flex; align-items:center; gap:6px;
}
.package-body ul li::before {
  content:''; display:inline-block;
  width:6px; height:6px; background:var(--primary);
  border-radius:50%; flex-shrink:0;
}
.package-footer { padding:16px 20px 20px; text-align:center; }
.btn-apply {
  display:block; background:var(--primary); color:#fff;
  padding:12px; border-radius:10px; text-decoration:none;
  font-size:15px; font-weight:600;
  transition: all 0.3s;
}
.btn-apply:hover { background:var(--primary-dark); box-shadow:0 4px 12px rgba(30,111,255,0.3); }

/* ===== Stats ===== */
.stats-section {
  background: linear-gradient(135deg, #1E6FFF, #4D8FFF);
  padding:50px 20px; color:#fff;
}
.stats-grid {
  max-width:900px; margin:0 auto;
  display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:30px; text-align:center;
}
.stat-item .stat-number {
  font-size:36px; font-weight:800;
}
.stat-item .stat-label { font-size:14px; opacity:0.85; margin-top:4px; }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding:60px 20px; text-align:center; color:#fff;
  position:relative; overflow:hidden;
}
.cta-section::before {
  content:''; position:absolute;
  width:300px; height:300px;
  border:2px solid rgba(255,255,255,0.05);
  border-radius:50%;
  top:-100px; right:-100px;
}
.cta-inner { position:relative; z-index:1; max-width:600px; margin:0 auto; }
.cta-inner h2 { font-size:28px; font-weight:800; margin-bottom:12px; }
.cta-inner p { font-size:15px; opacity:0.8; margin-bottom:28px; }
.btn-cta {
  display:inline-block; background:var(--accent); color:#fff;
  padding:16px 48px; border-radius:14px; font-size:18px;
  font-weight:700; text-decoration:none;
  box-shadow:0 4px 20px rgba(255,107,53,0.4);
  transition: all 0.3s;
  letter-spacing:1px;
}
.btn-cta:hover { transform:scale(1.05); box-shadow:0 8px 30px rgba(255,107,53,0.6); }

/* ===== Footer ===== */
.site-footer {
  background: #1a1a2e; color:rgba(255,255,255,0.75);
  padding:40px 20px 20px;
  margin-bottom:0;
}
.footer-inner { max-width:1200px; margin:0 auto; }
.breadcrumb { margin-bottom:24px; }
.breadcrumb ol { list-style:none; display:flex; flex-wrap:wrap; gap:6px; font-size:13px; }
.breadcrumb li { color:rgba(255,255,255,0.5); }
.breadcrumb li:not(:last-child)::after { content:'/'; margin-left:6px; }
.breadcrumb a { color:rgba(255,255,255,0.7); text-decoration:none; }
.breadcrumb a:hover { color:#fff; }
.footer-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:24px; margin-bottom:24px;
}
.footer-col h4 { color:#fff; font-size:15px; margin-bottom:12px; font-weight:700; }
.footer-col p { font-size:13px; line-height:1.8; }
.footer-col a { display:block; color:rgba(255,255,255,0.6); font-size:13px; text-decoration:none; padding:3px 0; transition:color 0.2s; }
.footer-col a:hover { color:#fff; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:16px; text-align:center; font-size:12px;
  color:rgba(255,255,255,0.4);
}

/* ===== Friend Links ===== */
.friendlinks {
  max-width:1200px; margin:0 auto; padding:16px 20px;
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:13px; color:var(--text-muted);
  border-top:1px solid var(--border);
}
.friendlinks a {
  color:var(--text-light); text-decoration:none; padding:2px 6px;
  border-radius:4px; transition:all 0.2s;
}
.friendlinks a:hover { color:var(--primary); background:var(--primary-light); }

/* ===== Mobile Tab Bar ===== */
.mobile-tab-bar {
  display:none;
  position:fixed; bottom:0; left:0; right:0; z-index:999;
  background:#fff; border-top:1px solid var(--border);
  box-shadow:0 -2px 10px rgba(0,0,0,0.06);
  height:var(--tab-height);
  padding-bottom:var(--safe-bottom);
}
.tab-item {
  flex:1; display:flex; flex-direction:column; align-items:center;
  justify-content:center; color:var(--text-muted); text-decoration:none;
  font-size:10px; gap:2px;
  transition:color 0.2s;
}
.tab-item.active { color:var(--primary); }
.tab-icon { display:block; }

/* ===== Accordion (FAQ) ===== */
.accordion { max-width:800px; margin:0 auto; }
.accordion-item {
  background:var(--card-bg); border-radius:var(--radius);
  margin-bottom:12px; box-shadow:var(--shadow-sm);
  border:1px solid var(--border); overflow:hidden;
}
.accordion-header {
  padding:16px 20px; cursor:pointer;
  font-size:15px; font-weight:600; color:var(--text);
  display:flex; justify-content:space-between; align-items:center;
  user-select:none;
}
.accordion-header::after {
  content:'+'; font-size:20px; color:var(--primary);
  transition:transform 0.3s;
}
.accordion-header.open::after { content:'−'; }
.accordion-body {
  max-height:0; overflow:hidden;
  transition:max-height 0.3s ease;
  padding:0 20px;
}
.accordion-body.open { max-height:300px; padding:0 20px 16px; }
.accordion-body p { font-size:14px; color:var(--text-light); line-height:1.8; }

/* ===== Step Cards ===== */
.step-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px; max-width:900px; margin:0 auto;
}
.step-card {
  background:var(--card-bg); border-radius:var(--radius-lg);
  padding:28px 20px; text-align:center;
  box-shadow:var(--shadow-sm); border:1px solid var(--border);
  position:relative;
}
.step-number {
  width:40px; height:40px; background:var(--primary);
  color:#fff; border-radius:50%; display:flex;
  align-items:center; justify-content:center;
  font-size:18px; font-weight:800; margin:0 auto 16px;
}
.step-card h3 { font-size:16px; font-weight:700; margin-bottom:8px; }
.step-card p { font-size:13px; color:var(--text-light); }

/* ===== App Download ===== */
.app-showcase {
  display:grid; grid-template-columns:1fr 1fr; gap:30px;
  max-width:900px; margin:0 auto; align-items:center;
}
.app-screenshots { display:flex; gap:12px; justify-content:center; }
.app-screenshot {
  width:160px; height:320px; background:linear-gradient(135deg, #E8F0FF, #d0e0ff);
  border-radius:16px; display:flex; align-items:center; justify-content:center;
  font-size:13px; color:var(--primary); font-weight:600;
  box-shadow:var(--shadow-md);
}
.app-info h2 { font-size:24px; font-weight:800; margin-bottom:12px; }
.app-info p { color:var(--text-light); margin-bottom:20px; line-height:1.8; }
.app-buttons { display:flex; gap:12px; flex-wrap:wrap; }
.btn-download {
  display:inline-flex; align-items:center; gap:8px;
  padding:12px 24px; border-radius:10px;
  font-size:15px; font-weight:600; text-decoration:none;
  transition:all 0.3s;
}
.btn-download.android { background:#00C853; color:#fff; }
.btn-download.ios { background:#1a1a2e; color:#fff; }
.btn-download:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }

/* ===== Quick Action Buttons ===== */
.quick-actions {
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
  max-width:800px; margin:-30px auto 40px;
  position:relative; z-index:10; padding:0 20px;
}
.quick-action {
  flex:1; min-width:140px; max-width:200px;
  background:var(--card-bg); border-radius:var(--radius-lg);
  padding:20px 16px; text-align:center;
  box-shadow:var(--shadow-md); text-decoration:none;
  color:var(--text);
  transition:all 0.3s;
  border:1px solid var(--border);
}
.quick-action:hover {
  transform:translateY(-4px); box-shadow:var(--shadow-lg);
}
.quick-action .qa-icon { font-size:28px; margin-bottom:8px; display:block; }
.quick-action .qa-label { font-size:14px; font-weight:600; }

/* ===== About Page ===== */
.about-content { max-width:800px; margin:0 auto; }
.about-content p { font-size:15px; color:var(--text-light); line-height:2; margin-bottom:16px; }
.cert-grid { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin:24px 0; }
.cert-item {
  width:200px; height:140px; background:var(--bg);
  border-radius:var(--radius); display:flex;
  align-items:center; justify-content:center;
  color:var(--text-muted); font-size:13px;
  border:1px dashed var(--border);
}

/* ===== Contact Form ===== */
.contact-form { max-width:500px; margin:0 auto; }
.contact-form input, .contact-form textarea {
  width:100%; padding:12px 16px; border:1px solid var(--border);
  border-radius:var(--radius); font-size:14px; margin-bottom:12px;
  font-family:inherit; transition:border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline:none; border-color:var(--primary);
}
.contact-form textarea { min-height:100px; resize:vertical; }
.contact-form button {
  width:100%; padding:14px; background:var(--primary);
  color:#fff; border:none; border-radius:var(--radius);
  font-size:15px; font-weight:600; cursor:pointer;
  transition:all 0.3s;
}
.contact-form button:hover { background:var(--primary-dark); }

/* ===== Iframe wrapper ===== */
.iframe-wrapper {
  width:100%; border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; box-shadow:var(--shadow-sm);
}
.iframe-wrapper iframe {
  width:100%; border:none; display:block;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .desktop-nav { display:none; }
  .btn-login-desktop { display:none; }
  .mobile-tab-bar { display:flex; }
  
  .hero-inner h1 { font-size:24px; }
  .hero-subtitle { font-size:14px; }
  .hero-buttons { flex-direction:column; align-items:center; }
  .btn-primary, .btn-outline { width:100%; max-width:300px; text-align:center; }
  
  .section { padding:36px 16px; }
  .section-title { font-size:22px; }
  
  .app-showcase { grid-template-columns:1fr; }
  .app-screenshots { order:1; }
  .app-info { order:2; text-align:center; }
  .app-buttons { justify-content:center; }
  
  .stats-grid { grid-template-columns:repeat(2, 1fr); }
  .stat-item .stat-number { font-size:28px; }
  
  .package-grid { grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); }
  .quick-action { min-width:100px; }
}

@media (max-width: 480px) {
  .hero-banner { padding:36px 16px 30px; }
  .package-grid { grid-template-columns:1fr; }
  .feature-grid { grid-template-columns:1fr; }
  .stats-grid { gap:16px; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
.animate-in { animation:fadeInUp 0.6s ease forwards; }
