@charset "utf-8";

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Brand */
  --color-primary: #0068b7;
  --color-primary-dark: #004f8a;
  --color-accent-orange: #ec4033;
  --color-pager-blue: #2092ea;

  /* Wave */
  --color-wave-1: #4579e2;
  --color-wave-2: #3461c1;
  --color-wave-3: #2d55aa;

  /* Surfaces */
  --color-bg: #f2f2f2;
  --color-card-bg: #eee;
  --color-h3-bg: #ddd;
  --color-white: #fff;
  --color-black: #000;

  /* Text */
  --color-text: #333;
  --color-text-muted: #999;
  --color-text-light: #666;

  /* Shadows */
  --shadow-card: 0 0 6px #999;
  --shadow-card-hover: 0 8px 24px rgba(163, 177, 191, 0.35);

  /* Layout */
  --container: 1440px;
  --hero-height-desktop: 400px;
  --hero-height-mobile: 250px;

  /* Typography */
  --font-family-base: "Microsoft YaHei", "微软雅黑", "Noto Sans SC", Tahoma, Arial, Helvetica, STHeiti, sans-serif;
  --font-size-base: 12px;

  /* Easing */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ============================================================
   Reset
   ============================================================ */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li,
pre, form, fieldset, legend, button, input, textarea, th, td, img {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
}

html, body {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  -webkit-text-size-adjust: none;
}

img {
  border: 0;
  font-size: 0;
  vertical-align: middle;
}

ol, ul {
  list-style: none;
}

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

a:active, a:focus {
  outline: none;
}

h1, h2, h3, h4, h5, h6, p, em, i, b {
  font-size: 100%;
  font-weight: normal;
  font-style: normal;
  word-wrap: break-word;
}

button, input, textarea {
  resize: none;
  border: none;
  outline: none;
  font-family: inherit;
}

::selection {
  background-color: salmon;
  color: var(--color-white);
}

/* ============================================================
   Page wrapper
   ============================================================ */
.page {
  position: relative;
  overflow: hidden;
}

/* ============================================================
   Navbar — top header
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
  background: transparent;
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.navbar__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 8px;
  letter-spacing: 0;
}

.navbar__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.3s, text-shadow 0.3s;
}

.navbar__logo-text small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  opacity: 0.85;
}

.navbar.is-scrolled .navbar__logo-text {
  color: var(--color-text);
  text-shadow: none;
}

.navbar__menu {
  flex: 1;
}

.navbar__list {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
}

.navbar__link:hover,
.navbar__item.is-active .navbar__link {
  background: rgba(255, 255, 255, 0.18);
}

.navbar.is-scrolled .navbar__link {
  color: var(--color-text);
  text-shadow: none;
}

.navbar.is-scrolled .navbar__link:hover,
.navbar.is-scrolled .navbar__item.is-active .navbar__link {
  color: var(--color-primary);
  background: rgba(0, 104, 183, 0.08);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.navbar__login {
  font-size: 14px;
  color: var(--color-white);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: color 0.2s, opacity 0.2s;
}

.navbar__login:hover {
  opacity: 0.8;
}

.navbar.is-scrolled .navbar__login {
  color: var(--color-text);
  text-shadow: none;
}

.navbar.is-scrolled .navbar__login:hover {
  color: var(--color-primary);
  opacity: 1;
}

.navbar__cta {
  display: inline-block;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}

.navbar__cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.navbar__toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: background 0.3s;
}

.navbar.is-scrolled .navbar__toggle span {
  background: var(--color-text);
}

/* ============================================================
   Banner — single static hero
   ============================================================ */
.banner {
  width: 100%;
  height: var(--hero-height-desktop);
  position: relative;
  overflow: hidden;
  background: #014886;
}

.banner__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

