/* ============================================
   RealVNC 亚太代理网站 - 样式表
   ============================================ */

/* --- 基础重置 & 变量 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --deep-sea: #0A2540;
  --signal-blue: #2563EB;
  --aurora-cyan: #06B6D4;
  --warm-white: #F8FAFC;
  --charcoal: #1E293B;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --white: #FFFFFF;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.15);
  --transition: 0.2s ease-out;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; }

/* --- 导航栏 --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.navbar-brand svg {
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.navbar-links a:hover {
  color: var(--white);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  background: rgba(255,255,255,0.2);
}

.phone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--signal-blue);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.phone-btn:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

/* 移动端汉堡菜单 */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
}

/* --- Hero 区 --- */
.hero {
  background: linear-gradient(135deg, #0A2540 0%, #0F3460 50%, #16213E 100%);
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--aurora-cyan);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--aurora-cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--signal-blue), var(--aurora-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--signal-blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  width: 400px;
  height: 320px;
  position: relative;
}

.hero-node {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal-blue);
}

.hero-node.center {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--signal-blue);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
}

.hero-node.n1 { top: 5%; left: 15%; }
.hero-node.n2 { top: 5%; right: 15%; }
.hero-node.n3 { bottom: 5%; left: 15%; }
.hero-node.n4 { bottom: 5%; right: 15%; }
.hero-node.n5 { top: 50%; left: 0; transform: translateY(-50%); }
.hero-node.n6 { top: 50%; right: 0; transform: translateY(-50%); }

/* 连接线 SVG */
.hero-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-lines line {
  stroke: rgba(37, 99, 235, 0.2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -100; }
}

/* --- 通用 Section --- */
.section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal-blue);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-badge::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--signal-blue);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--deep-sea);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--slate-500);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.75;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- 产品下载区 --- */
.products-section {
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal-blue), var(--aurora-cyan));
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--signal-blue);
}

.product-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-sea);
  margin-bottom: 10px;
}

.product-desc {
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.product-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--signal-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--deep-sea);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.product-btn:hover {
  background: var(--signal-blue);
  transform: translateY(-2px);
}

.product-btn-outline {
  background: transparent;
  border: 1px solid var(--deep-sea);
  color: var(--deep-sea);
}

.product-btn-outline:hover {
  background: var(--deep-sea);
  color: var(--white);
}

/* --- 核心优势区 --- */
.advantages-section {
  background: var(--warm-white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.advantage-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid #E2E8F0;
  transition: all var(--transition);
}

.advantage-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-md);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.advantage-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--signal-blue); }
.advantage-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--aurora-cyan); }
.advantage-icon.dark { background: rgba(10, 37, 64, 0.1); color: var(--deep-sea); }

.advantage-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-sea);
  margin-bottom: 8px;
}

.advantage-desc {
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.7;
}

/* --- 授权认证区 --- */
.auth-section {
  background: linear-gradient(135deg, #0A2540, #0F3460);
  color: var(--white);
}

.auth-section .section-badge { color: var(--aurora-cyan); }
.auth-section .section-badge::before { background: var(--aurora-cyan); }
.auth-section .section-title { color: var(--white); }
.auth-section .section-subtitle { color: rgba(255,255,255,0.6); }

.auth-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.auth-text { flex: 1; }

.auth-desc {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.auth-point-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--aurora-cyan);
}

.auth-visual {
  flex-shrink: 0;
  width: 320px;
  height: 240px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.auth-seal {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--aurora-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aurora-cyan);
}

.auth-seal-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

/* --- 联系区 --- */
.contact-section {
  background: var(--warm-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--signal-blue);
}

.contact-item-label {
  font-size: 13px;
  color: var(--slate-400);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-sea);
}

.contact-item-value a {
  color: var(--signal-blue);
}

.contact-form {
  background: var(--white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-sea);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--charcoal);
  background: var(--warm-white);
  transition: border-color var(--transition);
  font-family: inherit;
}

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

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--signal-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(6, 182, 212, 0.1);
  color: #0891B2;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- 页脚 --- */
.footer {
  background: var(--deep-sea);
  color: rgba(255,255,255,0.6);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-name {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col-title {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-content { flex-direction: column; text-align: center; }
  .auth-visual { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: 120px 20px 60px; }
  .hero-title { font-size: 32px; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 28px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
