/* This Is Me - Official Website Styles */

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

:root {
  --bg-color: #FDFBF7;
  --text-primary: #2D3748;
  --text-secondary: #718096;
  --text-tertiary: #A0AEC0;
  --primary-color: #007AFF;
  --primary-hover: #0056CC;
  --gold-dark: #b38728;
  --gold-light: #fcf6ba;
  --border-color: #E2E8F0;
  --card-bg: #FFFFFF;
  --footer-bg: #F7FAFC;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
}

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

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

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

.lang-switch-icon {
  width: 16px;
  height: 16px;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

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

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

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(247, 250, 252, 0.5) 100%);
}

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

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.feature-title {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.feature-desc {
  font-size: 0.95rem;
  margin: 0;
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-title {
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.95rem;
  margin: 0;
}

/* Download Section */
.download {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.5) 0%, transparent 100%);
}

.download-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.download-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border-color);
  min-width: 260px;
  transition: all 0.3s ease;
}

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

.download-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.download-title {
  margin-bottom: 4px;
}

.download-desc {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  padding: 48px 0;
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
}

.footer-desc {
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-links-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 8px;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

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

/* Privacy Page */
.privacy-page {
  padding: 100px 0 80px;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.privacy-title {
  margin-bottom: 12px;
}

.privacy-date {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.privacy-section {
  margin-bottom: 32px;
}

.privacy-section h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.privacy-section p {
  margin-bottom: 12px;
}

.privacy-section ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.privacy-section li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.privacy-contact {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-top: 32px;
}

.privacy-contact h3 {
  margin-bottom: 12px;
}

.privacy-contact a {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .header-inner {
    height: 56px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-icon {
    width: 80px;
    height: 80px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .features, .how-it-works, .download {
    padding: 60px 0;
  }

  .feature-card {
    padding: 24px;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }

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

  .nav {
    gap: 12px;
  }

  .nav-link {
    display: none;
  }

  .privacy-page {
    padding: 80px 0 60px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

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

.hero-icon, .hero-title, .hero-subtitle, .hero-tagline, .btn-group {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-icon { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-tagline { animation-delay: 0.4s; }
.btn-group { animation-delay: 0.5s; }

/* Language Dropdown */
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  min-width: 140px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.lang-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-dropdown button:hover {
  background: var(--footer-bg);
  color: var(--text-primary);
}

.lang-dropdown button.active {
  background: var(--primary-color);
  color: white;
}

/* Position relative for nav */
.nav {
  position: relative;
}
