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

:root {
  --primary: #0D7377;
  --primary-dark: #095456;
  --primary-light: #109196;
  --accent: #E8A838;
  --accent-dark: #d49520;
  --bg: #F7F8FA;
  --bg-white: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-light: #718096;
  --border: #E2E8F0;
  --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);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* ===== Header / Navigation ===== */
.site-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

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

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

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

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.main-nav a.btn-login {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius);
  margin-left: 8px;
}

.main-nav a.btn-login::after {
  display: none;
}

.main-nav a.btn-login:hover {
  background: var(--primary-dark);
  color: #fff;
}

.main-nav a.btn-register {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: var(--radius);
}

.main-nav a.btn-register::after {
  display: none;
}

.main-nav a.btn-register:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== Hero Banner ===== */
.hero-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,115,119,0.75) 0%, rgba(26,26,46,0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 24px;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 36px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
}

.hero-btn:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 48px 24px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.85;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  width: 100%;
}

/* ===== Section ===== */
.section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-secondary);
  margin-bottom: 28px;
  padding-left: 16px;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
}

.card-meta .author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta .phone-mask {
  color: var(--accent);
  font-weight: 500;
}

.card-link {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.card-link:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ===== Detail Page ===== */
.detail-container {
  max-width: 800px;
  margin: 0 auto;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-light);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.detail-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-primary);
}

.detail-content p {
  margin-bottom: 20px;
}

.detail-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

.detail-content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.detail-content ul li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.detail-contact {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.detail-contact h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

.detail-contact p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.detail-contact .phone-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.login-hint {
  margin-top: 16px;
  padding: 12px 16px;
  background: #FFF8E1;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-hint a {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Info / Policy Page ===== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content .policy-block {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.policy-block h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-block h2 .icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.policy-block p,
.policy-block li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 10px;
}

.policy-block ul {
  padding-left: 20px;
}

.policy-block .highlight {
  background: #FFF8E1;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin: 16px 0;
}

.policy-block .highlight strong {
  color: var(--accent-dark);
}

/* ===== Auth Forms ===== */
.auth-container {
  max-width: 440px;
  margin: 0 auto;
}

.auth-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.auth-form h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
}

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

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

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,115,119,0.1);
}

.form-group .checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-group .checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.form-group .checkbox-group label {
  cursor: pointer;
  margin-bottom: 0;
}

.form-group .checkbox-group a {
  color: var(--primary);
  font-weight: 500;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-info h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-info p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-links h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 8px;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

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

/* ===== Features Grid (Homepage) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: rgba(13,115,119,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* ===== About Section (Homepage) ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
}

.stat-item .number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== Publish Placeholder ===== */
.placeholder-page {
  text-align: center;
  padding: 80px 24px;
}

.placeholder-page .icon-large {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: rgba(13,115,119,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-page .icon-large svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
}

.placeholder-page h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
}

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

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

.breadcrumb .separator {
  color: var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

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

  .mobile-toggle {
    display: block;
  }

  .hero-banner {
    height: 280px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-header {
    padding: 32px 24px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .auth-form {
    padding: 28px 20px;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
