/* ========================================
   Peach And Plum PTE LTD - Corporate Website
   ======================================== */

/* CSS Variables */
:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #D1FAE5;
  --secondary: #3B82F6;
  --secondary-dark: #2563EB;
  --accent: #F59E0B;
  --bg-white: #FFFFFF;
  --bg-gray: #F9FAFB;
  --bg-dark: #1F2937;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --border: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-white);
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-white) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary);
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-visual {
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-buttons {
    justify-content: center;
  }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.bg-gray {
  background: var(--bg-gray);
}

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

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.category-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.category-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.category-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  transition: var(--transition);
}

.category-card:hover .category-title {
  color: var(--primary);
}

.category-description {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.category-link:hover {
  gap: 10px;
}

.category-count {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-gray);
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: 20px;
  margin-left: 8px;
}

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

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-gray);
}

.product-content {
  padding: 24px;
}

.product-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 12px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a:hover {
  color: var(--primary);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

/* ========================================
   Solution Page Header
   ======================================== */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-white) 100%);
  text-align: center;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

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

.breadcrumb span {
  color: var(--text-light);
}

.page-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   Product Detail Page
   ======================================== */
.product-detail {
  padding-top: 100px;
}

.product-hero {
  padding: 60px 0;
  background: var(--bg-gray);
}

.product-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.product-hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.product-hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 968px) {
  .product-hero-content {
    grid-template-columns: 1fr;
  }
}

.product-features {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.feature-item {
  padding: 24px;
  background: var(--bg-gray);
  border-radius: var(--radius);
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.product-tech {
  padding: 60px 0;
  background: var(--bg-gray);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.tech-item {
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.tech-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tech-description {
  font-size: 14px;
  color: var(--text-secondary);
}

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

.product-users {
  padding: 60px 0;
}

.users-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: var(--radius);
  margin-top: 24px;
}

.users-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.users-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.product-nav {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.product-nav-link:hover {
  color: var(--primary);
}

/* ========================================
   Placeholder Pages
   ======================================== */
.placeholder-content {
  text-align: center;
  padding: 100px 20px;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.placeholder-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-light);
}

.placeholder-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.placeholder-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  padding: 40px;
  background: var(--bg-gray);
  border-radius: var(--radius-lg);
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-text p {
  font-size: 14px;
  color: var(--text-secondary);
}

.wechat-qr {
  border-radius: var(--radius);
}

/* 旧站的联系表单已下线（询盘统一走邮件 / 电话 / WhatsApp / 微信），表单样式一并移除 */

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

/* ========================================
   About Map
   ======================================== */
.about-map {
  padding: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.about-map h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.about-map iframe {
  flex: 1;
  border-radius: var(--radius);
  min-height: 300px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 600;
}

.footer-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

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

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

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

/* ========================================
   Language Switcher / i18n
   ======================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  font-size: 13px;
  font-weight: 600;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  line-height: 1.4;
  letter-spacing: 0.3px;
}

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

.lang-btn.active {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 968px) {
  .lang-switcher {
    margin-left: auto;
    margin-right: 8px;
  }
}

@media (max-width: 768px) {
  .lang-switcher {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    margin: 0;
  }
}

/* ========================================
   Job Postings
   ======================================== */
.job-location {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

.job-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.job-card ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.job-card ul li {
  list-style: disc;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.job-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* ========================================
   Case Studies
   ======================================== */
.section-flush {
  padding-top: 0;
}

.cases-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -40px;
  margin-bottom: 60px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.category-section {
  margin-bottom: 48px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.category-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.case-group-count {
  display: inline-block;
  padding: 2px 12px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
}

.case-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 14px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.case-card:hover {
  background: var(--bg-gray);
  border-left-color: var(--primary);
}

.case-name {
  flex: 1 1 100%;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.case-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.case-meta .label {
  color: var(--text-light);
}

.case-meta .badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.badge-rd {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-om {
  background: #FEF3C7;
  color: #D97706;
}

.badge-overseas {
  background: #DBEAFE;
  color: #2563EB;
}

.case-card-highlight {
  background: linear-gradient(135deg, var(--bg-gray), var(--bg-white));
  border-left-color: var(--secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.case-card-highlight .case-name {
  font-size: 16px;
}

/* 内容整理中的占位面板 */
.note-panel {
  background: var(--bg-white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.note-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.note-panel-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .cases-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .cases-stats {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   滚动入场（渐进增强：无 JS 时内容照常可见）
   ======================================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
