/* ========================================
   结婚纪念日网站 - 主样式表
   ======================================== */

/* 基础变量 */
:root {
    --primary-color: #e91e63;
    --primary-light: #f8bbd9;
    --primary-dark: #c2185b;
    --secondary-color: #9c27b0;
    --accent-color: #ff4081;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #fafafa;
    --bg-dark: #f5f5f5;
    --border-color: #eee;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-main: 'Noto Serif SC', serif;
    --font-display: 'Ma Shan Zheng', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏
   ======================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.3rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========================================
   英雄区域
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 20px;
}

.hero-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-names h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.ampersand {
    font-size: 3rem;
    color: var(--primary-light);
    font-family: var(--font-display);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   通用区块样式
   ======================================== */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    font-family: var(--font-display);
}

.section-title i {
    margin-right: 10px;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-family: var(--font-display);
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ========================================
   倒计时区域
   ======================================== */
.countdown-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.countdown-label {
    color: var(--text-light);
    margin-top: 10px;
}

/* ========================================
   爱情故事区域
   ======================================== */
.story-section {
    padding: 80px 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.story-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-light);
}

.story-decoration {
    margin-top: 30px;
    font-size: 2rem;
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite;
}

/* ========================================
   精选照片区域
   ======================================== */
.featured-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.featured-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.featured-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ========================================
   视频预览区域
   ======================================== */
.video-preview-section {
    padding: 80px 0;
}

.video-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-preview-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.video-thumbnail:hover .play-btn {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-preview-card h3 {
    padding: 15px 20px 5px;
    font-size: 1.1rem;
}

.video-preview-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   视频页面
   ======================================== */
.video-section {
    padding: 60px 0;
}

.main-video-player {
    max-width: 900px;
    margin: 0 auto 60px;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-info {
    padding: 20px 0;
    text-align: center;
}

.video-info h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-family: var(--font-display);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.video-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.video-card-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: var(--transition);
}

.video-play-overlay i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.video-card:hover .video-play-overlay {
    background: rgba(0,0,0,0.5);
}

.video-card:hover .video-play-overlay i {
    opacity: 1;
    transform: scale(1.1);
}

.video-card-info {
    padding: 15px;
}

.video-card-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.video-card-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 视频弹窗 */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.video-modal-close:hover {
    background: var(--primary-color);
}

.video-modal-player video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.video-modal-info {
    padding: 20px;
}

.video-modal-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* ========================================
   照片画廊页面
   ======================================== */
.gallery-section {
    padding: 60px 0;
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-light);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.gallery-masonry {
    columns: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    position: relative;
}

.gallery-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    color: white;
}

.gallery-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.gallery-album-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 0.75rem;
    margin-top: 8px;
}

.gallery-zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.gallery-zoom:hover {
    background: var(--primary-color);
    color: white;
}

/* 灯箱 */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 15px;
    font-size: 1.1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   时间线页面
   ======================================== */
.timeline-section {
    padding: 60px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary-color), var(--primary-light));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 0 5px var(--primary-light);
    z-index: 1;
}

.timeline-item.left .timeline-marker {
    right: -20px;
}

