@charset "utf-8";

/* =============================================
   首页专属样式 - 企业官网风格
   ============================================= */

/* ====== 全局重置 ====== */
body.page-index {
  background: #fff;
}

/* ====== 非首页：容器留出固定头部空间 ====== */
body:not([page="index"]) > .container {
  padding-top: 0;
}

/* ====== 通用轮播 ====== */
.page-banner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.page-banner img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}
/* 非首页轮播 margin */
body:not([page="index"]) .page-banner {
  margin: 20px auto 0;
}
/* 发布页隐藏轮播 */
body[page="add"] .page-banner,
/* 用户中心隐藏轮播 */
body[module="user"] .page-banner,
/* 详情页隐藏轮播 */
body[page="view"] .page-banner {
  display: none !important;
}

/* ====== 首页头部 ====== */
#home-header {
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
#home-header.scrolled {
  background: rgba(10, 22, 40, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}
#home-header .header-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 40px;
}
#home-header .logo {
  flex-shrink: 0;
  margin-right: 48px;
}
#home-header .logo img {
  height: 36px;
  max-width: 220px;
  display: block;
}
#home-header .main-nav {
  flex: 1;
  display: flex;
  align-items: center;
}
#home-header .main-nav a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
}
#home-header .main-nav a:hover,
#home-header .main-nav a.active {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.08);
}
#home-header .header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
#home-header .btn-release {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 22px;
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}
#home-header .btn-release:hover {
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.4);
  transform: translateY(-1px);
  color: #fff;
}
#home-header .btn-login {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
#home-header .btn-login:hover {
  border-color: #00d4ff;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.06);
}

/* 首页隐藏默认 topbar / toolbar */
body[page="index"] #topbar,
body[page="index"] #toolbar {
  display: none !important;
}
/* 隐藏旧版 header/navbar/footer（已统一为 home-header/home-footer） */
#header,
#navbar,
#footer {
  display: none !important;
}

/* 首页容器全宽 */
body[page="index"] > .container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}

/* ====== Hero ====== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}
#hero .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0a1628 0%, #0d2137 25%, #112240 50%, #0a1628 100%);
  z-index: 0;
}
#hero .hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 180, 216, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 119, 182, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 107, 53, 0.06) 0%, transparent 40%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-2%, 2%); }
}
#hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 25% 55%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 40% 15%, rgba(255,255,255,0.18), transparent),
    radial-gradient(1px 1px at 55% 75%, rgba(255,255,255,0.10), transparent),
    radial-gradient(1.5px 1.5px at 70% 35%, rgba(255,255,255,0.14), transparent),
    radial-gradient(1px 1px at 85% 65%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.08), transparent),
    radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.13), transparent),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.11), transparent),
    radial-gradient(1px 1px at 35% 45%, rgba(255,255,255,0.16), transparent);
  animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

#hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}
#hero .hero-subtitle {
  font-size: 13px;
  letter-spacing: 4px;
  color: #00d4ff;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
#hero .hero-title {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
#hero .hero-title span {
  background: linear-gradient(135deg, #00d4ff, #00b4d8, #0096c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#hero .hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 40px;
  line-height: 1.6;
}
#hero .hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}
#hero .hero-btns .btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 26px;
  text-decoration: none;
  transition: all 0.35s;
  cursor: pointer;
}
#hero .hero-btns .btn-primary {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  color: #fff;
  border: none;
  box-shadow: 0 6px 24px rgba(0, 180, 216, 0.3);
}
#hero .hero-btns .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 180, 216, 0.45);
  transform: translateY(-2px);
  color: #fff;
}
#hero .hero-btns .btn-outline {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}
#hero .hero-btns .btn-outline:hover {
  border-color: #00d4ff;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.06);
  transform: translateY(-2px);
}

/* Hero stats */
#hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
#hero .hero-stats .stat-item {
  text-align: center;
}
#hero .hero-stats .stat-num {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
#hero .hero-stats .stat-num span {
  font-size: 22px;
  font-weight: 500;
  color: #00d4ff;
  margin-left: 2px;
}
#hero .hero-stats .stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

/* Hero wave */
#hero .hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}
#hero .hero-wave svg {
  width: 100%;
  height: auto;
}

/* Fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.fade-up.delay-1 { animation-delay: 0.2s; }
.fade-up.delay-2 { animation-delay: 0.4s; }
.fade-up.delay-3 { animation-delay: 0.6s; }
.fade-up.delay-4 { animation-delay: 0.8s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Section 通用 ====== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #00b4d8;
  text-transform: uppercase;
  background: rgba(0, 180, 216, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: #718096;
  max-width: 560px;
  margin: 0 auto;
}

/* ====== Services ====== */
#services {
  padding: 100px 0 80px;
  background: #f8fafc;
}
#services .services-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 20px;
}
#services .service-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 28px 32px;
  text-align: center;
  transition: all 0.35s;
  border: 1px solid #edf2f7;
  cursor: pointer;
}
#services .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 180, 216, 0.2);
}
#services .service-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.1), rgba(0, 119, 182, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: all 0.35s;
}
#services .service-card:hover .service-icon {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
}
#services .service-icon i {
  font-size: 28px;
  color: #00b4d8;
  transition: color 0.35s;
}
#services .service-card:hover .service-icon i {
  color: #fff;
}
#services .service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 10px;
}
#services .service-card p {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
}

