/*
Theme Name: Youdao AI Translator
Theme URI: https://example.com/youdao
Author: Antigravity AI
Author URI: https://example.com/
Description: A modern, high-converting Google SEO optimized WordPress theme inspired by Youdao AI Translator, featuring 10 accordion FAQs and responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: youdao
*/

:root {
  --primary-red: #e60012;
  --primary-red-hover: #cc0010;
  --text-dark: #1f2329;
  --text-muted: #646a73;
  --bg-light: #f7f9fc;
  --bg-card: #ffffff;
  --border-color: #e4e7ed;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-red);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-red);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.main-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--primary-red);
}
.btn-dl-header {
  background: var(--primary-red);
  color: #fff;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}
.btn-dl-header:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 64px 0 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #fff4f4 0%, #ffffff 70%);
}
.hero-title {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #111;
}
.hero-title span {
  color: var(--primary-red);
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.btn-primary-dl {
  background: var(--primary-red);
  color: #fff;
  padding: 14px 36px;
  border-radius: 28px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(230, 0, 18, 0.25);
  transition: all 0.25s;
}
.btn-primary-dl:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 0, 18, 0.35);
}
.hero-mockup {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.hero-mockup img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Features Sections */
.feature-block {
  padding: 80px 0;
}
.feature-block.alt-bg {
  background-color: var(--bg-light);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-grid.reverse {
  direction: rtl;
}
.feature-grid.reverse .feature-text {
  direction: ltr;
}
.feature-tag {
  display: inline-block;
  color: var(--primary-red);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.feature-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}
.feature-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.feature-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* 6 Grid Highlights */
.grid-section {
  padding: 90px 0;
  background: #ffffff;
  text-align: center;
}
.section-header-center {
  margin-bottom: 56px;
}
.section-header-center h2 {
  font-size: 36px;
  font-weight: 800;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all 0.25s;
}
.card-item:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: #fff0f1;
  color: var(--primary-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.card-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card-item p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Download CTA Section */
.download-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1f2329 0%, #111317 100%);
  color: #ffffff;
  text-align: center;
  border-radius: 24px;
  margin: 40px auto;
  max-width: 1150px;
}
.download-cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}
.download-cta-section p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 90px 0;
  background-color: var(--bg-light);
}
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.active {
  border-color: var(--primary-red);
}
.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
}
.faq-icon {
  font-size: 20px;
  color: var(--primary-red);
  transition: transform 0.3s;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 28px;
}
.faq-item.active .faq-answer {
  padding: 0 28px 22px 28px;
}
.faq-answer-inner {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  background: #111317;
  color: #a0a5b1;
  padding: 60px 0 30px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.footer-copy {
  text-align: center;
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-6 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
