:root {
  --primary: #0b4f8c;
  --primary-dark: #073966;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --text: #1f2937;
  --text-light: #4b5563;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text); background: var(--white); line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-icon { height: 60px; width: auto; }
.site-name { font-size: 26px; font-weight: 700; color: var(--primary); white-space: nowrap; letter-spacing: 1px; }
@media (max-width: 900px) {
  .site-name { font-size: 18px; }
  .logo-icon { height: 44px; }
}
@media (max-width: 480px) {
  .site-name { font-size: 14px; }
  .logo-icon { height: 36px; }
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 15px; color: var(--text); font-weight: 500; position: relative; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after, .nav a:hover::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--primary); border-radius: 1px;
}
.mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; color: var(--primary); cursor: pointer; }

@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 14px; }
  .nav.open { display: flex; }
  .mobile-menu-btn { display: block; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; cursor: pointer; border: none; transition: all .2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Hero */
.hero {
  position: relative; min-height: 520px; display: flex; align-items: center;
  background: linear-gradient(135deg, #0b4f8c 0%, #0ea5e9 100%);
  color: var(--white); overflow: hidden;
}
.hero::before {
  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.06'%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");
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 44px; margin: 0 0 16px; font-weight: 700; letter-spacing: 2px; }
.hero p { font-size: 20px; margin: 0 0 28px; opacity: 0.95; }
.hero-features { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.hero-features span { background: rgba(255,255,255,0.14); padding: 8px 16px; border-radius: 20px; font-size: 14px; }

/* Sections */
.section { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 32px; margin: 0 0 10px; color: var(--primary); }
.section-title p { color: var(--text-light); margin: 0; font-size: 16px; }
.section-alt { background: var(--bg); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.about-text p { color: var(--text-light); margin: 0 0 16px; }
.highlights { display: flex; gap: 24px; margin-top: 28px; }
.highlight { background: var(--white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); flex: 1; text-align: center; }
.highlight strong { display: block; font-size: 26px; color: var(--primary); }
.highlight span { font-size: 14px; color: var(--text-light); }
.about-visual { background: var(--accent-light); border-radius: var(--radius); min-height: 280px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 600; font-size: 18px; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all .2s; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--accent); }
.service-card h3 { margin: 0 0 12px; color: var(--primary); font-size: 18px; }
.service-card ul { margin: 0; padding-left: 18px; color: var(--text-light); font-size: 14px; }
.service-card li { margin-bottom: 6px; }

/* Process */
.process { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.process-step { flex: 1; min-width: 150px; background: var(--white); border-radius: var(--radius); padding: 20px; text-align: center; border: 1px solid var(--border); position: relative; }
.process-step::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: bold; }
.process-step:last-child::after { display: none; }
.process-step .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 10px; }
.process-step h4 { margin: 0 0 6px; font-size: 15px; }
.process-step p { margin: 0; font-size: 13px; color: var(--text-light); }

/* Promise */
.promise-list { max-width: 800px; margin: 0 auto; }
.promise-list li { margin-bottom: 12px; color: var(--text-light); }

/* Cases */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.case-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.case-thumb { height: 180px; background: linear-gradient(135deg, #0b4f8c, #0ea5e9); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 16px; text-align: center; padding: 20px; }
.case-body { padding: 20px; }
.case-body h3 { margin: 0 0 10px; font-size: 17px; color: var(--primary); }
.case-body p { margin: 0 0 12px; font-size: 14px; color: var(--text-light); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--accent-light); color: var(--primary); padding: 4px 10px; border-radius: 12px; font-size: 12px; }

/* Lists (knowledge/news) */
.article-list { display: grid; gap: 16px; }
.article-item { display: flex; gap: 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; align-items: flex-start; }
.article-date { min-width: 64px; text-align: center; }
.article-date .day { display: block; font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.article-date .month { font-size: 12px; color: var(--text-light); }
.article-body h3 { margin: 0 0 6px; font-size: 17px; }
.article-body p { margin: 0; color: var(--text-light); font-size: 14px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h3 { margin-top: 0; color: var(--primary); }
.contact-info p { margin: 8px 0; color: var(--text-light); }
.contact-info .big-phone { font-size: 28px; font-weight: 700; color: var(--primary); margin: 12px 0; }
.contact-card { background: var(--bg); padding: 28px; border-radius: var(--radius); }
.notice { background: #fff7ed; border-left: 4px solid #f59e0b; padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 20px; color: #92400e; font-size: 14px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: #0a2744; color: #cbd5e1; padding: 36px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer a { color: #93c5fd; }

/* CTA bar */
.cta-bar { background: var(--primary); color: #fff; padding: 28px 0; }
.cta-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-bar h3 { margin: 0; font-size: 22px; }
.cta-bar p { margin: 4px 0 0; opacity: 0.9; }

/* Admin */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-header { background: var(--primary); color: #fff; padding: 14px 0; }
.admin-header-inner { display: flex; justify-content: space-between; align-items: center; }
.admin-login { max-width: 380px; margin: 80px auto; background: var(--white); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-login h2 { margin-top: 0; color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.admin-editor { max-width: 1100px; margin: 24px auto; background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-section { margin-bottom: 32px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.admin-section h3 { margin: 0 0 16px; color: var(--primary); }
.message { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; display: none; }
.message.success { background: #dcfce7; color: #166534; display: block; }
.message.error { background: #fee2e2; color: #991b1b; display: block; }

.hidden { display: none !important; }

/* Posts & Media */
.post-list { display: grid; gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-header { padding: 20px 20px 0; }
.post-header h3 { margin: 0 0 6px; color: var(--primary); font-size: 18px; }
.post-meta { font-size: 13px; color: var(--text-light); }
.post-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 16px 20px; }
.post-media img, .post-media video { width: 100%; border-radius: var(--radius); background: var(--bg); }
.post-content { padding: 0 20px 20px; color: var(--text-light); white-space: pre-wrap; }
.post-actions { padding: 0 20px 16px; }
.post-actions .btn { padding: 8px 18px; font-size: 13px; }

/* Admin post editor */
.post-form { background: var(--bg); padding: 20px; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid var(--border); }
.post-form h4 { margin: 0 0 16px; color: var(--primary); }
.media-preview { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.media-thumb { position: relative; width: 120px; height: 120px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .remove { position: absolute; top: 4px; right: 4px; background: rgba(220,38,38,0.9); color: #fff; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 12px; line-height: 1; }
.post-item { background: var(--bg); padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.post-item-title { font-weight: 600; color: var(--text); }
.post-item-actions { display: flex; gap: 8px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.upload-input { display: none; }
.upload-label { display: inline-block; padding: 8px 16px; border: 1px dashed var(--border); border-radius: var(--radius); cursor: pointer; color: var(--text-light); font-size: 13px; }
.upload-label:hover { border-color: var(--primary); color: var(--primary); }

