/* FreePS 内容页面公共样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #f8f9fa;
}

a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶部导航 */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.site-header .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-header .logo {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}
.site-header .logo:hover { text-decoration: none; color: #1a73e8; }
.site-header nav a {
  margin-left: 24px;
  color: #555;
  font-weight: 500;
}
.site-header nav a:hover { color: #1a73e8; text-decoration: none; }

/* 主容器 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* About 页面 */
.about-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 40px;
}
.about-hero h1 { font-size: 36px; margin-bottom: 16px; }
.about-hero p { font-size: 18px; opacity: 0.95; max-width: 600px; margin: 0 auto; }

.about-section {
  background: #fff;
  border-radius: 10px;
  padding: 36px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.about-section h2 {
  font-size: 22px;
  color: #1a73e8;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f0fe;
}
.about-section h3 {
  font-size: 17px;
  color: #444;
  margin: 20px 0 10px;
}
.about-section p { margin-bottom: 12px; color: #555; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.feature-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #1a73e8;
}
.feature-item h4 { color: #333; margin-bottom: 8px; font-size: 15px; }
.feature-item p { font-size: 14px; margin: 0; color: #666; }

/* 教程列表页 */
.post-list-header {
  text-align: center;
  padding: 50px 20px 30px;
}
.post-list-header h1 { font-size: 30px; color: #222; margin-bottom: 10px; }
.post-list-header p { color: #666; font-size: 16px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.post-card .thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
}
.post-card .body { padding: 18px 20px 22px; }
.post-card h2 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.post-card h2 a { color: #222; }
.post-card h2 a:hover { color: #1a73e8; text-decoration: none; }
.post-card p { color: #666; font-size: 14px; line-height: 1.5; }
.post-card .meta { font-size: 12px; color: #999; margin-top: 12px; }

/* 教程详情页 */
.article {
  background: #fff;
  border-radius: 10px;
  padding: 48px 56px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.article .breadcrumb {
  font-size: 14px;
  color: #999;
  margin-bottom: 16px;
}
.article .breadcrumb a { color: #666; }
.article h1 {
  font-size: 28px;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.4;
}
.article .meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.article h2 {
  font-size: 20px;
  color: #1a73e8;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8f0fe;
}
.article h3 {
  font-size: 16px;
  color: #444;
  margin: 24px 0 10px;
}
.article p {
  margin-bottom: 14px;
  color: #444;
}
.article ul, .article ol {
  margin: 12px 0 18px 24px;
}
.article li { margin-bottom: 8px; color: #444; }
.article strong { color: #222; }
.article code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
  color: #c7254e;
}
.article .tip-box {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 4px;
}
.article .tip-box strong { color: #2e7d32; }
.article .step {
  background: #f8f9fa;
  border-left: 4px solid #1a73e8;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 4px;
}
.article .step strong {
  color: #1a73e8;
  display: block;
  margin-bottom: 6px;
}

/* 教程底部导航 */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.article-nav a {
  flex: 1;
  padding: 14px 18px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 14px;
  color: #555;
}
.article-nav a:hover { background: #e8f0fe; text-decoration: none; }
.article-nav .prev { margin-right: 10px; }
.article-nav .next { text-align: right; margin-left: 10px; }

/* 通用图片占位符（渐变） */
.img-placeholder {
  width: 100%;
  max-width: 800px;
  height: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  margin: 20px auto;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: #999;
  font-size: 13px;
  background: #fff;
  border-top: 1px solid #eee;
  margin-top: 40px;
}
.site-footer a { color: #666; margin: 0 8px; }

/* 通用法律页面（Privacy / Terms / Contact） */
.page-content { padding-bottom: 40px; }
.page-content h1 { font-size: 30px; color: #222; margin-bottom: 12px; }
.page-content h2 { font-size: 20px; color: #1a73e8; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e8f0fe; }
.page-content h3 { font-size: 16px; color: #444; margin: 20px 0 8px; }
.page-content p { margin-bottom: 14px; color: #444; line-height: 1.8; }
.page-content ul { margin: 12px 0 18px 24px; }
.page-content li { margin-bottom: 8px; color: #444; }
.page-content a { color: #1a73e8; }
.page-content .last-updated { color: #999; font-size: 13px; margin-bottom: 24px; }

/* Contact 页面 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid #1a73e8;
}
.contact-card h3 { margin-top: 0; color: #1a73e8; }
.contact-card ul { margin: 8px 0 12px 20px; font-size: 14px; color: #555; }
.contact-card .email-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
  .article { padding: 24px 20px; }
  .article h1 { font-size: 22px; }
  .post-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 26px; }
  .site-header .container { padding: 0 16px; }
  .site-header nav a { margin-left: 12px; font-size: 14px; }
}
