/* k-y.ltd - Global Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0a2540;
  --primary-light: #123a5c;
  --accent: #d4a017;
  --accent-hover: #e8b422;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(10, 37, 64, 0.08);
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo img { height: 48px; width: auto; border-radius: 4px; }

.main-nav { display: flex; align-items: center; gap: 8px; }

.main-nav a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--accent); background: rgba(255,255,255,0.08); }

.btn-cta {
  background: var(--accent);
  color: var(--primary) !important;
  font-weight: 600;
  padding: 8px 20px !important;
  border-radius: var(--radius);
}

.btn-cta:hover { background: var(--accent-hover) !important; color: var(--primary) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.9;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); color: var(--primary); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(10,37,64,0.12); }

.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 24px; }
.card-body h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }
.card-body p { color: var(--text-light); font-size: 0.95rem; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}

.feature-item h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.feature-item p { font-size: 0.9rem; color: var(--text-light); }

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.partner-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.partner-item img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
}

.partner-item p { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }

/* Promo */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.promo-card {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.promo-card img { width: 180px; min-height: 140px; object-fit: cover; flex-shrink: 0; }
.promo-card .promo-text { padding: 20px; }
.promo-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.05rem; }
.promo-card p { font-size: 0.9rem; color: var(--text-light); }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  padding: 0 24px 18px;
  color: var(--text-light);
  font-size: 0.95rem;
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* Testimonial */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.testimonial-card .author { font-weight: 600; color: var(--primary); font-size: 0.9rem; }

/* Content block */
.content-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.content-block h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.content-block h3 { color: var(--primary); font-size: 1.15rem; margin: 20px 0 10px; }
.content-block p { margin-bottom: 14px; color: var(--text); }
.content-block ul, .content-block ol { margin: 10px 0 14px 24px; color: var(--text-light); }
.content-block li { margin-bottom: 6px; }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--primary); }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 { font-size: 1.75rem; margin-bottom: 8px; }
.page-header p { opacity: 0.9; font-size: 0.95rem; }

/* Form */
.form-page { padding: 48px 0; }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-card h2 { color: var(--primary); margin-bottom: 20px; font-size: 1.3rem; }

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--primary);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.15);
}

.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 0.88rem;
}

.form-side img { border-radius: var(--radius); box-shadow: var(--shadow); }

.form-side .side-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.form-side .side-content h3 { color: var(--primary); margin-bottom: 12px; }
.form-side .side-content p { color: var(--text-light); font-size: 0.93rem; margin-bottom: 10px; }

/* Download steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }

.step-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step-item h3 { color: var(--primary); font-size: 1rem; margin-bottom: 8px; }
.step-item p { font-size: 0.88rem; color: var(--text-light); }

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code { font-size: 6rem; font-weight: 700; color: var(--primary); line-height: 1; }
.error-msg { font-size: 1.3rem; color: var(--text); margin: 16px 0 8px; }
.error-desc { color: var(--text-light); margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: 0;
}

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

.footer-brand img { height: 44px; margin-bottom: 12px; border-radius: 4px; }
.footer-brand p { font-size: 0.88rem; opacity: 0.8; line-height: 1.7; }

.footer-links h4 { color: var(--accent); margin-bottom: 14px; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Image + Text alternating rows */
.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}

.img-text-row.reverse { direction: rtl; }
.img-text-row.reverse > * { direction: ltr; }

.img-text-row .itr-img img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.img-text-row .itr-text { padding: 32px 36px; }
.img-text-row .itr-text h3 { color: var(--primary); font-size: 1.25rem; margin-bottom: 12px; }
.img-text-row .itr-text p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 10px; }

/* Showcase gallery */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.showcase-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.showcase-item:hover { transform: translateY(-3px); }

.showcase-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.showcase-item .showcase-cap {
  padding: 16px 18px;
}

.showcase-item .showcase-cap h3 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 6px;
}

.showcase-item .showcase-cap p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Sponsor story */
.sponsor-story {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
  align-items: stretch;
}

.sponsor-story img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.sponsor-story .ss-body { padding: 28px 32px; }
.sponsor-story .ss-body h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 10px; }
.sponsor-story .ss-body p { color: var(--text-light); font-size: 0.93rem; margin-bottom: 8px; }

/* Supplier grid */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

.supplier-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.supplier-item img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 8px;
}

.supplier-item span { font-size: 0.78rem; color: var(--text-light); display: block; }

/* Brand banner */
.brand-banner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
  margin-bottom: 32px;
}

.brand-banner img { border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.brand-banner h2 { font-size: 1.5rem; margin-bottom: 14px; }
.brand-banner p { opacity: 0.92; font-size: 0.95rem; margin-bottom: 10px; line-height: 1.8; }

/* Wide image block */
.wide-img-block {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wide-img-block img { width: 100%; max-height: 400px; object-fit: cover; }

.wide-img-block .wib-caption {
  background: var(--white);
  padding: 20px 28px;
}

.wide-img-block .wib-caption h3 { color: var(--primary); margin-bottom: 8px; }
.wide-img-block .wib-caption p { color: var(--text-light); font-size: 0.93rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius);
  margin: 0 auto;
  max-width: var(--max-width);
}

.cta-banner h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 24px; }

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .main-nav.open { display: flex; }

  .hero { padding: 40px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .hero-img { order: -1; }

  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card { flex-direction: column; }
  .promo-card img { width: 100%; height: 180px; }

  .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }

  .section { padding: 40px 0; }
  .content-block { padding: 24px; }

  .img-text-row { grid-template-columns: 1fr; }
  .img-text-row.reverse { direction: ltr; }
  .img-text-row .itr-img img { min-height: 200px; }
  .img-text-row .itr-text { padding: 24px; }

  .showcase-grid { grid-template-columns: 1fr; }
  .sponsor-story { grid-template-columns: 1fr; }
  .brand-banner { grid-template-columns: 1fr; padding: 28px; }
}
