/* ============================================
   云帆科技门户网站 - 主样式表
   设计：现代简约 + 企业级专业感
   适配：PC + 移动端 + 百度蜘蛛友好
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --secondary: #0f172a;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.25s ease;
  --max-width: 1200px;
}

/* ==================== Reset & Base ==================== */

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

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

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

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

ul { list-style: none; }

/* ==================== Top Bar ==================== */

.top-bar {
  background: var(--secondary);
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
}

.top-bar .container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-phone, .top-email {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-social {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.top-social a {
  color: #94a3b8;
}

.top-social a:hover {
  color: #fff;
}

/* ==================== Header / Nav ==================== */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.3rem;
}

.logo:hover { color: var(--primary); }

.logo-icon { font-size: 1.5rem; }

.main-nav {
  display: flex;
  gap: 4px;
}

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==================== Hero ==================== */

.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #0ea5e9 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 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.05'%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-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.75;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ==================== Buttons ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  line-height: 1.5;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-primary:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ==================== Sections ==================== */

/* 紧凑版Hero（后台可切换） */
.hero-compact {
  padding: 40px 0 30px;
}
.hero-compact h1 {
  font-size: 2.2rem;
}
.hero-compact .hero-subtitle {
  font-size: 1.05rem;
}
.hero-compact .hero-desc {
  margin-bottom: 20px;
}
.hero-compact .hero-btns {
  gap: 10px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== Services Grid ==================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--secondary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

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

/* ==================== Industry Grid ==================== */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.industry-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.industry-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.industry-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.industry-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ==================== Advantages ==================== */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.advantage-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.adv-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
}

.advantage-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--secondary);
}

.advantage-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==================== Clients ==================== */

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

.client-logo {
  padding: 28px 16px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-light);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.client-logo:hover {
  border-color: var(--primary-light);
  color: var(--text);
}

/* ==================== CTA ==================== */

.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.cta-section p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==================== Page Banner ==================== */

.page-banner {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff;
  padding: 48px 0;
}

.page-banner h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.breadcrumb {
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: rgba(255,255,255,0.9);
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb span {
  margin: 0 4px;
}

/* ==================== About Page ==================== */

.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.about-lead {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.8;
}

.about-img-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  font-size: 4rem;
  color: var(--text-light);
}

.about-img-placeholder p {
  font-size: 1rem;
  margin-top: 12px;
}

/* Timeline */

.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-content h4 {
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Honors */

.honors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.honor-item {
  padding: 24px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
}

/* ==================== Services Page ==================== */

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-detail {
  display: flex;
  gap: 28px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.service-detail:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.service-detail-icon {
  font-size: 3rem;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius);
}

.service-detail-content h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.service-detail-desc {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 12px;
}

.service-detail-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-detail-content li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 12px;
  border-left: 2px solid var(--primary-light);
}

/* ==================== Solutions Page ==================== */

.solution-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.solution-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.solution-header {
  display: flex;
  gap: 20px;
  padding: 28px 32px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.solution-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.solution-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.solution-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.solution-content {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-feature h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.solution-feature p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ==================== News Page ==================== */

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card, .news-list-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  background: var(--bg);
}

.news-card:hover, .news-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.news-category {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  margin-right: 8px;
}

time, .news-views {
  color: var(--text-light);
  font-size: 0.8rem;
}

.news-card h3, .news-list-item h3 {
  font-size: 1.05rem;
  margin: 10px 0 8px;
  line-height: 1.5;
}

.news-card h3 a, .news-list-item h3 a {
  color: var(--secondary);
}

.news-card h3 a:hover, .news-list-item h3 a:hover {
  color: var(--primary);
}

.news-card p, .news-list-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.news-placeholder {
  text-align: center;
  color: var(--text-light);
  grid-column: 1 / -1;
  padding: 40px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-list-meta {
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* News Detail */

.news-article {
  max-width: 800px;
  margin: 0 auto;
}

.news-article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.news-article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.news-article-body p {
  margin-bottom: 16px;
}

.news-article-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ==================== Contact Page ==================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-intro {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-method-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.contact-method h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.contact-method p {
  font-weight: 600;
}

.contact-method small {
  color: var(--text-light);
  font-size: 0.8rem;
}

.contact-form-wrapper {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.contact-form-wrapper h2 {
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
}

.required { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-feedback {
  text-align: center;
  font-weight: 600;
  min-height: 24px;
}

.form-feedback.success {
  color: var(--success);
}

.form-feedback.error {
  color: var(--danger);
}

/* ==================== Footer ==================== */

.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 8px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

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

.footer-seo {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #64748b;
}

.footer-seo a {
  color: #64748b;
}

/* ==================== Chat Widget ==================== */

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-toggle:hover {
  transform: scale(1.08);
  background: var(--primary-dark);
}

.chat-icon {
  font-size: 1.5rem;
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-panel {
  display: none;
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 360px;
  height: 500px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  opacity: 0.8;
}

.chat-close:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-alt);
}

.chat-msg {
  display: flex;
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.chat-msg.user .chat-avatar {
  background: var(--bg-dark);
}

.chat-bubble {
  max-width: 260px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-line;
}

.chat-msg.bot .chat-bubble {
  background: var(--bg);
  border: 1px solid var(--border);
}

.chat-msg.user .chat-bubble {
  background: var(--primary);
  color: #fff;
}

.chat-bubble small {
  color: var(--text-light);
  font-size: 0.8rem;
}

.chat-typing .chat-bubble {
  color: var(--text-light);
  font-style: italic;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid var(--border);
  padding: 10px;
  gap: 8px;
  background: var(--bg);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--primary);
}

.chat-send {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.chat-send:hover { background: var(--primary-dark); }

.chat-footer {
  background: var(--bg-alt);
  text-align: center;
  padding: 8px;
  border-top: 1px solid var(--border);
}

.chat-footer small {
  color: var(--text-light);
  font-size: 0.75rem;
}

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

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .top-bar { display: none; }

  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-num { font-size: 1.6rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

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

  .main-nav a {
    padding: 12px 16px;
    border-radius: var(--radius);
  }

  .mobile-menu-btn { display: flex; }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .news-preview-grid { grid-template-columns: 1fr; }

  .about-intro { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: repeat(2, 1fr); }

  .service-detail { flex-direction: column; }
  .solution-content { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .chat-panel {
    width: calc(100vw - 48px);
    height: 60vh;
    right: -8px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-btns { flex-direction: column; }
  .industry-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .honors-grid { grid-template-columns: 1fr; }
}
