/* ==================== 基础样式 ==================== */
:root {
    --primary-color: #f8a5c2;
    --primary-light: #fbcfe8;
    --primary-dark: #e6859a;
    --secondary-color: #a8e6cf;
    --accent-color: #ffd93d;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #fdf6f0;
    --bg-white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==================== 通用区块样式 ==================== */
.section {
    min-height: 100vh;
    padding: 100px 20px 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-header h1 .icon {
    font-size: 2.2rem;
    margin-right: 10px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==================== 主页 - 照片轮播 ==================== */
.home-section {
    padding-top: 90px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
}

.slideshow-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.slideshow {
    position: relative;
    height: 500px;
    background: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 60%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-light) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-date {
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 15px;
}

.slide-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.slide-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.slideshow-controls {
    position: absolute;
    bottom: 30px;
    left: 60%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.prev-btn, .next-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--bg-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1rem;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.slide-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ==================== 欢迎诗句 - 简单逐句显示 ==================== */
.welcome-poetry {
    max-width: 900px;
    margin: 0 auto 30px;
}

.poetry-container {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 50%, #fff0f8 100%);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(248, 165, 194, 0.25), inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    min-height: 100px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

.poetry-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 24px 24px 0 0;
}

/* 简单的诗句容器 */
.poetry-bubbles {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 诗句 - 简单逐句显示（无转场） */
.poetry-bubble {
    position: absolute;
    font-family: 'ZCOOL QingKe HuangYou', cursive;
    font-size: 2rem;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    letter-spacing: 2px;
    /* 颜色由 JS 动态设置 */
}

/* 装饰元素 */
.poetry-bubble .decor {
    display: inline-block;
    font-size: 1.4rem;
    margin: 0 8px;
    animation: gentleBounce 1.5s ease-in-out infinite;
}

.poetry-bubble .decor-left {
    animation-delay: 0s;
}

.poetry-bubble .decor-right {
    animation-delay: 0.3s;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

/* 飘动的小图标 */
.poetry-container .floating-icon {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.2;
    animation: floatAround 6s ease-in-out infinite;
}

.poetry-container .floating-icon:nth-child(1) {
    top: 15px;
    left: 25px;
    animation-delay: 0s;
}

.poetry-container .floating-icon:nth-child(2) {
    top: 20px;
    right: 35px;
    animation-delay: 1.5s;
}

.poetry-container .floating-icon:nth-child(3) {
    bottom: 15px;
    left: 45px;
    animation-delay: 3s;
}

.poetry-container .floating-icon:nth-child(4) {
    bottom: 20px;
    right: 30px;
    animation-delay: 4.5s;
}

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(0, -10px) rotate(5deg); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .poetry-container {
        padding: 30px 20px;
        min-height: 80px;
        border-radius: 20px;
    }
    
    .poetry-bubbles {
        height: 50px;
    }
    
    .poetry-bubble {
        font-size: 1.3rem;
    }
    
    .poetry-bubble .decor {
        font-size: 1.1rem;
        margin: 0 5px;
    }
    
    .poetry-container .floating-icon {
        font-size: 1.2rem;
    }
}

/* ==================== 和和一日一语 - 水平滚动 ==================== */
.today-share {
    max-width: 800px;
    margin: 0 auto;
}

.share-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.share-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.share-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.share-icon {
    font-size: 1.5rem;
}

.share-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
}

/* 水平滚动容器 */
.share-scroll-container-horizontal {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: 20px;
    padding: 10px 5px;
}

.share-scroll-container-horizontal::-webkit-scrollbar {
    display: none;
}

.share-card {
    flex: 0 0 calc(100% - 10px);
    scroll-snap-align: start;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.share-card:hover {
    transform: translateY(-3px);
}

.share-card-date {
    font-size: 0.85rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.share-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-family: 'Noto Serif SC', serif;
}

.share-card-content {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.share-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.share-card-tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 滚动指示器 */
.share-scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.share-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-indicator.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .share-container {
        padding: 20px;
    }
    
    .share-header h2 {
        font-size: 1.2rem;
    }
    
    .share-card {
        flex: 0 0 calc(85% - 10px);
    }
}

/* ==================== 照片墙 ==================== */
.photowall-section {
    background: var(--bg-white);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn, .category-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-light);
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    transition: var(--transition);
}

.filter-btn:hover, .category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.filter-btn.active, .category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 30px 20px 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gallery-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ==================== 商店 ==================== */
.shop-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.shop-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.product-btn:hover {
    background: var(--primary-dark);
}

/* ==================== 手帐 ==================== */
.diary-section {
    background: var(--bg-white);
}

.diary-container {
    max-width: 900px;
    margin: 0 auto;
}

.diary-timeline {
    position: relative;
    padding-left: 40px;
}

.diary-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.diary-item {
    position: relative;
    margin-bottom: 40px;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px;
}

.diary-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 35px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.diary-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.diary-date .day {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Noto Serif SC', serif;
}

.diary-date .month-year {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--text-light);
}

.diary-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.diary-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.diary-content p {
    margin-bottom: 10px;
}

.diary-mood {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--primary-light);
}

.mood-tag {
    font-size: 0.85rem;
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1a2e 100%);
    color: white;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================== 灯箱 ==================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
}

/* ==================== 商品详情页面 ==================== */
.product-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    padding: 20px;
}

