/**
 * Like Girl 情侣小站 - 主样式文件
 */

/* ==================== 全局样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF6B9D;
  --secondary-color: #FFB6C1;
  --success-color: #98FB98;
  --danger-color: #FF6B6B;
  --warning-color: #FFD700;
  --info-color: #87CEEB;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --border-color: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-size: 14px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Serif SC', sans-serif;
  color: var(--text-color);
  background-image: linear-gradient(to right, rgba(37, 82, 110, 0.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(37, 82, 110, 0.1) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  line-height: 1.6;
}

#app-container {
  padding-top: 4.5rem;
}

a {
  text-decoration: none;
  color: #777;
  transition: all 0.15s;
}

a:hover {
  color: #10bbff;
}

ul {
  list-style: none;
}

input,
textarea {
  outline: none;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(201, 201, 201);
  border-radius: 10px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 6px;
}

::-webkit-scrollbar-corner {
  background: unset;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
.header-wrap {
  width: 100%;
  height: 4.5rem;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.69);
  color: #707070;
  box-shadow: 0 2px 15px 0 rgba(115, 111, 111, 0.1);
}

.header-wrap .header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 6rem;
  gap: 2rem;
}

.header-wrap .header .logo {
  flex-shrink: 0;
}

.header-wrap .header .logo h1 {
  font-size: 1.5rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  margin: 0;
}

.header-wrap .header .logo .alogo {
  color: rgb(97, 97, 97);
  transition: all 0.2s linear;
}

.header-wrap .header .logo .alogo b {
  background: #2098ff;
  color: #fff;
  padding: 0.2rem 0.8rem;
  font-size: 1.16rem;
  border-radius: 0.6rem;
}

.header-wrap .header .word {
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
  font-size: 1.1rem;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.header-wrap .header .word .wenan {
  color: rgb(97, 97, 97);
  transition: all 0.2s linear;
}

/* ==================== 页脚 ==================== */
.footer-warp {
  margin-top: 4rem;
  background: #fff;
  position: relative;
}

.footer-warp::after {
  content: '';
  width: 100%;
  height: 50%;
  position: absolute;
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, transparent, #ffffff);
  z-index: 1;
}

.footer-warp .footer {
  padding: 2rem;
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
}

.footer-warp .footer p {
  line-height: 2.5rem;
  color: #564141;
  font-weight: 700;
}

.footer-warp .footer p img {
  width: 1rem;
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* ==================== 首页 ==================== */
.home-page {
  min-height: calc(100vh - 200px);
}

/* 头像背景区域 */
.bg-wrap {
  width: 100%;
}

.bg-img {
  width: 100%;
  box-sizing: border-box;
  background: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=1920') no-repeat center;
  background-size: cover;
  padding-top: 8rem;
  position: relative;
}

.bg-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVQImU3IMREAIAgAwJfNkQCEsH8cijjpMf6vnXlQaIiJFx+omEBfmqIEZLe2jzcAAAAASUVORK5CYII=);
}