.banner__title {
  font-size: 52px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 18px;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.banner__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 32px;
  letter-spacing: 1px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.banner__cta {
  display: inline-block;
  padding: 12px 36px;
  font-size: 15px;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 999px;
  letter-spacing: 1px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.banner__link:hover .banner__cta {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Main content (max-width 1440px wrapper)
   ============================================================ */
.content {
  margin: 0 auto;
  max-width: var(--container);
}

/* ============================================================
   Category — industry filter pills
   ============================================================ */
.category {
  padding-bottom: 5px;
  text-align: center;
  margin-top: 15px;
}

.category__list {
  text-align: left;
  font-size: 0;
  padding-bottom: 0;
  padding-top: 0;
  margin: 0 -15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.category__item {
  display: inline-block;
  margin: 10px 10px 0;
  width: 8.6%;
  font-size: 14px;
  vertical-align: top;
  position: relative;
  text-align: center;
  list-style: none;
}

.category__link {
  display: block;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  font-size: 13px;
  border: 1px solid var(--color-card-bg);
  position: relative;
  color: var(--color-text);
  background: var(--color-card-bg);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category__link::after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-primary);
  transition: width 0.4s;
  z-index: 0;
}

.category__link i {
  position: relative;
  z-index: 1;
  font-style: normal;
}

.category__item:hover .category__link,
.category__item.is-active .category__link {
  color: var(--color-white);
  border-color: var(--color-primary);
  background: var(--color-primary);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}

.category__item:hover .category__link::after {
  width: 100%;
}

/* ============================================================
   Template grid — design cards
   ============================================================ */
.template-grid {
  text-align: left;
  font-size: 0;
  padding-bottom: 2%;
  padding-top: 0;
  margin: 0 -15px;
}

.template-card {
  margin: 1%;
  font-size: 14px;
  vertical-align: top;
  display: inline-block;
  width: 31.3%;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  background: var(--color-white);
}

.template-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-8px);
}

.template-card__link {
  display: block;
}

.template-card__media {
  height: 350px;
  position: relative;
  background-color: var(--color-card-bg);
  padding: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.template-card__img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.template-card__title {
  font-size: 16px;
  line-height: 40px;
  color: var(--color-text);
  font-weight: normal;
  text-align: center;
  background-color: var(--color-h3-bg);
  padding: 5px;
  transition: background 1s, color 0.3s;
}

.template-card__link:hover .template-card__title {
  color: var(--color-primary);
}

/* preview overlays — centered, fade-up on hover */
.template-card__btn-pc,
.template-card__btn-app {
  display: block;
  position: absolute;
  z-index: 9;
  left: 50%;
  width: auto;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.template-card__btn-pc { top: calc(50% - 28px); }
.template-card__btn-app { top: calc(50% + 28px); }

.template-card:hover .template-card__btn-pc,
.template-card:hover .template-card__btn-app {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.template-card:hover .template-card__btn-app {
  transition-delay: 0.08s;
}

.btn-preview {
  display: inline-block;
  height: 38px;
  line-height: 38px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-white);
  text-align: center;
  font-size: 14px;
  margin: 8px 0;
  padding: 0 20px;
  min-width: 75px;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 2px;
  transition: background 0.3s, border-color 0.3s;
}

.btn-preview:hover {
  background-color: #333;
  border-color: #333;
}

/* ============================================================
   Pager
   ============================================================ */
.pager {
  text-align: center;
  overflow: hidden;
  margin-bottom: 50px;
  padding-top: 10px;
}

.pager__current {
  font-size: 12px;
  line-height: 32px;
  display: inline-block;
  margin: 0 3px;
  padding: 0 15px;
  border-radius: 4px;
  border: 1px solid var(--color-pager-blue);
  background-color: var(--color-pager-blue);
  color: var(--color-white);
}

.pager__link {
  font-size: 12px;
  line-height: 32px;
  display: inline-block;
  margin: 0 3px;
  padding: 0 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: var(--color-white);
  color: var(--color-text-light);
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.pager__link:hover {
  color: var(--color-white);
  border-color: var(--color-text-light);
  background-color: var(--color-text-light);
}

/* ============================================================
   Wave footer
   ============================================================ */
.wave {
  margin: 0;
  max-height: 100px;
  overflow: hidden;
  padding: 2em 0 0 0;
}

.wave__svg {
  display: block;
  width: 100%;
  height: 10em;
  max-height: 100vh;
  margin: 0;
}

.wave__parallax > use {
  animation: waveMove 12s linear infinite;
}

.wave__parallax > use:nth-child(1) { animation-delay: -2s; }
.wave__parallax > use:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 5s;
}
.wave__parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 3s;
}

@keyframes waveMove {
  0% { transform: translate(-90px, 0); }
  100% { transform: translate(85px, 0); }
}

/* ============================================================
   Scroll to top button
   ============================================================ */
.scroll-top {
  width: 50px;
  height: 50px;
  color: var(--color-white);
  line-height: 50px;
  text-align: center;
  position: fixed;
  right: 30px;
  bottom: 50px;
  cursor: pointer;
  font-size: 30px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  border: 0;
  display: none;
  z-index: 90;
  transition: opacity 0.3s, background 0.3s;
  opacity: 0;
}

.scroll-top.is-visible {
  display: block;
  opacity: 1;
}

.scroll-top:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================================
   Preview modal — phone & pad
   ============================================================ */
.preview-modal {
  display: none;
  width: 100%;
  position: absolute;
  inset: 0;
  z-index: 100001;
}

.preview-modal.is-open {
  display: block;
}

.preview-modal__mask {
  width: 100%;
  position: absolute;
  inset: 0;
  background-color: var(--color-black);
  opacity: 0.6;
}

.preview-modal__frame {
  z-index: 100002;
  position: absolute;
}

.preview-modal--phone .preview-modal__frame {
  width: 340px;
  height: auto;
  padding: 103px 27px 116px 33px;
  background: url("../images/iphone.png") 0 0 no-repeat;
  left: 50%;
  margin-left: -200px;
  top: 50%;
  box-sizing: border-box;
}

.preview-modal--phone .preview-modal__iframe {
  overflow-x: hidden;
  overflow-y: auto;
  height: 540px;
  width: 100%;
  border: 0;
  background: var(--color-white);
}

.preview-modal--pad .preview-modal__frame {
  width: 100%;
  height: auto;
  left: 0;
  top: 0;
  text-align: center;
}

.preview-modal--pad .preview-modal__iframe {
  width: 90%;
  max-width: 1024px;
  margin: 20px auto 0;
  padding: 77px 105px;
  background: url("../images/pad.png") 0 0 no-repeat;
  background-size: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  height: 768px;
  display: inline-block;
  box-sizing: border-box;
  border: 0;
}

.preview-modal__close {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  text-align: center;
  line-height: 30px;
  background-color: var(--color-white);
  z-index: 100003;
  cursor: pointer;
  border: 0;
  padding: 0;
  font-size: 16px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-modal--phone .preview-modal__close {
  left: 50%;
  margin-left: 175px;
  top: 50%;
  transform: translateY(-50%);
}

.preview-modal--pad .preview-modal__close {
  left: 69%;
  top: 80px;
}

.preview-modal__close svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 1440px) {
  .category__item { width: 7.6%; }
}

@media screen and (max-width: 1320px) {
  .template-card__media { padding: 15px 15px 10px 15px; }
}

@media screen and (max-width: 1024px) {
  .template-card { margin: 2%; width: 46%; }
}

@media screen and (max-width: 900px) {
  .template-card { width: 50%; }
  .category__item { display: none; }
}

@media screen and (max-width: 768px) {
  :root {
    --hero-height-desktop: 250px;
  }
  .banner { height: 250px; }
  .banner__title { font-size: 28px; letter-spacing: 1px; margin-bottom: 10px; }
  .banner__subtitle { font-size: 13px; margin-bottom: 18px; }
  .banner__cta { padding: 9px 24px; font-size: 13px; }

  .navbar { height: 56px; }
  .navbar__inner { padding: 0 16px; gap: 0; }
  .navbar__toggle { display: flex; margin-left: auto; }
  .navbar__logo-mark { width: 32px; height: 32px; font-size: 16px; }
  .navbar__logo-text { font-size: 15px; }
  .navbar__logo-text small { display: none; }
  .navbar__actions { display: none; }

  /* Mobile drawer */
  .navbar__menu {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease-out);
  }
  .navbar__list {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px;
  }
  .navbar__link {
    display: block;
    padding: 14px 12px;
    font-size: 15px;
    color: var(--color-text);
    text-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0;
  }
  .navbar__list li:last-child .navbar__link { border-bottom: 0; }
  .navbar__item.is-active .navbar__link,
  .navbar__link:hover {
    color: var(--color-primary);
    background: transparent;
  }

  /* Expanded state */
  .navbar.is-open .navbar__menu { max-height: 70vh; }
  .navbar.is-open {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  }
  .navbar.is-open .navbar__logo-text { color: var(--color-text); text-shadow: none; }
  .navbar.is-open .navbar__toggle span { background: var(--color-text); }

  /* Hamburger → X */
  .navbar__toggle span {
    transition: transform 0.3s var(--ease-out), opacity 0.2s, background 0.3s;
  }
  .navbar.is-open .navbar__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .navbar.is-open .navbar__toggle span:nth-child(2) {
    opacity: 0;
  }
  .navbar.is-open .navbar__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .template-grid { margin: 0; padding: 10px; }
  .template-card { margin: 2%; width: 96%; }
  .template-card__media { margin: 0; padding: 0; }
  .template-card__title { margin: 0; padding: 0; }
  .template-card__btn-pc,
  .template-card__btn-app { display: none; }
  .category__list { display: none; }
  .wave__svg { height: 17vw; }
}

@media screen and (max-width: 520px) {
  .template-card { width: 100%; margin: 2% 0; }
}
