/* ===== 启明星品牌管理 企业官网 ===== */
/* Shenzhen Qimingxing Brand Management Co., Ltd. */

:root {
  --primary: #0f1f3d;
  --primary-light: #1a3055;
  --accent: #c9a84b;
  --accent-light: #e8ce80;
  --text: #2d2d2d;
  --text-light: #666;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 8px;
  --max-w: 1200px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  font-size: 16px;
}

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

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

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

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 20px;
}
.logo-text { font-size: 18px; font-weight: 700; color: var(--primary); }
.logo-sub { font-size: 12px; color: var(--text-light); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: 15px; color: var(--text); font-weight: 500; position: relative; }
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 50%, #2a4a7a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") repeat;
  opacity: 0.3;
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: 48px; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 20px; opacity: 0.9; max-width: 700px; margin: 0 auto 40px; line-height: 1.8; }

.hero-badges { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.hero-badge {
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 48px;
}
.section-divider {
  width: 60px; height: 3px; background: var(--accent);
  margin: 12px auto 16px;
  border-radius: 2px;
}

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}
.card h3 { font-size: 20px; margin-bottom: 12px; color: var(--primary); }
.card p { color: var(--text-light); font-size: 15px; line-height: 1.7; }

/* ===== Service Detail ===== */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.service-grid.reverse > :first-child { order: 1; }
.service-features { list-style: none; }
.service-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 10px;
  font-size: 15px;
}
.service-features li::before {
  content: '✦'; color: var(--accent); font-weight: bold;
}

/* ===== About ===== */
.about-content {
  max-width: 800px; margin: 0 auto;
  font-size: 16px; line-height: 2;
  text-align: center;
}
.about-content strong { color: var(--primary); }

.stats { display: flex; justify-content: center; gap: 60px; margin-top: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 42px; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--text-light); font-size: 14px; margin-top: 4px; }

/* ===== Blog / Articles ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.blog-card-image {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
}
.blog-card-body { padding: 20px 24px; }
.blog-card-date { font-size: 13px; color: var(--accent); font-weight: 500; }
.blog-card-category {
  display: inline-block; font-size: 12px;
  background: var(--bg-alt); padding: 2px 10px;
  border-radius: 100px; color: var(--text-light); margin-left: 8px;
}
.blog-card h3 { font-size: 18px; margin: 8px 0; line-height: 1.5; }
.blog-card h3 a { color: var(--text); }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { padding: 12px 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-light); }

/* ===== Article Page ===== */
.article-page {
  padding: calc(var(--header-h) + 40px) 0 80px;
  max-width: 800px; margin: 0 auto;
}
.article-page h1 { font-size: 32px; color: var(--primary); margin-bottom: 16px; }
.article-meta { color: var(--text-light); font-size: 14px; margin-bottom: 24px; }
.article-meta span { margin-right: 20px; }
.article-hero-image {
  width: 100%; max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: block;
  background: var(--bg-alt);
}
.article-content { font-size: 16px; line-height: 2; }
.article-content h2 {
  font-size: 24px; color: var(--primary); margin: 40px 0 16px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.article-content h3 { font-size: 20px; color: var(--primary); margin: 28px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin-bottom: 16px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-content .highlight-box {
  background: linear-gradient(135deg, #f0f4ff, #e8ecf8);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  border-left: 3px solid var(--primary);
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 20px; color: var(--primary); margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 12px; }
.contact-method { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.contact-method span:first-child { width: 80px; font-weight: 600; color: var(--text); }

/* ===== Footer ===== */
.footer {
  background: var(--primary); color: rgba(255,255,255,0.8);
  padding: 60px 0 40px;
}
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer p { font-size: 14px; line-height: 1.8; }
.footer a { color: rgba(255,255,255,0.7); font-size: 14px; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px; padding-top: 24px;
  text-align: center; font-size: 13px;
}

/* ===== Responsive ===== */

/* 友情链接 */
.friend-links { background: #1a1a2e; padding: 40px 0 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.friend-links h4 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.links-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.links-grid a {
  color: rgba(255,255,255,0.6); font-size: 13px;
  padding: 6px 16px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px; transition: 0.3s;
}
.links-grid a:hover { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.links-note { color: rgba(255,255,255,0.3); font-size: 12px; margin-top: 16px; }
@media (max-width: 768px) {
  .links-grid a { font-size: 12px; padding: 4px 12px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-h);
    left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 1px solid var(--border);
    gap: 16px; box-shadow: var(--shadow); }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .stats { gap: 30px; }
  .stat-number { font-size: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-page { padding: calc(var(--header-h) + 20px) 16px 40px; }
  .article-page h1 { font-size: 26px; }
}


/* ===== SEO Services Quick Links ===== */
.services-quick-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(15,31,61,0.15) !important;
  border-color: var(--primary) !important;
}
.services-quick-links a:hover h4 {
  color: #0a1a35;
}

@media (max-width: 480px) {
  .footer .container { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: column; align-items: center; }
}
