/* ===== 每日大赛摄影每日一图赛 - 全局样式 ===== */
:root {
  --primary: #111111;
  --secondary: #A7A7A7;
  --bg: #050505;
  --card: #1A1A1A;
  --accent: #D4AF37;
  --text: #FAFAFA;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --font-title: 'Noto Serif SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  color: #E8C547;
  text-decoration: underline;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; }

/* ===== 容器 ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* ===== 导航 ===== */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(167, 167, 167, 0.1);
  padding: 0.8rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero 首屏 ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,0.3), rgba(5,5,5,0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.hero-content .daily-theme {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.8rem 2rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--accent);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #E8C547;
  color: var(--primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(167, 167, 167, 0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  border-color: rgba(212, 175, 55, 0.2);
}

/* ===== 瀑布流 ===== */
.masonry-grid {
  columns: 3;
  column-gap: 1rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  transition: var(--transition);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.masonry-item:hover img {
  transform: scale(1.03);
}

.masonry-item .photo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0;
  transition: var(--transition);
}

.masonry-item:hover .photo-info {
  opacity: 1;
}

/* ===== 胶片带 ===== */
.film-strip {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.film-strip::before,
.film-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 2;
}

.film-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.film-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.film-track {
  display: flex;
  gap: 0.5rem;
  animation: filmScroll 30s linear infinite;
  width: max-content;
}

.film-frame {
  width: 120px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(167, 167, 167, 0.2);
  position: relative;
}

.film-frame::before,
.film-frame::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 5px;
  background: rgba(167, 167, 167, 0.3);
  border-radius: 1px;
}

.film-frame::before { top: 2px; }
.film-frame::after { bottom: 2px; }

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== EXIF 信息卡 ===== */
.exif-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(167, 167, 167, 0.1);
}

.exif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.exif-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.exif-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  color: var(--accent);
  font-size: 1.1rem;
}

.exif-label {
  font-size: 0.75rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exif-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
}

/* ===== 灯箱 ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
}

/* ===== 相册标签 ===== */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent);
  transition: var(--transition);
}

.tag:hover {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 1rem 0;
  margin-top: 4.5rem;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--secondary);
  flex-wrap: wrap;
}

.breadcrumb-list li::after {
  content: '/';
  margin-left: 0.5rem;
  color: rgba(167, 167, 167, 0.4);
}

.breadcrumb-list li:last-child::after {
  content: '';
}

.breadcrumb-list a {
  color: var(--secondary);
}

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

/* ===== 页脚 ===== */
.site-footer {
  background: var(--primary);
  border-top: 1px solid rgba(167, 167, 167, 0.1);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: var(--secondary);
  font-size: 0.85rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(167, 167, 167, 0.1);
  font-size: 0.8rem;
  color: var(--secondary);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(167, 167, 167, 0.1);
  padding: 1.2rem 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 0.8rem;
}

/* ===== 搜索 ===== */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-right: 3rem;
  background: var(--card);
  border: 1px solid rgba(167, 167, 167, 0.2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-box button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
}

.search-results {
  margin-top: 2rem;
}

.search-result-item {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(167, 167, 167, 0.08);
}

.search-result-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.search-result-item p {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.search-result-item .path {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ===== 评图区 ===== */
.critique-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(167, 167, 167, 0.08);
}

.critique-card .photo-side {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}

.critique-card .comment-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.critique-card .reviewer {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.critique-card .comment-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

/* ===== 主题预告 ===== */
.theme-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.theme-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(167, 167, 167, 0.08);
  transition: var(--transition);
}

.theme-card:hover {
  border-color: var(--accent);
}

.theme-card .date {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.theme-card .theme-name {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.theme-card .theme-desc {
  font-size: 0.85rem;
  color: var(--secondary);
}

/* ===== 页面内容区 ===== */
.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
  margin-top: 4.5rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header .page-desc {
  color: var(--secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 2rem 0;
}

.content-section h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(167, 167, 167, 0.1);
}

/* ===== 列表 ===== */
.info-list {
  list-style: none;
}

.info-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(167, 167, 167, 0.05);
  padding-left: 1.5rem;
  position: relative;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== 关联链接 ===== */
.related-links {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
}

.related-links h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--accent);
}

.related-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.related-links ul li a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--secondary);
  transition: var(--transition);
}

.related-links ul li a:hover {
  background: var(--accent);
  color: var(--primary);
  text-decoration: none;
}

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

@keyframes filmScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    padding: 1rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }

  .hero-content h1 { font-size: 2rem; }
  .hero-content .subtitle { font-size: 1rem; }

  .masonry-grid { columns: 2; }

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

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

  .section { padding: 2.5rem 0; }

  .film-frame {
    width: 90px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 500px; }
}

/* ===== 404页面 ===== */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 2rem;
}

.error-page .error-code {
  font-size: 8rem;
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

/* ===== APP下载页 ===== */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.app-features {
  list-style: none;
}

.app-features li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--secondary);
}

.app-features li::before {
  content: '◉';
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 768px) {
  .app-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== 版权提示条 ===== */
.copyright-notice {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.85rem;
  color: var(--secondary);
}

.copyright-notice strong {
  color: var(--accent);
}