.central {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.central-800 {
  max-width: 800px;
}

.bg-img .middle {
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(207, 207, 207, 0.63);
  padding: 4rem 2rem 3rem 2rem;
  border-radius: 4rem;
  user-select: none;
  position: relative;
  z-index: 2;
}

.bg-img .middle img {
  width: 10rem;
  height: 10rem;
  border-radius: 10rem;
  border: 0.2rem solid #fff;
}

.bg-img .middle .img-male span,
.bg-img .middle .img-female span {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #fff;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}

.bg-img .middle .love-icon {
  animation: heartbeat 2s linear infinite;
}

.bg-img .middle .love-icon svg {
  width: 7rem;
  height: 7rem;
}

@keyframes heartbeat {
  0% { transform: scale(0.8); }
  70% { transform: scale(1.3); }
  100% { transform: scale(0.8); }
}

/* 波浪效果 */
.bg-img .waves {
  position: relative;
  width: 100%;
  height: 5rem;
  margin-top: 5rem;
  margin-bottom: -7px;
}

.bg-img .parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.bg-img .parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.bg-img .parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.bg-img .parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.bg-img .parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/* 底部提示 */
.bottom-hint {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  opacity: 0.5;
  animation: floatHint 2s infinite;
}

.hint-text {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

.hint-arrow {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@keyframes floatHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* 时间显示 */
.time {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  padding: 3rem 0;
}

.time span {
  font-size: 1.8rem;
  line-height: 5rem;
  display: block;
  background-image: linear-gradient(270deg, #ff4500, #ffa500, #ffd700, #90ee90, #00ffff, #1e90ff, #9370db, #ff69b4, #ff4500);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-move 60s linear infinite;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}

.time b {
  font-size: 2.7rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  margin: 0 0.5rem;
}

@keyframes gradient-move {
  to { background-position: -2000rem; }
}

/* 卡片区域 */
.card-wrap {
  padding: 2rem 0 4rem 0;
}

.card-wrap .row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.card-wrap .row .card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 8px 12px rgba(228, 228, 228, 0.45);
  border: 1px solid rgba(208, 206, 206, 0.4);
  transition: all 0.2s linear;
}

.card-wrap .row .card:hover {
  box-shadow: 0 5px 20px rgba(218, 215, 215, 0.8);
  cursor: pointer;
  background: #f8f8f8;
  border-color: transparent;
}

.card-wrap .row .card img {
  width: 5rem;
  height: 5rem;
  margin-right: 2rem;
  border-radius: 5rem;
  transition: all 0.5s;
}

.card-wrap .row .card:hover img {
  transform: rotate(-45deg);
}

.card-wrap .row .card .text {
  flex-grow: 1;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
}

.card-wrap .row .card .text span {
  font-size: 1.8rem;
  line-height: 3rem;
  letter-spacing: 0.2rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-wrap .row .card .text span a {
  color: #777;
  text-decoration: none;
  transition: all 0.15s;
  display: inline;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-wrap .row .card .text span a:hover {
  color: #10bbff;
}

.card-wrap .row .card .text p {
  font-size: 1.1rem;
  letter-spacing: 0.3rem;
  color: #959595;
  margin-top: 0.25rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.card-wrap .row .flex-h {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* 响应式网格 */
.col-lg-4 {
  grid-column: span 4;
}

@media (max-width: 960px) {
  .col-lg-4 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .col-lg-4 {
    grid-column: span 12;
  }
  
  .bg-img .middle {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  
  .bg-img .middle .love-icon svg {
    width: 5rem;
    height: 5rem;
  }
  
  .time b {
    font-size: 2rem;
  }
  
  .card-wrap .row {
    gap: 1.5rem;
  }
}

/* ==================== 通用页面样式 ==================== */
.page-header {
  text-align: center;
  padding: 40px 20px;
}

.page-header h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stats {
  color: #666;
  font-size: 14px;
}

.stats strong {
  color: var(--primary-color);
  font-size: 18px;
}

/* ==================== 加载和空状态 ==================== */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 16px;
}

/* ==================== 分页 ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
}

.pagination button {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== 按钮 ==================== */
button, .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-primary, button[type="submit"] {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover, button[type="submit"]:hover {
  background: #ff5588;
}

.btn-secondary {
  background: #999;
  color: white;
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== 表单 ==================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .header-wrap .header {
    padding: 0 2rem;
    gap: 1rem;
  }
  
  .header-wrap .header .logo h1 {
    font-size: 1.2rem;
  }
  
  .header-wrap .header .word {
    font-size: 0.9rem;
  }
}

/* ==================== 留言板样式 ==================== */
.leaving-page {
  padding: 20px 0;
}

.leaving-list {
  margin-bottom: 40px;
}

.leaving-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.leaving-header {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.leaving-header .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.user-info {
  flex: 1;
}

.username {
  font-weight: bold;
  margin-bottom: 5px;
}

.meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 15px;
}

.leaving-content {
  padding-left: 65px;
  line-height: 1.8;
}

.leaving-form {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.leaving-form h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.inputbox {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.avatar-preview {
  flex-shrink: 0;
}

.avatar-preview img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.form-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-input {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover:not(:disabled) {
  background: #ff5588;
}

/* ==================== 文章列表样式 ==================== */
.article-list {
  padding: 20px 0;
}

.article-item {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.article-item:hover {
  transform: translateX(5px);
}

.article-link {
  text-decoration: none;
  color: inherit;
}

.article-title {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 20px;
}

.article-meta {
  font-size: 14px;
  color: #999;
  display: flex;
  gap: 20px;
}

/* ==================== 文章详情样式 ==================== */
.article-detail {
  background: white;
  border-radius: 10px;
  padding: 40px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.article-detail .article-title {
  font-size: 28px;
  margin-bottom: 15px;
}

.article-content {
  line-height: 2;
  margin: 30px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 20px 0;
}

.article-content video {
  max-width: 100%;
  border-radius: 5px;
  margin: 20px 0;
}

.article-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.back-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.back-btn:hover {
  background: #ff5588;
}

/* ==================== 相册样式 ==================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.photo-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  cursor: pointer;
}

.photo-item:hover {
  transform: scale(1.05);
}

.photo-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.photo-info {
  padding: 15px;
}

.photo-text {
  font-weight: bold;
  margin-bottom: 5px;
}

.photo-date {
  font-size: 12px;
  color: #999;
}

.load-more {
  text-align: center;
  padding: 30px 0;
}

.load-more button {
  padding: 12px 40px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.load-more button:hover:not(:disabled) {
  background: #ff5588;
}

/* 图片查看器 */
.image-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.viewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.viewer-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.viewer-info {
  text-align: center;
  color: white;
  margin-top: 20px;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 1;
}

/* ==================== 清单样式 ==================== */
.lovelist-container {
  padding: 20px 0;
}

.lovelist-item {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}

.list-content {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  user-select: none;
}

.status-icon {
  font-size: 24px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.status-icon.completed {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.event-name {
  flex: 1;
  font-size: 16px;
}

.event-name.completed {
  text-decoration: line-through;
  color: #999;
}

.has-image {
  font-size: 20px;
}

.list-image {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.list-image img {
  max-width: 100%;
  border-radius: 5px;
}

/* ==================== 礼物墙样式 ==================== */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.gift-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.gift-item:hover {
  transform: translateY(-5px);
}

.gift-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.gift-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-info {
  padding: 20px;
}

.gift-name {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.gift-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.gift-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}

.gift-from {
  color: #666;
}

.gift-price {
  color: var(--danger-color);
  font-weight: bold;
}

.gift-date {
  font-size: 12px;
  color: #999;
}

/* ==================== 关于页面样式 ==================== */
.about-page {
  min-height: calc(100vh - 200px);
}

.about-header {
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.about-header h1 {
  font-size: 48px;
}

.about-section {
  padding: 40px 0;
}

.about-intro {
  background: white;
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}

.about-intro p {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 15px;
}

.about-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.about-detail {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.about-detail h2 {
  color: var(--primary-color);
  margin: 30px 0 15px;
}

.about-detail p {
  line-height: 2;
  margin-bottom: 10px;
}

.page-list {
  list-style-position: inside;
  line-height: 2;
}

.about-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: #999;
}

/* ==================== 管理后台登录页面 ==================== */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 24px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.login-btn:hover:not(:disabled) {
  background: #ff5588;
}

.login-tips {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* ==================== 管理后台主页面 ==================== */
.admin-page {
  display: flex;
  min-height: 100vh;
  background: #f0f2f5;
}

.admin-sidebar {
  width: 250px;
  background: #001529;
  color: white;
  flex-shrink: 0;
}

.admin-logo {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-logo h2 {
  font-size: 18px;
  margin: 0;
}

.admin-user {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.admin-user p {
  margin-bottom: 10px;
  font-size: 14px;
}

.logout-btn {
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.2);
}

.admin-nav {
  padding: 20px 0;
}

.admin-nav a {
  display: block;
  padding: 12px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

/* ==================== 管理后台通用组件 ==================== */
.admin-content h2 {
  margin-bottom: 20px;
  color: var(--text-color);
}

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-refresh {
  background: var(--info-color);
  color: white;
}

.data-table {
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.data-table thead {
  background: #fafafa;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-weight: 600;
  color: #666;
}

.data-table tbody tr:hover {
  background: #fafafa;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.text-ellipsis {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  font-size: 48px;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #999;
}

.recent-visits {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
}

.recent-visits h3 {
  margin-bottom: 20px;
}

/* ==================== 配置表单 ==================== */
.config-form {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* ==================== 模态框 ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* ==================== 相册管理网格 ==================== */
.photo-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.photo-item-admin {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.photo-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  z-index: 10;
}

.photo-item-admin img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.photo-info-admin {
  padding: 15px;
}

.photo-info-admin .photo-text {
  font-weight: bold;
  margin-bottom: 5px;
}

.photo-info-admin .photo-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.photo-actions {
  display: flex;
  gap: 10px;
}

/* ==================== 响应式 - 管理后台 ==================== */
@media (max-width: 768px) {
  .admin-page {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
  }
  
  .admin-nav {
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }
  
  .admin-nav a {
    white-space: nowrap;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .toolbar {
    flex-wrap: wrap;
  }
  
  .data-table {
    font-size: 12px;
  }
  
  .data-table th,
  .data-table td {
    padding: 8px;
  }
}

/* ==================== 工具类 ==================== */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
