* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}
html {
  height: 100%;
}
html,
body {
  padding: 0;
  margin: 0;
}
body {
  background: #fff;
  color: #444;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: lighter;
  margin-bottom: 1em;
}
a {
  color: #444;
  text-decoration: none;
}
.clearfix:after {
  content: " ";
  display: block;
  clear: both;
}
.noselect {
  cursor: default;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#container {
  padding: 2em;
}
header {
  font-size: 1.8em;
  margin-bottom: 1.1em;
}
h1 {
  display: inline-block;
  font-weight: bold;
}
h1 a {
  color: #444;
}
footer {
  color: #666;
  font-size: 0.9em;
  font-style: italic;
  margin-top: 3em;
}
footer a {
  color: #17baef;
}
nav.breadcrumbs {
  border-bottom: 1px solid #ddd;
  font-size: 1.2em;
  margin-bottom: 2em;
  padding: 0em 0em 0.8em 0.1em;
}
#albums,
#media {
  margin: 0em;
}
#albums a {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  margin-right: 2em;
  margin-bottom: 3em;
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 220px;
  background-size: cover;
  border-radius: 8px;
}
#albums .info {
  position: absolute;
  padding: 1em;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.9em;
  line-height: 1.2em;
  margin: 0;
  width: 100%;
  font-weight: bold;
  bottom: 0;
}
#albums h3 {
  font-size: 1.3em;
  margin-bottom: 0.2em;
}
#media li {
  float: left;
  margin-right: 0.4em;
  margin-bottom: 0.2em;
  position: relative;
  cursor: zoom-in;
}
#media a {
  display: inline-block;
}
#media img {
  border-radius: 8px;
  display: block;
}
#media li .video-overlay {
  left: 50%;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  position: absolute;
  top: 50%;
  width: 48px;
}
@media only screen and (max-width: 360px) {
  #albums a {
    width: 100%;
    height: 190px;
  }
}
nav.pagination {
  color: #666;
  display: inline-block;
  font-size: 1em;
  margin-top: 2em;
  padding: 0em 0em 0.5em 0em;
}
nav.pagination .page {
  margin-right: 0.2em;
}
nav.pagination .page.current {
  font-weight: bold;
}
nav.pagination a {
  color: #666;
}
#zip {
  color: #666;
  margin-bottom: 2em;
}
#zip a {
  color: #3399ff;
}
/* ===================== 全局基础 ===================== */
* {
    box-sizing: border-box !important;
}
body {
    background: linear-gradient(135deg, #4a1520 0%, #2c0a12 45%, #3b0f1a 100%) !important;
    background-attachment: fixed !important;
    color: #f5eef0 !important;
    font-family: "Microsoft YaHei", system-ui, sans-serif !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-behavior: smooth !important;
    overflow-x: hidden !important;
    cursor: default;
}

/* 细腻胶片噪点底纹，替代星空，低透明度不抢画面 */
body::after {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.045 !important;
    mix-blend-mode: soft-light;
}

/* 页面入场淡入动画 */
#container, .container {
    background: transparent !important;
    position: relative !important;
    z-index: 20 !important;
    max-width: 1520px !important;
    margin: 0 auto !important;
    padding: 0 clamp(16px, 3vw, 48px) !important;
    animation: pageFadeIn 0.7s ease-out both;
}
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== 主标题 华薇圣影｜样片参考 ===================== */
h1 {
    background: linear-gradient(135deg, #fdf0cf 0%, #d6a246 45%, #fff8e5 60%, #b57a2a 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700 !important;
    font-size: clamp(28px, 4vw, 42px) !important;
    letter-spacing: 1.5px !important;
    text-align: center !important;
    margin-top: 6vh !important;
    margin-bottom: 3vh !important;
    filter: drop-shadow(0 0 12px rgba(214, 162, 70, 0.35)) !important;
}

/* ===================== Home / 面包屑导航 + 渐变分割线 ===================== */
h1 + div a, .breadcrumb a, nav a, .breadcrumbs a {
    display: inline-block !important;
    background: rgba(255, 215, 140, 0.08) !important;
    color: #ffe7a8 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 7px 22px !important;
    border-radius: 999px !important;
    border: none !important;
    transition: all 0.3s ease !important;
}
h1 + div a:hover, .breadcrumb a:hover, nav a:hover, .breadcrumbs a:hover {
    background: rgba(255, 215, 140, 0.18) !important;
    transform: translateY(-1px) !important;
}
.breadcrumb, nav.breadcrumbs {
    position: relative;
    padding-bottom: 24px;
    margin-bottom: 32px;
}
.breadcrumb::after, nav.breadcrumbs::after {
    content: "";
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,140,0.35), transparent);
}

