/* 空间光谱页面特定样式 */

/* 空间光谱英雄区域特定样式 */
.spaces-hero {
    background: url('../img/bg/bg (38).JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.spaces-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(232, 197, 161, 0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero::before {
    background-color: rgba(232, 197, 161, 0.2);
    animation: lightExpand 5s ease-in-out infinite;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.6rem;
}

/* 空间导览区域 */
.space-navigation {
    padding: 100px 0;
    background-color: var(--background-color);
}

.space-section {
    margin-bottom: 12rem;
    position: relative;
    animation: fadeIn 1s ease;
    padding: 3rem 0;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}



.space-section:nth-child(even) .space-content {
    flex-direction: row-reverse;
}

.space-header {
    margin-bottom: 4rem;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(232, 197, 161, 0.1) 0%, rgba(157, 83, 7, 0.1) 100%);
    border-radius: 12px;
    margin: 0 1rem 4rem;
    transition: var(--transition);
}

.space-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.space-number {
    font-size: 6rem;
    color: var(--secondary-color);
    opacity: 0.1;
    font-weight: 900;
    line-height: 1;
    margin-bottom: -2rem;
}

.space-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.space-subtitle {
    font-size: 1.4rem;
    color: var(--light-text);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

.space-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.space-text {
    animation: slideInLeft 1s ease 0.3s both;
    padding: 0 1rem;
}

.space-section:nth-child(even) .space-text {
    animation: slideInRight 1s ease 0.3s both;
}

.space-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: justify;
    transition: var(--transition);
}

.space-text p:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.space-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.space-features li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--light-text);
}

.space-features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.space-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    animation: slideInRight 1s ease 0.6s both;
    width: 100%;
   
    border: 3px solid var(--secondary-color);
    transition: var(--transition);
}

.space-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.placeholder-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

.placeholder-image img,
.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space-section:nth-child(even) .space-image {
    animation: slideInLeft 1s ease 0.6s both;
}

.space-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

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

.space-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 197, 161, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.space-image:hover::after {
    opacity: 1;
}

/* 空间规格信息 */
.space-specs {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

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

.spec-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

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

/* 空间氛围描述 */
.atmosphere-description {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    font-family: var(--font-primary);
    font-size: 1.3rem;
    line-height: 1.8;
    font-style: italic;
    text-align: center;
}

/* 空间亮点区域 */
.space-highlights {
    padding: 4rem 0 2rem;
    background-color: var(--background-color);
    margin: 3rem 0;
    border-radius: 12px;
    transition: var(--transition);
}

.space-highlights:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* 全景导览样式 */
.panorama-intro {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.panorama-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.panorama-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--light-blue);
    font-weight: 300;
}

.panorama-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.panorama-spaces {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.panorama-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.panorama-container.active {
    display: flex;
}

.panorama-viewer {
    width: 100%;
    height: calc(100% - 100px);
}

.panorama-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.panorama-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.panorama-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    display: none;
}

.panorama-info.active {
    display: block;
}

