/* 全站样式 - 亚洲免费视频在线观看·高清影视资源大全 */

:root {
  --primary-color: #2196F3;
  --secondary-color: #4CAF50;
  --accent-color: #FF9800;
  --text-color: #333;
  --text-secondary: #666;
  --border-color: #e0e0e0;
  --bg-light: #f5f5f5;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: var(--bg-light);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
}

/* 响应式布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  padding: 16px 0;
}

nav .logo a {
  color: inherit;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  flex: 1 1 0;
  min-width: 0;
}

nav ul li a {
  display: block;
  padding: 20px 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--primary-color);
  background: rgba(33, 150, 243, 0.05);
}

/* 移动端导航 */
@media (max-width: 768px) {
  nav .container {
    flex-direction: column;
    padding: 10px;
  }

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

  nav ul {
    width: 100%;
    justify-content: space-between;
  }

  nav ul li a {
    padding: 14px 8px;
    font-size: 13px;
  }
}

/* 卡片样式 */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.btn:hover {
  background: #1976D2;
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #1565C0;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

/* UI风格变体 */
body.ui-style-0 { --primary-color: #2196F3; }
body.ui-style-1 { --primary-color: #FF5722; }
body.ui-style-2 { --primary-color: #4CAF50; }
body.ui-style-3 { --primary-color: #9C27B0; }
body.ui-style-4 { --primary-color: #FF9800; }
body.ui-style-5 { --primary-color: #00BCD4; }
body.ui-style-6 { --primary-color: #E91E63; }
body.ui-style-7 { --primary-color: #3F51B5; }
body.ui-style-8 { --primary-color: #009688; }
body.ui-style-9 { --primary-color: #FFC107; }
body.ui-style-10 { --primary-color: #8BC34A; }
body.ui-style-11 { --primary-color: #FF5252; }
body.ui-style-12 { --primary-color: #448AFF; }
body.ui-style-13 { --primary-color: #607D8B; }
body.ui-style-14 { --primary-color: #00ACC1; }
body.ui-style-15 { --primary-color: #7B1FA2; }

/* 列表样式 */
ul, ol {
  margin-left: 20px;
  line-height: 1.8;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
}

table td {
  padding: 8px 0;
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
}

/* 页脚样式 */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  margin: 5px 0;
}

/* 响应式网格 */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 15px;
  }

  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .container {
    padding: 0 15px;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 返回顶部按钮 */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 99;
}

#backToTop:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
