/* ========== 统一变量（全站主题可在这里快速修改） ========== */
:root {
  --brand-bg: #ffcc00;
  --brand-fg: #000;
  --brand-title-size: 1.5rem;
  --brand-title-weight: 700;
  --brand-height: 56px;

  --text: #333;
  --muted: #666;
  --muted-2: #888;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 10px;
  --primary: #007bff;
  --star-size: 16px;
}

/* ========== 基础重置 ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* 容器 */
.container {
  padding: 1rem;
  max-width: 700px;
  margin: auto;
}

/* ========== 统一页头（全站共用） ========== */
/* 新推荐类名：.site-header / .site-header__title / .site-header__back */
/* 同时兼容旧类：.header / .title / .back-btn */
.site-header,
.header {
  position: relative;
  background: var(--brand-bg);
  color: var(--brand-fg);
  height: var(--brand-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-family: sans-serif;
}
.site-header__title,
.title {
  font-size: var(--brand-title-size);
  font-weight: var(--brand-title-weight);
}
.site-header__back,
.back-btn {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--brand-fg);
  line-height: 1;
  user-select: none;
  text-decoration: none;
}
.site-header--no-back .site-header__back {
  display: none;
}

/* ========== 首页卡片与链接 ========== */
.section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin-top: 0.5rem;
  text-align: center;
  text-decoration: none;
}
.file-list a {
  display: block;
  color: var(--primary);
  margin: 0.5rem 0;
  text-decoration: none;
}
.file-list a:hover {
  text-decoration: underline;
}

.icon-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.icon-text img {
  width: 50px;
  height: 50px;
}
.description {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* 搜索框样式 */
.search-bar {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}
.search-bar:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.search-bar input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.4rem;
  background: transparent;
  color: var(--text);
}
.search-bar input::placeholder {
  color: var(--muted);
}
.search-bar button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  font-weight: bold;
  cursor: pointer;
}
.search-bar button:hover {
  background: #0056b3;
}


/* ========== 列表 / 条目 / 评分 ========== */
.list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.item {
  display: flex;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem;
  gap: 0.8rem;
}
.item img {
  width: 80px;
  height: 93px;
  object-fit: cover;
  border-radius: 6px;
  background: #eaeaea;
}
.item-info {
  flex: 1;
}
.item-info h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1rem;
}
.item-info p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: #555;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.stars {
  display: flex;
  gap: 0.2rem;
}
.star {
  width: var(--star-size);
  height: var(--star-size);
  background-size: cover;
}
.filled {
  background-image: url('/static/images/star-filled.png');
}
.half {
  background-image: url('/static/images/star-half.png');
}
.empty {
  background-image: url('/static/images/star-empty.png');
}
.score {
  font-size: 0.9rem;
  color: #333;
}
.no-result {
  text-align: center;
  margin-top: 1rem;
  color: var(--muted-2);
}

/* ========== Top3（与列表风格一致） ========== */
.plot-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.plot-item {
  display: flex;
  gap: 0.8rem;
  background: var(--card-bg);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.plot-item img {
  width: 80px;
  height: 93px;
  object-fit: cover;
  border-radius: 6px;
  background: #eaeaea;
}
.plot-info {
  flex: 1;
}
.plot-info h3 {
  margin: 0.2rem 0;
  font-size: 1rem;
}
.plot-info p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: #555;
}

/* ========== 详情卡片 ========== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #eaeaea;
}
.card h2 {
  margin: 0.2rem 0 0.6rem;
}
.card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* ========== 新增地皮表单样式 ========== */
.form-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
}
.form-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin: 0.6rem 0;
}
.form-row label {
  min-width: 88px;
  color: #444;
  font-weight: 700; /* 加粗标签文字 */
}
.form-row input[type="text"],
.form-row input[type="password"],
.form-row select {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
  background: #fff;
  font-size: 1rem; /* 统一输入框的字体大小 */
}

/* 聚焦时显示边框阴影 */
.form-row input:focus,
.form-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.btn {
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  color: #fff;
  background: var(--primary);
  font-size: 1.1rem;
  font-weight: 700; /* 加粗字体 */
}
.btn:active {
  transform: translateY(1px);
}

.msg {
  margin-top: 0.6rem;
  color: #d93025;
}

/* 小屏优化 */
@media (max-width: 480px) {
  .form-row input,
  .form-row select {
    font-size: 1rem;
  }
  .btn {
    padding: 0.45rem 1rem;
    font-size: 1rem;
  }
}

select:focus {
  outline: none;                /* 取消默认的蓝色边框 */
  border-color: var(--primary); /* 保持自定义的边框颜色 */
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12); /* 统一显示焦点阴影 */
}

/* 让地皮大小选择框保持黑色字体 */
#size {
  color: #000 !important;   /* 强制改为黑色 */
  font-weight: 550 !important; /* 强制加粗字体 */
}