/* CNTT  -  China Pinginsider */
:root {
  --navy: #1a1a2e;
  --steel: #1a5276;
  --blue: #2980b9;
  --orange: #f39c12;
  --red: #e74c3c;
  --light: #f0f8ff;
  --gray: #f5f5f5;
  --text: #333;
  --text-light: #666;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}

/* Header */
header {
  background: var(--navy);
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
}

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

nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--orange); }
nav a.active { color: var(--orange); }

.lang-divider {
  color: rgba(255,255,255,0.3);
  margin-left: 24px;
  font-size: 0.85rem;
}

.lang-switch {
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.5px;
}

.lang-switch.active {
  color: var(--orange) !important;
  text-decoration: underline !important;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero .tagline {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

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

/* Section */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 40px;
  text-align: center;
}

/* Section Tags */
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-tag.news { background: #e8f4fd; color: var(--blue); }
.section-tag.profile { background: #fef3e2; color: var(--orange); }
.section-tag.equipment { background: #f0faf0; color: #27ae60; }

/* Article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.article-card {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.article-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--steel), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

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

.article-card .tag {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.article-card h3 a:hover { color: var(--blue); }

.article-card .meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.article-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Article page */
.article-full {
  max-width: 750px;
  margin: 0 auto;
  padding: 60px 20px;
}

.article-full .tag {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-full h1 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-full .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.article-full p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.article-full h2 {
  font-size: 1.5rem;
  color: var(--steel);
  margin: 32px 0 16px;
}

.article-full .lang-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.article-full .lang-btn {
  padding: 6px 18px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  background: white;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.article-full .lang-btn.active {
  background: var(--blue);
  color: white;
}

.article-full .lang-btn:hover {
  background: var(--blue);
  color: white;
}

.xhs-box {
  background: #fff5f5;
  border: 1px solid #ffd7d7;
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.xhs-box h3 {
  color: var(--red);
  margin-bottom: 8px;
  font-size: 1rem;
}

.xhs-box .xhs-content {
  font-size: 0.95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.xhs-box .hashtags {
  color: var(--blue);
  margin-top: 12px;
}

/* About page */
.about-page {
  max-width: 750px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-page h1 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 24px;
}

.about-page h2 {
  font-size: 1.4rem;
  color: var(--steel);
  margin: 32px 0 16px;
}

.about-page p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-page .values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.value-card {
  background: var(--gray);
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.value-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

footer p { margin-bottom: 8px; }

footer a { color: var(--orange); text-decoration: none; }

/* Lang content hidden by default */
.lang-en, .lang-fr { display: none; }
.lang-en.active, .lang-fr.active { display: block; }

/* Sources box */
.sources-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 40px 0 20px;
}

.sources-box h3 {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sources-box ul {
  margin-left: 16px;
  margin-bottom: 12px;
}

.sources-box li {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 4px;
  line-height: 1.5;
}

.sources-box .original-link {
  font-size: 0.85rem;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #dee2e6;
}

.sources-box .original-link a {
  color: var(--blue);
  word-break: break-all;
}

/* Responsive */
@media (max-width: 700px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .article-full h1 { font-size: 1.6rem; }
  .article-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 12px 20px; }
  nav a { margin: 0 12px; }
}
