/* ============ Yayuan — dark theme, matching original GoDaddy site ============ */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400;600;700&display=swap');

:root {
  --bg: #161616;
  --bg-elevated: #1c1c1c;
  --text: #ffffff;
  --muted: #b0b0b0;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #b76e79;
  --accent-deep: #9d5964;
  --header-h: 82px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 90%); margin: 0 auto; }

h1, h2, h3, h4, .section-title, .page-title {
  font-family: "Bitter", Georgia, "Times New Roman", serif;
  font-weight: 600;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(22, 22, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}

.nav-left, .nav-right {
  display: flex;
  gap: 34px;
  list-style: none;
}

.nav-right { justify-content: flex-end; }

.nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover { color: var(--accent); }

.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.brand {
  display: flex;
  justify-content: center;
}

.brand img {
  height: 48px;
  width: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--header-h);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,22,22,0.55) 0%, rgba(22,22,22,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 0;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ---------- Section utilities ---------- */
.section { padding: 90px 0; }

.section-title {
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 50px;
  text-align: center;
}

.section-title.left { text-align: left; }

.text-muted { color: var(--muted); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-title { margin-bottom: 26px; text-align: left; }

.about-text p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.about-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo img {
  max-width: 320px;
  width: 100%;
}

/* ---------- Key Operating Industries ---------- */
.industries { background: var(--bg-elevated); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.industry-card {
  position: relative;
  min-height: 360px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.industry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transition: transform 0.5s ease, filter 0.3s ease;
  z-index: 0;
}

.industry-card:hover { transform: translateY(-6px); border-color: rgba(183,110,121,0.4); }
.industry-card:hover::before { transform: scale(1.05); filter: brightness(0.45); }

.industry-card > * { position: relative; z-index: 1; }

.industry-card h3 {
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  padding: 13px 34px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
}

.btn.ghost:hover {
  background: var(--accent);
  color: #fff;
}

/* card background images */
.card-trading::before { background-image: url(/assets/images/home-card-trading.jpg); }
.card-ecommerce::before { background-image: url(/assets/images/home-card-ecommerce.jpg); }
.card-saas::before { background-image: url(/assets/images/home-card-saas.jpg); }

/* ---------- Service page hero ---------- */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-top: var(--header-h);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.62);
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

/* service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  text-align: center;
}

.service-thumb {
  width: 220px;
  height: 220px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(183,110,121,0.35);
}

.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-thumb img { transform: scale(1.08); }

.service-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.service-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.text-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-clamp.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.toggle-btn {
  margin-top: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.toggle-btn:hover { border-bottom-color: var(--accent); }

/* ---------- Social ---------- */
.social-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.social-body .section-title { margin-bottom: 34px; }

.social-body p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 22px;
}

.social-body a.email-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- Contact ---------- */
.contact-intro {
  text-align: center;
  margin-bottom: 44px;
}

.contact-intro h2 {
  font-size: 28px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.contact-intro p { color: var(--muted); }

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.08); }

.field textarea { min-height: 140px; resize: vertical; }

.btn-row { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }

.form-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- News ---------- */
.news-empty {
  padding: 120px 0 160px;
  text-align: center;
  color: var(--muted);
}

.news-empty .mark { font-size: 44px; color: var(--accent); }
.news-empty h2 { font-size: 18px; letter-spacing: 0.25em; margin: 18px 0 8px; color: var(--text); }
.news-empty p { font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg);
  text-align: center;
}

.copyright {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.foot-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  list-style: none;
}

.foot-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.foot-links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .industry-grid,
  .service-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-logo { order: -1; }
  .about-logo img { max-width: 220px; }
  .service-thumb { width: 180px; height: 180px; }
  .nav { grid-template-columns: 1fr; gap: 8px; }
  .nav-left, .nav-right { justify-content: center; }
  .brand { order: -1; }
}