.panorama-info h3 {
    margin-bottom: 10px;
    color: var(--light-blue);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .space-navigation {
        padding: 80px 0;
    }
    
    .space-section {
        margin-bottom: 10rem;
    }
    
    .space-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .space-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .space-navigation {
        padding: 60px 0;
    }
    
    .space-title {
        font-size: 2.5rem;
    }
    
    .space-subtitle {
        font-size: 1.2rem;
    }
    
    .space-image img {
        height: 350px;
    }
    
    .specs-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.2rem;
    }
    
    .atmosphere-description {
        padding: 2rem;
        font-size: 1.1rem;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    /* 全景导览响应式 */
    .panorama-title {
        font-size: 2rem;
    }
    
    .panorama-subtitle {
        font-size: 1rem;
    }
    
    .panorama-controls {
        gap: 15px;
    }
    
    .panorama-spaces {
        gap: 10px;
    }
    
    .panorama-close {
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .panorama-info {
        bottom: 15px;
        left: 15px;
        right: 15px;
        max-width: none;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .space-navigation {
        padding: 40px 0;
    }
    
    .space-section {
        margin-bottom: 8rem;
    }
    
    .space-title {
        font-size: 2rem;
    }
    
    .space-subtitle {
        font-size: 1.1rem;
    }
    
    .space-description {
        font-size: 1.1rem;
    }
    
    .space-image img {
        height: 300px;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .atmosphere-description {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

.highlight-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    animation: fadeIn 1s ease;
}

.highlight-item:nth-child(2) {
    animation-delay: 0.1s;
}

.highlight-item:nth-child(3) {
    animation-delay: 0.2s;
}

.highlight-item:nth-child(4) {
    animation-delay: 0.3s;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
}

.highlight-item h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.highlight-item:hover h4 {
    color: var(--secondary-color);
    transform: translateX(10px);
}

.highlight-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
    transition: var(--transition);
}

.highlight-item:hover p {
    color: var(--text-color);
}

/* 特色服务区域样式 */
.space-features {
    padding: 4rem 0 2rem;
    background-color: var(--background-color);
    margin: 3rem 0;
    border-radius: 12px;
    transition: var(--transition);
}

.space-features:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
    animation: fadeIn 1s ease;
}

.feature-item:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    color: var(--primary-color);
    transform: scale(1.2);
}

.feature-item h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.feature-item:hover h4 {
    color: var(--secondary-color);
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--light-text);
    transition: var(--transition);
}

.feature-item:hover p {
    color: var(--text-color);
}

/* 书籍试读样式 */
.book-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-color);
}

.book-preview h5 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.book-item {
    margin-bottom: 0.75rem;
}

.book-item h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #333;
}

.book-author {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: #666;
}

.preview-btn {
    background-color: #d4af37;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.preview-btn:hover {
    background-color: #c29a2b;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--secondary-color);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

#preview-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

#preview-content h4 {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#preview-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 咖啡书籍搭配推荐样式 */
.coffee-book-pairing {
    margin-top: 60px;
    padding: 40px;
    background-color: rgba(245, 243, 240, 0.8);
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
}

.coffee-book-pairing h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.coffee-book-pairing p {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 16px;
}

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

.coffee-book-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.coffee-book-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
}

.coffee-book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.coffee-book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.coffee-info,
.book-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.coffee-icon,
.book-icon {
    font-size: 36px;
    color: #8b4513;
}

.coffee-details h4,
.book-details h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-weight: 600;
}

.coffee-details p,
.book-details p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0;
    text-align: left;
}

.pairing-note h5 {
    font-size: 16px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.pairing-note p {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
}

.coffee-book-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.coffee-book-price {
    text-align: left;
}

.buy-btn {
    padding: 10px 20px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.buy-btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.buy-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .coffee-book-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .coffee-book-image {
        aspect-ratio: 4/3;
    }
    
    .coffee-book-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .buy-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .coffee-book-price {
        text-align: center;
    }
}

.price-tag {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

.price-note {
    font-size: 13px;
    color: var(--light-text);
}

/* 创想舱品牌展示样式 */
.space-showcase {
    margin-top: 60px;
    padding: 40px;
    background-color: rgba(245, 243, 240, 0.8);
    border-radius: 12px;
    border: 1px solid var(--secondary-color);
}

.space-showcase-title {
    font-family: var(--font-primary);
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

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

.showcase-item {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.showcase-image {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    background-image: linear-gradient(45deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%, #e0e0e0 100%);
    background-size: 20px 20px;
}

.showcase-item h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.brand-story-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand-story-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.showcase-item p {
    font-size: 14px;
    color: var(--light-text);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.social-links {
    display: flex;
  
    gap: 15px;
}

.social-icon {
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
}

/* 视频回放区域样式 */
.space-videos {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.space-videos-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.video-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    transition: all 0.3s ease;
}

.video-item:hover .play-button {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.video-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.video-duration {
    font-size: 14px;
    color: #999;
}

/* 视频播放弹窗样式 */
.video-modal-content {
    max-width: 900px;
}

#video-player-container {
    margin-bottom: 20px;
}

#video-player {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

#video-details {
    padding: 20px 0;
}

#video-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

#video-description {
    font-size: 16px;
    color: #666;
}