.product-detail-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.product-detail-content {
    position: relative;
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.product-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.product-detail-close:hover {
    background: var(--primary-color);
    color: white;
}

.product-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* 左侧图片区域 */
.product-detail-gallery {
    background: var(--bg-light);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
}

.product-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

/* 右侧信息区域 */
.product-detail-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.product-detail-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    width: fit-content;
}

.product-detail-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.product-detail-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--primary-light);
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.detail-tag {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-buy {
    flex: 1;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-contact {
    padding: 16px 30px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--primary-light);
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-contact:hover {
    background: var(--primary-light);
}

/* 评论区域 */
.product-reviews-section {
    margin-top: auto;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
}

.reviews-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.reviews-rating {
    color: var(--accent-color);
    font-size: 1rem;
}

.reviews-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 25px;
}

.no-reviews {
    text-align: center;
    color: var(--text-light);
    padding: 30px;
    font-style: italic;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--bg-light);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.review-meta {
    flex: 1;
}

.review-author {
    font-weight: 500;
    color: var(--text-dark);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-rating {
    color: var(--accent-color);
}

.review-content {
    color: var(--text-light);
    line-height: 1.6;
    padding-left: 52px;
}

/* 评论表单 */
.review-form {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
}

.review-form h4 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating .star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: var(--accent-color);
}

#ratingText {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.review-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.btn-submit-review {
    margin-top: 15px;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: #2d6a4f;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit-review:hover {
    background: #8dd9b7;
}

/* 商品卡片添加点击提示 */
.product-card {
    cursor: pointer;
}

.product-card::after {
    content: '点击查看详情';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::after {
    opacity: 1;
}

/* ==================== 手帐管理工具 ==================== */
.diary-toolbar {
    max-width: 900px;
    margin: 0 auto 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-add-diary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-add-diary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-export, .btn-import {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    background: white;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-export:hover, .btn-import:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.diary-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.diary-empty p:first-child {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.diary-content-wrapper {
    flex: 1;
}

.diary-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diary-item:hover .diary-actions {
    opacity: 1;
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-edit {
    background: var(--secondary-color);
    color: #2d6a4f;
}

.btn-edit:hover {
    background: #8dd9b7;
}

.btn-delete {
    background: #ffebee;
    color: #c62828;
}

.btn-delete:hover {
    background: #ffcdd2;
}

/* ==================== 手帐编辑器模态框 ==================== */
.diary-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999 !important;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.diary-modal.active {
    display: flex !important;
}

/* 确保模态框在最上层 */
.diary-modal,
.diary-modal * {
    box-sizing: border-box;
}

.diary-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.diary-modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.diary-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--primary-light);
}

.diary-modal-header h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.diary-modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.8;
}

.date-input-wrapper {
    display: flex;
    gap: 12px;
}

.date-input-wrapper input[type="date"] {
    flex: 1;
}

.btn-today {
    padding: 12px 24px;
    background: var(--secondary-color);
    color: #2d6a4f;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-today:hover {
    background: #8dd9b7;
}

/* 心情选择器 */
.mood-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mood-option {
    cursor: pointer;
}

.mood-option input {
    display: none;
}

.mood-option .mood-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.mood-option input:checked + .mood-tag {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.mood-option:hover .mood-tag {
    background: #f0f0f0;
}

/* 表单按钮 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--primary-light);
}

.btn-secondary {
    padding: 14px 32px;
    background: var(--bg-light);
    color: var(--text-light);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: #e9ecef;
    color: var(--text-dark);
}

.btn-primary {
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 通知消息 */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    padding: 16px 28px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 4000;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--secondary-color);
}

.notification-info {
    border-left: 4px solid var(--accent-color);
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

/* ==================== 状态面板 ==================== */
.status-panel {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.status-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.status-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 15px;
    box-shadow: var(--shadow);
}

.status-content p {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.status-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ==================== 照片管理工具 ==================== */
.photo-manager {
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.manager-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.manager-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.manager-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.manager-panel h3 {
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-family: 'Noto Serif SC', serif;
}

.manager-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--primary-light);
}

.manager-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.manager-section code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-dark);
}

.manager-section p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.manager-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: 15px;
}

.manager-btn:hover {
    background: var(--primary-dark);
}

.photo-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.photo-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: var(--transition);
}

