/* 青春影视 - UI Style: 深色优雅 - Layout: D */

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: #1a73e8;
  text-decoration: none;
  transition: color 0.3s;
}

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

ul {
  list-style: none;
}

/* 导航栏样式 */
nav {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

nav .logo {
  font-size: 24px;
  font-weight: bold;
  color: #1a73e8;
  padding: 15px 0;
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

nav ul li {
  padding: 15px;
  white-space: nowrap;
}

nav ul li a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #1a73e8;
  text-decoration: none;
}

/* 移动端导航样式 - 单行不换行 */
@media (max-width: 768px) {
  nav ul {
    flex: 1;
    justify-content: space-between;
  }

  nav ul li {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 5px;
    text-align: center;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  nav .logo {
    font-size: 20px;
  }
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #1a73e8;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: #1557b0;
  transform: translateY(-2px);
  text-decoration: none;
}

/* 卡片样式 */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* UI 风格变体 */
body.ui-style-0 { --primary: #1a73e8; --secondary: #764ba2; }
body.ui-style-1 { --primary: #e74c3c; --secondary: #c0392b; }
body.ui-style-2 { --primary: #9b59b6; --secondary: #8e44ad; }
body.ui-style-3 { --primary: #3498db; --secondary: #2980b9; }
body.ui-style-4 { --primary: #1abc9c; --secondary: #16a085; }
body.ui-style-5 { --primary: #f39c12; --secondary: #e67e22; }
body.ui-style-6 { --primary: #34495e; --secondary: #2c3e50; }
body.ui-style-7 { --primary: #e67e22; --secondary: #d35400; }
body.ui-style-8 { --primary: #95a5a6; --secondary: #7f8c8d; }
body.ui-style-9 { --primary: #e91e63; --secondary: #c2185b; }
body.ui-style-10 { --primary: #673ab7; --secondary: #512da8; }
body.ui-style-11 { --primary: #009688; --secondary: #00796b; }
body.ui-style-12 { --primary: #ff5722; --secondary: #e64a19; }
body.ui-style-13 { --primary: #607d8b; --secondary: #455a64; }
body.ui-style-14 { --primary: #00bcd4; --secondary: #0097a7; }
body.ui-style-15 { --primary: #4caf50; --secondary: #388e3c; }

/* 响应式 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .card {
    padding: 15px;
  }
}
