/* TraceProve - Supply Chain Compliance */
:root {
  --primary: #0f172a;
  --primary-light: #1e3a5f;
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --text: #1e293b;
  --text-light: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-alt);
  border-radius: 20px;
  font-size: 14px;
}

.lang-switch a {
  color: var(--text-light);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: var(--primary);
  color: white;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: #0f172a;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #ffffff;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #ffffff !important;
}

.hero .subtitle {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  max-width: 700px;
  margin: 0 auto 40px;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.8);
}

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

/* Sections */
section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: white;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
}

.feature-card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.industry-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.industry-card .industry-header {
  background: var(--primary);
  color: white;
  padding: 24px;
  text-align: center;
}

.industry-card .industry-header .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.industry-card .industry-header h3 {
  font-size: 22px;
}

.industry-card .industry-body {
  padding: 24px;
}

.industry-card ul {
  list-style: none;
}

.industry-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.industry-card li:last-child {
  border-bottom: none;
}

.industry-card li::before {
  content: "✓";
  color: #16a34a;
  font-weight: bold;
}

/* Process */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}

.process-step {
  text-align: center;
  position: relative;
  flex: 1;
}

.process-step .step-number {
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary);
}

.process-step p {
  color: var(--text);
  font-size: 14px;
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
    gap: 40px;
  }
  .process-steps::before {
    display: none;
  }
}

/* Contact */
.contact-section {
  background: #0f172a;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #ffffff;
}

.contact-section .section-title h2 {
  color: #ffffff;
}

.contact-section .section-title p {
  color: rgba(255,255,255,0.9);
}

.contact-section h3 {
  color: #ffffff;
}

.contact-section .contact-item {
  color: #ffffff;
}

.contact-section .contact-item strong {
  color: #ffffff;
}

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

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

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

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

.contact-item .icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
}

.contact-form h3 {
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

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

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

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}

.footer h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 16px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 12px;
}

.footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .hero .subtitle {
    font-size: 16px;
  }
  
  .nav-links {
    display: none;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Industry Detail Styling */
.industry-detail {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.industry-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.industry-icon {
  font-size: 48px;
}

.industry-detail-header h3 {
  margin: 0;
  font-size: 24px;
  color: #0f172a;
}

.typical-product {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.trace-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 20px;
}

.trace-item {
  padding: 12px 24px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 500;
  min-width: 200px;
  text-align: center;
}

.trace-item.final {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  font-weight: 600;
}

.trace-item.origin {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
  font-weight: 600;
}

.trace-arrow {
  color: #94a3b8;
  font-size: 20px;
  padding: 4px 0;
}

.industry-components {
  padding: 16px;
  background: #f1f5f9;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
}

.industry-components strong {
  color: #0f172a;
}

@media (max-width: 768px) {
  .industry-detail {
    padding: 20px;
  }
  
  .industry-icon {
    font-size: 36px;
  }
  
  .trace-item {
    min-width: 160px;
    padding: 10px 16px;
    font-size: 14px;
  }
}

/* Highlight card and industry highlight */
.highlight-card {
  border: 2px solid #0ea5e9 !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
}

.industry-highlight {
  margin-top: 16px;
  padding: 16px;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  color: #92400e;
  font-size: 14px;
  line-height: 1.6;
}

.industry-highlight strong {
  color: #78350f;
}

/* Collaboration Section */
.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.collab-card {
  padding: 32px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.collab-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #0f172a;
}

.collab-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.collab-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.collab-card ul li:last-child {
  border-bottom: none;
}

.collab-card.ours {
  border-top: 4px solid #0ea5e9;
}

.collab-card.yours {
  border-top: 4px solid #22c55e;
}

.collab-secret {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
}

.collab-secret strong {
  font-size: 18px;
  color: #92400e;
}

.collab-secret p {
  margin: 8px 0 0;
  color: #78350f;
}

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