/* ============================================
   潘塔企管官网 - 静态站样式
   ============================================ */

:root {
  --primary: #ff6b35;       /* 主色：橙（取自 logo） */
  --primary-dark: #e55a2b;  /* 主色深 */
  --dark: #1f2937;          /* 深色（标题/页脚） */
  --gray-900: #2c2c2c;      /* 正文文字 */
  --gray-700: #4b5563;      /* 副文 */
  --gray-500: #6b7280;      /* 辅助文字 */
  --gray-300: #d1d5db;      /* 边框 */
  --gray-100: #f3f4f6;      /* 浅灰背景 */
  --gray-50: #f8f9fa;       /* 页面背景 */
  --white: #ffffff;
  --max-width: 1200px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.2s ease;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Source Han Sans CN", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

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

/* ============================================
   顶部条（电话/邮箱）
   ============================================ */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar a { color: rgba(255, 255, 255, 0.85); }
.topbar a:hover { color: var(--primary); }
.topbar-info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info svg { width: 14px; height: 14px; opacity: 0.7; }

/* ============================================
   Header（Logo + 导航）
   ============================================ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 168px;
}
.logo img {
  height: 140px;
  width: auto;
}
.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav a {
  color: var(--gray-900);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}
.nav a:hover, .nav a.active {
  color: var(--primary);
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav a.external::after {
  content: ' ↗';
  font-size: 11px;
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 1px;
  transition: var(--transition);
}

/* ============================================
   Hero（大图 banner）
   ============================================ */
.hero {
  position: relative;
  height: 540px;
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.75) 0%, rgba(255, 107, 53, 0.4) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content {
  max-width: 720px;
}
.hero-tagline {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 107, 53, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.hero p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 32px;
  max-width: 600px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-small {
  height: 360px;
}
.hero-small h1 {
  font-size: 40px;
}
.hero-small p { font-size: 16px; margin-bottom: 0; }

/* ============================================
   Button
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ============================================
   Section 通用
   ============================================ */
.section {
  padding: 80px 0;
}
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--dark); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tagline {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  font-size: 16px;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto;
}
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.8); }

/* ============================================
   服务卡片
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.service-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4));
}
.service-card-body {
  padding: 28px;
}
.service-card-num {
  display: inline-block;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.service-card h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
  font-weight: 600;
}
.service-card p {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
}

/* 服务页 - 4 大类 */
.service-block {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.service-block-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.service-block-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-block h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}
.service-block h2 small {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  letter-spacing: 2px;
  margin-top: 4px;
}
.service-block > div > p {
  color: var(--gray-700);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
}
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.service-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--gray-900);
  font-size: 14px;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 2px;
  background: var(--primary);
}

/* ============================================
   课程卡（首页）
   ============================================ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.course-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.course-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.course-card-body {
  padding: 20px;
}
.course-card-tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 8px;
}
.course-card h3 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 6px;
  font-weight: 600;
  line-height: 1.4;
}
.course-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   思考方式（THINKING）
   ============================================ */
.thinking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.thinking-item {
  text-align: center;
}
.thinking-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  font-weight: 700;
}
.thinking-item h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}
.thinking-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.7;
}

.capability-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.capability-tag {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ============================================
   表单
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group label .req { color: var(--primary); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--gray-900);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  text-align: center;
  margin-top: 32px;
}
.form-submit .btn { min-width: 200px; justify-content: center; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.contact-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.contact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 28px; height: 28px; }
.contact-card h4 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--gray-700);
  font-size: 15px;
  word-break: break-all;
}

/* ============================================
   关于我们
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.about-intro h2 {
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.about-intro h2 small {
  display: block;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.about-intro p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-intro-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about-intro-img img { width: 100%; height: 100%; object-fit: cover; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  color: var(--white);
  margin-bottom: 60px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  opacity: 0.95;
  letter-spacing: 1px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-about p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-about img { height: 48px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}
.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--primary);
}
.footer-qr {
  text-align: center;
}
.footer-qr img {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  background: var(--white);
  padding: 8px;
  border-radius: 8px;
}
.footer-qr p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .section-title { font-size: 30px; }
  .service-block { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar-info { gap: 12px; font-size: 12px; }
  .topbar-info span:nth-child(3) { display: none; }
  .header .container { height: 116px; }
  .logo img { height: 96px; }
  .nav { display: none; position: absolute; top: 116px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; gap: 20px; box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { height: 480px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .thinking-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); padding: 28px; }
  .stat-num { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
