/*
Theme Name: 有道翻译官网
Theme URI: https://youdaol.cc
Author: Youdao
Description: 有道翻译官网风格WordPress主题
Version: 2.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #333; background: #fff; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.site-logo img { height: 32px; }
.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-menu a { color: #333; text-decoration: none; font-weight: 500; padding: 8px 12px; }

/* Hero */
.hero-section { background: url('images/hero-bg.webp') center/cover; height: 500px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { background: linear-gradient(180deg, #6b2c25, #1a1818); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 48px; font-weight: 700; letter-spacing: 10px; margin: 24px 0; }
.hero-logo { display: block; margin: 48px auto 0; height: 38px; }
.download-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 54px; }
.download-buttons img { cursor: pointer; height: 60px; }
.download-buttons img:hover { opacity: 0.85; }

/* AI Section */
.ai-section { padding: 80px 0; }
.ai-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; margin: 40px 0; }
.ai-grid-reverse { grid-template-columns: 1fr 2fr; }
.ai-content h3 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.ai-content p { color: #626469; font-size: 16px; line-height: 24px; margin-bottom: 12px; }
.ai-content img { width: 100%; }

/* Features */
.features-section { background: url('images/part2-bg.jpeg') center/cover; padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin: 40px 0; }
.feature-card { background: #fff; border-radius: 32px; overflow: hidden; }
.feature-card .text { padding: 40px 48px; }
.feature-card h3 { font-size: 28px; font-weight: 600; margin-bottom: 16px; }
.feature-card p { color: #626469; font-size: 16px; line-height: 24px; }
.feature-card img { width: 100%; }

/* Bottom Info */
.bottom-infos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 60px; }
.bottom-info-item { display: flex; align-items: center; gap: 15px; }
.bottom-info-item img { width: 80px; height: 80px; }
.bottom-info-text h4 { font-size: 20px; font-weight: 600; }
.bottom-info-text p { color: #626469; font-size: 14px; }

/* Blog Section */
.blog-section { padding: 80px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.blog-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; }
.blog-card img { width: 100%; height: 160px; object-fit: cover; }
.blog-card-content { padding: 20px; }
.blog-card h4 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { color: #666; font-size: 14px; line-height: 1.6; }

/* Download Section */
.download-section { background: url('images/translation.jpg') center/cover; padding: 80px 0; text-align: center; }
.download-section h2 { font-size: 36px; margin-bottom: 40px; }
.download-section img { width: 200px; cursor: pointer; }

/* Footer */
.site-footer { background: #f9f9f9; padding: 30px 0; text-align: center; color: #666; border-top: 1px solid #eee; }

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

@media (max-width: 768px) {
  .ai-grid, .ai-grid-reverse { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .bottom-infos { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 28px; letter-spacing: 4px; }
  .download-buttons { flex-direction: column; align-items: center; }
}
