/* jxhs-style.css - 今.禧婚纱礼服页面样式 */

/* 变量定义 */
:root {
    --primary-gold: #d4af37;
    --secondary-gold: #f8e9d9;
    --ivory: #fffff0;
    --light-ivory: #fffef7;
    --dark-text: #4a3c2d;
    --light-text: #7f6a58;
    --overlay: rgba(0, 0, 0, 0.6);
    --translucent-white: rgba(255, 255, 255, 0.85);
}

/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    background-color: #fcf8f3;
    color: var(--dark-text);
    line-height: 1.6;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(212, 175, 55, 0.03)" width="100" height="100"/></svg>'),
        radial-gradient(circle at 20% 30%, rgba(248, 233, 217, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.2) 0%, transparent 40%);
}

/* 主容器 */
#wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 页面标题区域 */
.page-header {
    text-align: center;
    padding: 60px 30px;
    margin: 20px 0 40px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(248, 233, 217, 0.5));
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><path fill="rgba(212, 175, 55, 0.1)" d="M60,10 A50,50 0 1,1 60,110 A50,50 0 1,1 60,10 Z" /></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path fill="rgba(212, 175, 55, 0.05)" d="M40,5 A35,35 0 1,1 40,75 A35,35 0 1,1 40,5 Z" /></svg>');
    background-position: 10% 20%, 90% 80%;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-text);
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-gold), var(--secondary-gold));
    border-radius: 3px;
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 20px auto 0;
    font-style: italic;
    font-weight: 300;
}

/* Logo样式 */
.logo {
    text-align: center;
    padding: 40px 0 30px;
    position: relative;
}

.logo img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo:after {
    content: '✽';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-gold);
    font-size: 1.5rem;
}

/* 视频部分 */
.video-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
}

.video-container:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

.video-item {
    max-width: 700px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: var(--translucent-white);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.video-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    pointer-events: none;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

.video-caption {
    padding: 25px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.1), rgba(248, 233, 217, 0.2));
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.video-caption:before {
    content: '❀';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--light-ivory);
    color: var(--primary-gold);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.video-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

.video-caption p {
    color: var(--light-text);
    font-size: 1.2rem;
    margin: 8px 0;
}

.video-caption .highlight {
    color: var(--primary-gold);
    font-weight: 500;
}

/* 图片展示区 */
.gallery-section {
    margin-bottom: 70px;
    position: relative;
}

.gallery-section:before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 20px;
    font-weight: 600;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-gold), var(--secondary-gold));
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    cursor: pointer;
    aspect-ratio: 2/3;
    background: var(--translucent-white);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--overlay), transparent);
    padding: 25px 20px 20px;
    color: white;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
}

.gallery-desc {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 大图预览 */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox-img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.nav.prev {
    left: 30px;
}

.nav.next {
    right: 30px;
}

/* 返回按钮 */
.btn-container {
    text-align: center;
    margin: 50px 0 30px;
    position: relative;
}

.btn-container:before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-back:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.6s ease;
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}

.btn-back:hover:before {
    left: 100%;
}

.btn-back i {
    margin-right: 12px;
}

/* 装饰元素 */
.floating-element {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    color: var(--primary-gold);
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 15%;
    left: 8%;
    font-size: 4rem;
    animation-delay: 0s;
}

.element-2 {
    bottom: 20%;
    right: 8%;
    font-size: 4rem;
    animation-delay: 2s;
}

.element-3 {
    top: 40%;
    left: 5%;
    font-size: 3rem;
    animation-delay: 4s;
}

.element-4 {
    bottom: 30%;
    right: 5%;
    font-size: 3rem;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.2rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .video-item {
        max-width: 100%;
    }
    
    .nav {
        width: 45px;
        height: 45px;
        font-size: 30px;
    }
    
    .close {
        font-size: 35px;
        width: 40px;
        height: 40px;
    }
    
    .floating-element {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}