/* 
 * 被窝电影网 - 全局样式表
 * 主色调：淡黑金 (Light Black & Gold)
 * 风格：奢华、简约、深邃
 */

:root {
  --bg-color: #0A0A0A;
  --panel-bg: #161616;
  --accent-gold: #D4AF37; /* 经典金 */
  --accent-gold-light: #F1D279;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --line-gold: rgba(212, 175, 55, 0.3);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", -apple-system, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,900;1,900&display=swap');

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* 布局组件 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* 导航栏 */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-gold);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-links a.active {
  color: var(--accent-gold);
  font-weight: 600;
}

/* 按钮及浮动元素 */
.btn-gold {
  background: var(--accent-gold);
  color: #000;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-gold:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

.floating-app {
  position: fixed;
  right: 30px;
  bottom: 100px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* 首页 Banner */
.hero {
  padding: 200px 0 100px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(10,10,10,0.5), var(--bg-color)), url('https://tse-mm.bing.com/th?q=Cinema+Background+Gold') center/cover;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(45deg, var(--accent-gold), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* 板块通用头部 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  position: relative;
  padding-left: 20px;
}

.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 4px;
  background: var(--accent-gold);
}

/* 影片卡片 */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: var(--transition);
  aspect-ratio: 2/3;
}

.movie-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

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

.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.movie-card:hover .movie-info {
  transform: translateY(0);
  opacity: 1;
}

.movie-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.movie-meta {
  font-size: 12px;
  color: var(--accent-gold);
}

/* 新闻动态列表 */
.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.news-item {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.news-img {
  width: 120px;
  height: 80px;
  border-radius: 4px;
}

.news-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.news-content p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 筛选器 */
.filter-section {
  background: var(--panel-bg);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 40px;
  border: 1px solid var(--line-gold);
}

.filter-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  color: var(--accent-gold);
  font-size: 14px;
  width: 60px;
}

.filter-btn {
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent-gold);
  color: #000;
}

/* 关于我们板块 */
.about-hero {
  padding: 150px 0 80px;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

/* 表单样式 */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full {
  grid-column: span 2;
}

input, textarea {
  width: 100%;
  padding: 15px;
  background: var(--panel-bg);
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  color: #fff;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--accent-gold);
}

/* 页脚 */
footer {
  padding: 80px 0 40px;
  background: #050505;
  border-top: 1px solid var(--line-gold);
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.footer-links h4 {
  margin-bottom: 25px;
  color: var(--accent-gold);
}

.footer-links ul li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: var(--text-secondary);
}

/* 动画类 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .news-list, .about-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}
