/* 大理市铭域科技有限公司 - 官网首页样式 */
:root {
  --color-bg: #f8f9fa;
  --color-surface: #fff;
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #c9a227;
  --color-text: #2d3748;
  --color-text-muted: #718096;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.15rem;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: none;
}

.logo:has(.logo-img[style*="display: none"]) .logo-text,
.logo-img[src=""].logo-img + .logo-text {
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.nav a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232d3748'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/contain no-repeat;
  cursor: pointer;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    display: none;
    gap: 16px;
  }
  .nav.open { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: .02em;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, .4);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 32px;
  text-align: center;
}

.about-content {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text {
  color: var(--color-text);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.feature {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius);
  background: var(--color-bg);
}

.feature-icon {
  color: var(--color-accent);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 8px;
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.feature p {
  font-size: .9rem;
  color: var(--color-text-muted);
}

/* Services */
.services-list {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 32px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.services-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  color: var(--color-text);
  font-size: 1.05rem;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list li::before {
  content: "·";
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 12px;
}

/* Contact */
.contact-content {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-content p {
  margin-bottom: 12px;
  color: var(--color-text);
}

.contact-content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-content a:hover {
  text-decoration: underline;
}

.contact-notes {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* Footer */
.footer {
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: .9rem;
  background: var(--color-surface);
  border-top: 1px solid #e2e8f0;
}

.footer p + p {
  margin-top: 8px;
}

.footer-icp a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