.photo-list-item.featured {
    border-color: var(--primary-color);
}

.photo-list-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.photo-info strong {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.photo-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.photo-info .badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    width: fit-content;
}

.no-photo {
    text-align: center;
    color: var(--text-light);
    padding: 30px;
}

.preview-area {
    margin-top: 20px;
}

.preview-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.preview-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.preview-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.preview-info input,
.preview-info select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.config-code {
    background: #2d3436;
    color: #dfe6e9;
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 20px;
}

.config-code h5 {
    color: var(--primary-light);
    margin-bottom: 10px;
}

.config-code pre {
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.config-code code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .slideshow {
        height: 400px;
    }
    
    .slide-content {
        padding: 40px 30px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slideshow-controls {
        left: 50%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    .section {
        padding: 90px 15px 40px;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .slideshow {
        height: auto;
        min-height: 500px;
    }
    
    .slide {
        flex-direction: column;
    }
    
    .slide-image {
        width: 100%;
        height: 250px;
    }
    
    .slide-content {
        width: 100%;
        height: auto;
        padding: 30px 25px;
    }
    
    .slideshow-controls {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        padding: 20px 0;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .share-container {
        padding: 25px;
    }
    
    .diary-timeline {
        padding-left: 30px;
    }
    
    .diary-item::before {
        left: -26px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .slide-title {
        font-size: 1.2rem;
    }
    
    .slide-desc {
        font-size: 0.9rem;
    }
    
    .filter-btn, .category-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .manager-panel {
        padding: 25px;
    }
    
    .photo-list {
        grid-template-columns: 1fr;
    }
    
    .preview-item {
        flex-direction: column;
    }
    
    .preview-item img {
        width: 100%;
        height: 150px;
    }
    
    .preview-info {
        grid-template-columns: 1fr;
    }
    
    /* 手帐编辑器移动端适配 */
    .diary-modal-content {
        max-height: 95vh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    
    .diary-modal-header {
        padding: 20px;
    }
    
    .diary-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .diary-modal-body {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
    }
    
    .date-input-wrapper {
        flex-direction: column;
    }
    
    .btn-today {
        width: 100%;
    }
    
    .mood-selector {
        gap: 8px;
    }
    
    .mood-option .mood-tag {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
    
    .diary-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-add-diary {
        width: 100%;
        justify-content: center;
    }
    
    .diary-actions {
        opacity: 1;
    }
    
    /* 商品详情页移动端适配 */
    .product-detail-modal {
        padding: 0;
    }
    
    .product-detail-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .product-detail-body {
        grid-template-columns: 1fr;
    }
    
    .product-detail-gallery {
        padding: 20px;
        min-height: 300px;
    }
    
    .product-main-image {
        min-height: 250px;
    }
    
    .product-detail-info {
        padding: 25px;
    }
    
    .product-detail-title {
        font-size: 1.4rem;
    }
    
    .product-detail-price {
        font-size: 1.6rem;
    }
    
    .product-detail-actions {
        flex-direction: column;
    }
    
    .btn-contact {
        width: 100%;
        justify-content: center;
    }
    
    .review-content {
        padding-left: 0;
        margin-top: 10px;
    }
}


/* ==================== 智能图片加载样式 ==================== */

/* 图片占位符样式 */
.img-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    opacity: 0.6;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 图片加载状态 */
.img-loading {
    filter: blur(5px);
    transform: scale(1.02);
}

.img-blur {
    filter: blur(20px);
    transform: scale(1.05);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.img-loaded {
    filter: blur(0);
    transform: scale(1);
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.3s ease;
    opacity: 1;
}

.img-error {
    opacity: 0.7;
}

/* 响应式图片基础样式 */
.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, filter 0.4s ease, transform 0.4s ease;
}

/* 画廊图片优化 */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    border-radius: var(--radius-sm);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 商品卡片图片 */
.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 轮播图片 */
.slide-image {
    transition: opacity 0.5s ease, filter 0.4s ease;
}

/* 灯箱加载状态 */
.lightbox.loading .lightbox-img {
    opacity: 0.5;
}

.lightbox.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 网络状态指示器（可选） */
.network-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.network-status.visible {
    opacity: 1;
}

.network-status.slow {
    background: rgba(255,193,7,0.9);
    color: #333;
}

/* 图片骨架屏 */
.img-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 禁用动画（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    .img-placeholder,
    .img-loading,
    .img-blur,
    .img-loaded,
    .responsive-img,
    .gallery-item img,
    .product-card .product-image img,
    .slide-image {
        animation: none;
        transition: opacity 0.1s ease;
    }
    
    .lightbox.loading::after {
        animation: none;
    }
}

/* 打印样式 */
@media print {
    .img-placeholder,
    .img-skeleton {
        background: #ddd !important;
        animation: none !important;
    }
}