/* ====== Features ====== */
#features {
  padding: 100px 0 100px;
  background: #fff;
}
#features .features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0 20px;
}
#features .feature-item {
  padding: 40px 36px;
  border-right: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  transition: all 0.3s;
}
#features .feature-item:nth-child(2n) {
  border-right: none;
}
#features .feature-item:nth-child(n+3) {
  border-bottom: none;
}
#features .feature-item:hover {
  background: #f8fafc;
}
#features .feature-num {
  font-size: 48px;
  font-weight: 800;
  color: rgba(0, 180, 216, 0.1);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Courier New', monospace;
}
#features .feature-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0d2137;
  margin-bottom: 10px;
}
#features .feature-item p {
  font-size: 15px;
  color: #718096;
  line-height: 1.7;
}

/* ====== About ====== */
#about {
  padding: 100px 0;
  background: #f8fafc;
}
#about .about-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0 20px;
}
#about .about-text h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0a1628;
  margin: 16px 0 20px;
}
#about .about-text p {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 16px;
}
#about .about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
}
#about .about-highlights .highlight {
  font-size: 14px;
  color: #2d3748;
  font-weight: 500;
}
#about .about-highlights .highlight i {
  color: #00b4d8;
  margin-right: 6px;
}
#about .about-text .btn-primary {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 23px;
  text-decoration: none;
  margin-top: 8px;
}
#about .about-visual .visual-box {
  background: linear-gradient(135deg, #0d2137, #14273e);
  border-radius: 20px;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}
#about .about-visual .visual-box::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent);
  border-radius: 50%;
}
#about .about-visual .visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}
#about .visual-grid .v-item {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
#about .visual-grid .v-item i {
  display: block;
  font-size: 28px;
  color: #00d4ff;
  margin-bottom: 12px;
}
#about .visual-grid .v-item span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
#about .visual-grid .v-item small {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  font-weight: 400;
}

/* ====== CTA Banner ====== */
#cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, #0a1628, #0d2137, #112240);
  position: relative;
  overflow: hidden;
}
#cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15), transparent 70%);
  border-radius: 50%;
}
#cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
  border-radius: 50%;
}
#cta-banner .cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}
#cta-banner .cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
#cta-banner .cta-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
}
#cta-banner .cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
#cta-banner .btn-white {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  background: #fff;
  color: #0a1628;
  font-size: 15px;
  font-weight: 600;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s;
}
#cta-banner .btn-white:hover {
  background: #00d4ff;
  color: #0a1628;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.35);
  transform: translateY(-2px);
}
#cta-banner .btn-outline-white {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 32px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
  font-weight: 600;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s;
}
#cta-banner .btn-outline-white:hover {
  border-color: #00d4ff;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.06);
}

/* ====== 首页页脚 ====== */
#home-footer {
  width: 100%;
  clear: both;
  background: #0a1628;
  color: rgba(255, 255, 255, 0.6);
}
#home-footer .footer-main {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding: 64px 20px 40px;
}
#home-footer .footer-col h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 20px;
}
#home-footer .footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}
#home-footer .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
#home-footer .footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
}
#home-footer .footer-social a:hover {
  border-color: #00d4ff;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.08);
}
#home-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#home-footer .footer-col ul li {
  margin-bottom: 12px;
}
#home-footer .footer-col ul li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}
#home-footer .footer-col ul li a:hover {
  color: #00d4ff;
}
#home-footer .footer-contact p {
  margin-bottom: 12px;
  font-size: 14px;
}
#home-footer .footer-contact i {
  color: #00b4d8;
  margin-right: 8px;
  width: 16px;
}
#home-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
#home-footer .footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 8px;
}
#home-footer .footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}
#home-footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.3s;
}
#home-footer .footer-bottom a:hover {
  color: #00d4ff;
}

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  #home-header .main-nav a {
    padding: 8px 12px;
    font-size: 14px;
  }
  #hero .hero-title { font-size: 40px; }
  #hero .hero-stats { gap: 40px; }
  #services .services-grid { grid-template-columns: repeat(2, 1fr); }
  #features .features-grid { grid-template-columns: 1fr; }
  #features .feature-item { border-right: none; }
  #features .feature-item:nth-child(n+3) { border-bottom: 1px solid #edf2f7; }
  #features .feature-item:last-child { border-bottom: none; }
  #about .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  #home-footer .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #home-header .main-nav { display: none; }
  #home-header .header-inner { justify-content: space-between; }
  #hero .hero-title { font-size: 32px; }
  #hero .hero-desc { font-size: 15px; }
  #hero .hero-stats { gap: 24px; }
  #hero .hero-stats .stat-num { font-size: 30px; }
  #hero .hero-stats .stat-num span { font-size: 16px; }
  #services .services-grid { grid-template-columns: 1fr; }
  #about .about-highlights { grid-template-columns: 1fr; }
  #cta-banner .cta-content h2 { font-size: 24px; }
  #home-footer .footer-main { grid-template-columns: 1fr; gap: 32px; }
  #home-footer .footer-bottom-inner { flex-direction: column; text-align: center; }
  .section-header h2 { font-size: 26px; }
}