/* ===================== 相册网格布局 ===================== */
.album-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: clamp(1.4rem, 2vw, 2.2rem) !important;
    padding: 0 0 80px 0 !important;
}

/* ===================== 相册卡片主体 ===================== */
.album-card {
    background: transparent !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 220, 150, 0.18) !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.45) !important;
    transition: all 0.35s ease !important;
    position: relative !important;
    cursor: pointer;
}
.album-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 16px rgba(214, 162, 70, 0.16) !important;
    border-color: rgba(255, 220, 150, 0.35) !important;
}

/* 卡片图片容器 + 视差缩放 */
.album-card__image {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    position: relative !important;
}
.album-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}
.album-card:hover .album-card__image img {
    transform: scale(1.04) translateY(-6px) !important;
}

/* 图片底部柔和渐变遮罩（放文字） */
.album-card__image::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 72px !important;
    background: linear-gradient(to top, rgba(8, 2, 4, 0.92) 0%, rgba(8, 2, 4, 0.45) 45%, transparent 100%) !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

/* Thumbsup原生 caption：弱化第二、三行（相片数量+日期） */
.caption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 0 16px 12px 16px !important;
    z-index: 10 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8) !important;
    mask-image: linear-gradient(to bottom, #000 0 32px, rgba(0,0,0,0.65) 33px, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0 32px, rgba(0,0,0,0.65) 33px, transparent 100%);
}
.album-card:hover .caption {
    color: #ffe7a8 !important;
    transition: color 0.3s ease !important;
}

/* ===================== LightGallery 灯箱大图全套美化 ===================== */
.lg-backdrop {
    background: rgba(26, 7, 14, 0.96) !important;
}
.lg-actions .lg-prev,
.lg-actions .lg-next,
.lg-close {
    color: #ffe7a8 !important;
    font-size: 28px;
    transition: color 0.25s ease;
}
.lg-actions .lg-prev:hover,
.lg-actions .lg-next:hover,
.lg-close:hover {
    color: #fff !important;
}
.lg-thumb-item {
    border: 2px solid transparent !important;
    opacity: 0.65;
}
.lg-thumb-item.active {
    border-color: #ffe7a8 !important;
    opacity: 1;
}
.lg-thumb-item:hover {
    opacity: 0.9;
}
.lg-sub-html {
    color: #fff;
}
.lg-sub-html h4 {
    color: #ffe7a8;
    font-weight: 600;
}
.lg-image {
    user-select: none !important;
    -webkit-user-drag: none !important;
}

/* ===================== 自定义滚动条美化 ===================== */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #200810;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 140, 0.32);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 140, 0.55);
}

/* ===================== 移动端适配优化 ===================== */
@media (max-width:768px){
    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 1rem !important;
    }
    /* 移动端取消上浮、视差，改用按压反馈 */
    .album-card:hover {
        transform: none !important;
    }
    .album-card:hover .album-card__image img {
        transform: scale(1.03) !important;
    }
    .album-card:active {
        transform: scale(0.97) !important;
    }
    h1 {
        letter-spacing: 0.5px !important;
    }
}