.timeline-item.right .timeline-marker {
    left: -20px;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 15px;
    background: var(--primary-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.timeline-text {
    color: var(--text-light);
    line-height: 1.8;
}

.timeline-image {
    margin-top: 15px;
    border-radius: var(--radius);
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    border-radius: var(--radius);
}

.timeline-end {
    text-align: center;
    padding: 60px 0;
}

.timeline-end-heart {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    animation: heartbeat 1.5s infinite;
}

.timeline-end p {
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-family: var(--font-display);
}

.timeline-end-date {
    color: var(--text-light);
    font-style: italic;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   页脚
   ======================================== */
.main-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-hearts {
    margin-bottom: 20px;
}

.footer-hearts i {
    margin: 0 5px;
    animation: heartbeat 1.5s infinite;
}

.footer-hearts i:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-hearts i:nth-child(3) {
    animation-delay: 0.4s;
}

.footer-sub {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ========================================
   飘落花瓣效果
   ======================================== */
.petals-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary-light);
    border-radius: 50% 0 50% 50%;
    opacity: 0.6;
    animation: fall linear infinite;
}

@keyframes fall {
    from {
        transform: translateY(-100px) rotate(0deg);
    }
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ========================================
   登录页面
   ======================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: heartbeat 1.5s infinite;
}

.login-header h1 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-light);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.login-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.login-footer a {
    color: var(--primary-color);
}

/* ========================================
   警告框
   ======================================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ========================================
   后台管理样式
   ======================================== */
.admin-page {
    background: #f0f2f5;
    min-height: 100vh;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.sidebar-footer a:hover {
    color: white;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    transition: var(--transition);
}

.admin-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-color);
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-welcome {
    color: var(--text-light);
}

.admin-content {
    padding: 30px;
}

/* 仪表盘 */
.dashboard .page-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-pink .stat-icon { background: linear-gradient(135deg, #e91e63, #f06292); }
.stat-purple .stat-icon { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.stat-blue .stat-icon { background: linear-gradient(135deg, #2196f3, #64b5f6); }
.stat-red .stat-icon { background: linear-gradient(135deg, #f44336, #ef5350); }

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.dashboard-section {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.dashboard-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.quick-btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.quick-btn i {
    font-size: 2rem;
    color: var(--primary-color);
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.recent-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.recent-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.recent-info {
    padding: 10px;
}

.recent-info h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.recent-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 管理页面 */
.manage-page .page-header-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.manage-page .page-header-admin h1 {
    font-size: 1.5rem;
}

.add-form {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.add-form h3 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 管理表格 */
.manage-table {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.manage-table th,
.manage-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.manage-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.manage-table tr:hover {
    background: var(--bg-light);
}

.table-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 15px;
    font-size: 0.8rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* 视频管理卡片 */
.video-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.video-manage-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-manage-preview {
    aspect-ratio: 16/9;
    background: #000;
}

.video-manage-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-manage-info {
    padding: 15px;
}

.video-manage-info h4 {
    margin-bottom: 5px;
}

.video-manage-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.video-manage-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.video-manage-actions {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

/* 设置页面 */
.settings-form {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.settings-section h3 i {
    margin-right: 10px;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content form {
    padding: 20px;
}

/* 单选按钮组 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* 响应式 */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .gallery-masonry {
        columns: 2;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        text-align: left !important;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item .timeline-marker {
        left: 10px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero-names {
        flex-direction: column;
        gap: 10px;
    }
    
    .ampersand {
        font-size: 2rem;
    }
    
    .gallery-masonry {
        columns: 1;
    }
    
    .featured-grid,
    .video-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

/* 侧边栏收起状态 */
.admin-layout.sidebar-collapsed .admin-sidebar {
    transform: translateX(-100%);
}

.admin-layout.sidebar-collapsed .admin-main {
    margin-left: 0;
}

/* 文本辅助 */
.text-muted {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

/* ========================================
   表白墙样式
   ======================================== */
.confession-section {
    padding: 60px 0;
}

.confession-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.confession-form .form-group {
    margin-bottom: 20px;
}

.confession-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.confession-form input,
.confession-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.confession-form input:focus,
.confession-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.confession-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.confession-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.confession-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.confession-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.confession-avatar {
    font-size: 2rem;
    color: var(--primary-color);
}

.confession-meta {
    flex: 1;
}

.confession-author {
    font-weight: 600;
    color: var(--text-color);
}

.confession-target {
    color: var(--primary-color);
    margin-left: 5px;
}

.confession-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.confession-content {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.confession-footer {
    display: flex;
    justify-content: flex-end;
}

.confession-like {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: var(--bg-light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.confession-like:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.confession-like i {
    color: var(--primary-color);
}

/* ========================================
   抽奖样式
   ======================================== */
.lottery-section {
    padding: 60px 0;
}

.lottery-disabled {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.lottery-disabled i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.lottery-wheel-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.lottery-wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 30px;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--primary-color);
    z-index: 10;
}

.lottery-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-text {
    position: absolute;
    top: 20%;
    left: 20%;
    transform: rotate(22.5deg);
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.lottery-btn {
    padding: 15px 50px;
    font-size: 1.2rem;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.prize-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.prize-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.prize-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

.prize-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.prize-card p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.prize-quantity {
    font-size: 0.85rem;
    color: var(--text-light);
}

.records-list {
    max-height: 400px;
    overflow-y: auto;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.record-user {
    font-weight: 600;
    color: var(--primary-color);
}

.record-prize {
    flex: 1;
}

.record-time {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 抽奖弹窗 */
.lottery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lottery-modal.active {
    display: flex;
}

.lottery-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
}

.modal-confetti {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary-color);
}

.modal-confetti i {
    margin: 0 5px;
    animation: confetti 1s ease infinite;
}

@keyframes confetti {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.lottery-modal-content h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin: 20px 0;
}

.modal-prize {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    color: white;
}

.modal-prize i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.modal-prize h3 {
    font-size: 1.5rem;
}

.lottery-modal-content form {
    text-align: left;
    margin-bottom: 20px;
}

.lottery-modal-content .form-group {
    margin-bottom: 15px;
}

.lottery-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.lottery-modal-content input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
}

/* ========================================
   大视频样式
   ======================================== */
.bigvideo-section {
    padding: 60px 0;
}

.bigvideo-main {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.bigvideo-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.bigvideo-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bigvideo-info {
    text-align: center;
}

.bigvideo-info h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.bigvideo-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.bigvideo-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.bigvideo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.bigvideo-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.bigvideo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bigvideo-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.bigvideo-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bigvideo-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: var(--transition);
}

.bigvideo-play-overlay i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.bigvideo-card:hover .bigvideo-play-overlay {
    background: rgba(0,0,0,0.5);
}

.bigvideo-card-info {
    padding: 15px;
}

.bigvideo-card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.bigvideo-card-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.bigvideo-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.bigvideo-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.bigvideo-stats .stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* ========================================
   后台管理增强样式
   ======================================== */
.admin-stats {
    display: flex;
    gap: 10px;
}

.stat-badge {
    padding: 5px 15px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
}

.stat-pending {
    background: #fff3cd;
    color: #856404;
}

.stat-approved {
    background: #d4edda;
    color: #155724;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.text-pink {
    color: var(--primary-color);
}

.confession-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}
