/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f8f5f0;
    color: #333;
    overflow-x: hidden;
}

/* Logo样式 */
.logo-container {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 1000;
    background: none !important; /* 完全无背景 */
    background-color: transparent !important; /* 强制透明背景 */
    background-image: none !important; /* 确保无背景图像 */
    box-shadow: none !important; /* 确保无阴影 */
    border: none !important; /* 确保无边框 */
    width: auto; /* 自适应宽度 */
    height: auto; /* 自适应高度 */
    padding: 0; /* 无内边距 */
    margin: 0; /* 无外边距 */
}

.logo-text {
    font-family: 'STKaiti', 'KaiTi', serif;
    font-size: 2.5rem;
    color: #5d4037;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    margin: 0;
    transition: all 0.3s ease;
    background: none; /* 文字无背景 */
    line-height: 1; /* 确保行高一致 */
}

/* 网站信息样式 */
.info-container {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
    background: none !important; /* 完全无背景 */
    background-color: transparent !important; /* 强制透明背景 */
    background-image: none !important; /* 确保无背景图像 */
    box-shadow: none !important; /* 确保无阴影 */
    border: none !important; /* 确保无边框 */
    width: auto; /* 自适应宽度 */
    height: auto; /* 自适应高度 */
    padding: 0; /* 无内边距 */
    margin: 0; /* 无外边距 */
    text-align: right; /* 文字右对齐 */
}

.website {
    font-size: 1rem;
    color: #8d6e63;
    text-decoration: none;
    margin-bottom: 3px;
    transition: color 0.3s ease;
    display: block; /* 确保链接独占一行 */
}

.website:hover {
    color: #5d4037;
    text-decoration: underline;
}

.domain-sale {
    font-size: 0.8rem; /* 字体小一点 */
    color: #a1887f;
}

.logo-text:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    color: #8d6e63;
}

/* 首页：时光剪影台 */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding-top: 0; /* 移除为logo留出的空间 */
}

.story-wall {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ede5d3 0%, #e6d8b8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.photo-item {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffd700, transparent);
    border-radius: 50%;
    opacity: 0.7;
}

.slogan-text {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #5d4037;
}

.main-slogan {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.changing-text {
    font-size: 1.5rem;
    display: inline-block;
    min-height: 2rem;
}

/* 三维服务魔方导航 */
.service-cube-container {
    position: absolute;
    bottom: 50px;
    right: 50px;
    perspective: 1000px;
    width: 200px;
    height: 200px;
}

.service-cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #d4c8a8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cube-face:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
}

.cube-face h3 {
    font-size: 1.5rem;
    color: #5d4037;
    margin-bottom: 10px;
}

.cube-face p {
    font-size: 1rem;
    color: #8d6e63;
    text-align: center;
}

.front  { transform: rotateY(0deg) translateZ(100px); }
.back   { transform: rotateY(180deg) translateZ(100px); }
.right  { transform: rotateY(90deg) translateZ(100px); }
.left   { transform: rotateY(-90deg) translateZ(100px); }
.top    { transform: rotateX(90deg) translateZ(100px); }
.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
    0%   { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* 故事集：记忆解构实验室 */
.story-lab {
    padding: 80px 50px;
    background-color: #fff;
}

.story-lab h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #5d4037;
    margin-bottom: 40px;
}

.lab-controls {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.time-axis, .emotion-filter {
    display: flex;
    align-items: center;
    margin: 10px 20px;
}

.time-axis label, .emotion-filter label {
    font-size: 1.1rem;
    margin-right: 15px;
    color: #8d6e63;
}

.time-axis input, .emotion-filter input {
    width: 200px;
    margin: 0 15px;
}

.time-axis span, .emotion-filter span {
    font-size: 1.1rem;
    min-width: 80px;
    color: #5d4037;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.story-sound {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .story-sound {
    opacity: 1;
}

/* 预约系统：故事共创引擎 */
.booking-engine {
    padding: 80px 50px;
    background: linear-gradient(135deg, #f5efe6 0%, #e8dfd0 100%);
}

.booking-engine h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #5d4037;
    margin-bottom: 40px;
}

.booking-steps {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: none;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step h3 {
    font-size: 1.8rem;
    color: #5d4037;
    margin-bottom: 20px;
    text-align: center;
}

.questionnaire {
    text-align: center;
}

.questionnaire p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #8d6e63;
}

.options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.option-btn {
    padding: 12px 24px;
    background: #f5f0e6;
    border: 1px solid #d4c8a8;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-btn:hover, .option-btn.selected {
    background: #5d4037;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
}

.mood-board {
    text-align: center;
}

.mood-board p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #8d6e63;
}

.upload-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.upload-slot {
    width: 120px;
    height: 120px;
    border: 2px dashed #d4c8a8;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #d4c8a8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-slot:hover {
    border-color: #5d4037;
    color: #5d4037;
    background: #f5f0e6;
}

.color-proposal {
    margin-top: 30px;
}

.color-proposal h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #5d4037;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.color-sample {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contract {
    text-align: center;
}

.signature-area {
    margin-bottom: 30px;
}

#signature-pad {
    border: 1px solid #d4c8a8;
    border-radius: 8px;
    background: #f9f7f3;
}

.contract-details {
    margin-top: 30px;
}

.contract-details p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #5d4037;
}

#light-code {
    font-family: monospace;
    font-weight: bold;
    color: #8d6e63;
}

button {
    padding: 12px 24px;
    background: #5d4037;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
}

button:hover {
    background: #4e342e;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
}

.step-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d4c8a8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #5d4037;
    transform: scale(1.2);
}

/* 技术赋能的情感化细节 */
.emotional-tech {
    padding: 80px 50px;
    background-color: #fff;
}

.weather-responsive {
    text-align: center;
    margin-bottom: 50px;
}

.weather-responsive p {
    font-size: 1.3rem;
    color: #8d6e63;
}

#weather-display {
    color: #5d4037;
    font-weight: bold;
}

.social-share {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.social-share h3 {
    font-size: 2rem;
    color: #5d4037;
    margin-bottom: 30px;
}

.value-statement {
    background: #f5f0e6;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.value-statement p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #5d4037;
}

#joy-value, #heart-value, #generation-value {
    font-weight: bold;
    color: #8d6e63;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-slogan {
        font-size: 2.2rem;
    }
    
    .logo-container {
        background: none !important; /* 完全无背景 */
        background-color: transparent !important; /* 强制透明背景 */
        background-image: none !important; /* 确保无背景图像 */
        box-shadow: none !important; /* 确保无阴影 */
        border: none !important; /* 确保无边框 */
        width: auto; /* 自适应宽度 */
        height: auto; /* 自适应高度 */
        padding: 0; /* 无内边距 */
        margin: 0; /* 无外边距 */
    }
    
    .logo-text {
        font-size: 2rem;
        left: 15px;
        top: 15px;
        background: none; /* 文字无背景 */
        line-height: 1; /* 确保行高一致 */
    }
    
    .info-container {
        top: 15px;
        right: 15px;
    }
    
    .website {
        font-size: 0.9rem;
    }
    
    .website:hover {
        color: #5d4037;
        text-decoration: underline;
    }
    
    .domain-sale {
        font-size: 0.7rem; /* 字体更小 */
    }
    
    .service-cube-container {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 50px auto;
    }
    
    .lab-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .time-axis, .emotion-filter {
        width: 100%;
        justify-content: center;
        margin: 15px 0;
    }
    
    .upload-area {
        flex-wrap: wrap;
    }
    
    .upload-slot {
        width: 100px;
        height: 100px;
    }
}