/* 瓶花道 - 作品展示页面样式 */

/* 基础样式设置 */
:root {
    --primary-color: #8D6E63;
    --secondary-color: #A1887F;
    --background-color: #F5F5F5;
    --light-color: #EFEBE9;
    --dark-color: #4E342E;
    --text-color: #3E2723;
    --text-light: #8D6E63;
    --text-lighter: #BCAAA4;
    --border-color: #D7CCC8;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-primary: 'Noto Serif SC', 'SimSun', serif;
    --font-secondary: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}

/* 头部导航样式 */
.site-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.logo h1 {
    font-family:宋体;;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.05em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.03em;
    margin-top: 2px; 
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.en-text {
    font-size: 0.7rem;
    color: var(--text-lighter);
    margin-top: 2px;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* 主要内容布局 */
main.container {
    flex: 1;
    padding: 50px 0px;
}

/* 修改的布局部分 */
.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    height: auto;
}

/* 左侧作品展示区 */
.artwork-display {
    height: auto;
    display: flex;
    flex-direction: column;
}

/* 修改的部分 - 增加左侧容器高度并调整花瓶和花卉尺寸 */

/* 增加作品展示区容器大小调整 */
.artwork-image {
    position: relative;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: 4px;
    overflow: hidden;
    height: 800px; /* 从600px增加到800px */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 优化作品展示页面的花瓶和花卉样式 - 修正版 */
.vase-container {
    width: 100%;
    height: 800px; /* 从600px增加到800px */
    position: relative;
    display: flex;
    justify-content: center;
    background-color: white;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}

#display-vase {
    position: absolute;
    bottom: 50px; /* 从40px增加到50px，给底部留更多空间 */
    left: 50%;
    transform: translateX(-50%);
    height: 500px; /* 从400px增加到500px */
    max-width: 250px; /* 从200px增加到250px */
    object-fit: contain;
    z-index: 1;
}

/* 修改右侧评语区域的总高度，使其与左侧花瓶容器匹配 */
.review-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* 增加右侧总高度，以匹配左侧高度 */
    height: 800px;
    max-height: 800px;
}

/* 增加作品评语容器的相对比例 */
.review-container {
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    width: 100%;
    /* 增加比例，让评语容器获得更多空间 */
    flex: 5;
    overflow: auto;
    display: flex;
    flex-direction: column;
    /* 添加最小高度确保内容有足够空间 */
    min-height: 550px;
}

.flower-item {
    position: absolute;
    transform-origin: bottom center;
    transition: transform 0.3s ease;
    width: 100px !important; /* 从80px增加 */
    height: 150px !important; /* 从120px增加 */
    /* 重要：删除可能导致定位错误的默认值 */
    top: auto;
    left: auto;
    margin: 0;
}
/* 花卉位置调整功能的CSS样式 */

/* 调整模式下的花卉样式 */
body.adjustment-mode .flower-item {
    cursor: move;
}

/* 选中的花卉样式 */
.flower-item.selected {
    outline: 2px dashed var(--primary-color);
    outline-offset: 2px;
}

/* 旋转控制手柄 */
.rotate-handle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.rotate-handle:before {
    content: "↻";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

/* 缩放控制手柄 */
.scale-handle {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.scale-handle:before {
    content: "⇕";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

/* 调整控制面板 */
.adjustment-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 调整模式按钮 */
.adjust-mode-btn,
.save-positions-btn,
.reset-positions-btn {
    padding: 8px 15px;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.save-positions-btn {
    background-color: #4CAF50;
}

.reset-positions-btn {
    background-color: #F44336;
}

.adjust-mode-btn:hover,
.save-positions-btn:hover,
.reset-positions-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.mode-indicator {
    font-weight: normal;
    opacity: 0.8;
    margin-left: 5px;
}

/* 帮助提示 */
.adjustment-help {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    display: none;
}

body.adjustment-mode .adjustment-help {
    display: block;
}

/* 确保花卉容器允许溢出显示 */
.vase-container {
    overflow: visible !important;
}

/* 媒体查询 - 适配移动设备 */
@media (max-width: 768px) {
    .adjustment-controls {
        top: 10px;
        left: 10px;
        padding: 10px;
    }
    
    .adjust-mode-btn, 
    .save-positions-btn, 
    .reset-positions-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* 确保花卉容器相对于花瓶容器定位 */
#display-flower-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* 确保花卉在花瓶上方 */
    pointer-events: none; /* 避免花卉阻挡点击 */
}

/* 确保花瓶容器正确定位 */
.vase-container {
    position: relative;
    overflow: visible !important; /* 允许花卉显示在容器外部 */
}

/* 设置花瓶图片样式，确保花瓶处于正确位置 */
#display-vase {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    height: 500px;
    max-width: 250px;
    object-fit: contain;
    z-index: 1;
}

/* 确保场景信息区域显示正确 */
#scene-info {
    margin-bottom: 20px;
    background-color: rgba(141, 110, 99, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 15px 20px; /* 增加内边距 */
    border-radius: 0 4px 4px 0;
    max-height: 150px; /* 限制高度，防止过长 */
    overflow: auto;
}



/* 确保正确的布局平衡 */
.showcase-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    height: auto;
}

/* 媒体查询优化 */
@media (max-width: 1200px) {
    .artwork-image, .vase-container {
        height: 700px;
    }
    
    #display-vase {
        height: 450px;
        max-width: 225px;
    }
    
    .review-section {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .showcase-layout {
        grid-template-columns: 1fr;
    }
    
    .artwork-image, .vase-container {
        height: 600px;
    }
    
    #display-vase {
        height: 400px;
        max-width: 200px;
    }
    
    .review-section {
        height: auto;
        max-height: none;
    }
}

/* 增加作品评语容器的相对比例 */
.review-container {
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    width: 100%;
    /* 增加比例，从flex: 3改为flex: 4，让评语容器获得更多空间 */
    flex: 4;
    overflow: auto;
    display: flex;
    flex-direction: column;
    /* 添加最小高度确保内容有足够空间 */
    min-height: 450px;
}



/* CSS修改 - 作品名称样式优化 */

/* 更新作品标题样式，使其更适合显示作品名称 */
.review-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;  /* 增大字体大小，更加突出 */
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
}

/* 添加作品名称样式 */
.artwork-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-left: 5px;
}

/* 优化场景标签样式，使其与作品名称搭配更协调 */
.scene-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-left: 12px;
    vertical-align: middle;
    font-weight: normal;
    letter-spacing: 0.05em;
}

/* 优化场景名称容器样式 */
.scene-name-container {
    margin-bottom: 20px;
    padding: 5px 0;
}

.scene-name {
    font-weight: 500;
    color: var(--text-light);
    font-size: 1rem;
    display: inline-block;
}

/* 作品描述文本样式进一步优化，突出重点 */
.review-text {
    line-height: 1.8;
    font-family: var(--font-primary);
    color: var(--text-color);
    margin-bottom: 25px;
    font-size: 1.05rem;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.review-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-item {
    display: flex;
    align-items: center;
}

.rating-label {
    color: var(--text-light);
    margin-right: 5px;
}

.rating-value {
    font-weight: 500;
    color: var(--dark-color);
}

.interaction-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.like-btn,
.favorite-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
    background-color: var(--light-color);
}

.like-btn:hover,
.favorite-btn:hover {
    transform: scale(1.1);
}

.like-btn:hover {
    color: #E57373;
    background-color: #FFEBEE;
}

.favorite-btn:hover {
    color: #FFD54F;
    background-color: #FFF8E1;
}

.heart-icon,
.star-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.liked .heart-icon {
    fill: #E57373;
    color: #E57373;
}

.favorited .star-icon {
    fill: #FFD54F;
    color: #FFD54F;
}

/* 评论输入区域 */
.comment-input {
    margin-top: 10px;
}

.comment-input h4 {
    font-family: var(--font-primary);
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1rem;
}

#comment-text {
    width: 100%;
    max-height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    font-family: var(--font-secondary);
    resize: vertical;
    margin-bottom: 10px;
    transition: var(--transition);
}

#comment-text:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--dark-color);
}





.module-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}





.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 10px;
    color: white;
}

.item-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 页脚样式 */
.site-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-info h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.footer-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--dark-color);
}

.copyright {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Workbench compositions keep the same square coordinate space on this page. */
.saved-arrangement {
    position: absolute;
    width: min(75%, 520px);
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.saved-arrangement #display-flower-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: auto;
}
.saved-arrangement .flower-item {
    box-sizing: border-box;
    border: 1px solid transparent;
    width: 28% !important;
    height: auto !important;
    aspect-ratio: 1;
    transform-origin: 50% 75%;
    transition: none;
}
.saved-arrangement .flower-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.saved-arrangement #display-vase {
    position: absolute;
    bottom: auto;
    width: 43%;
    max-width: none;
    height: 48%;
    object-fit: contain;
    object-position: bottom;
    transform-origin: bottom center;
    z-index: 30;
}
@media (max-width: 560px) {
    .saved-arrangement { width: 94%; }
}

/* 动画效果 */
@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@keyframes starRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.heart-animation {
    animation: heartBeat 1s ease;
}

.star-animation {
    animation: starRotate 0.8s ease;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.notification-message {
    flex: 1;
}

/* 场景标签样式 */
.scene-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: normal;
    letter-spacing: 0.05em;
}

/* 调整按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.action-btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--dark-color);
}

.secondary-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background-color: var(--border-color);
}

/* 场景信息突出显示 */
.scene-info {
    background-color: rgba(141, 110, 99, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

.scene-info-title {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.scene-info-desc {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 作品描述优化 */
#artwork-description {
    white-space: pre-line;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .showcase-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        height: auto;
    }
    
    .artwork-display {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .review-section {
        height: auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .logo {
        margin: 0 auto;
        text-align: center;
    }
    
    
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .review-ratings {
        flex-direction: column;
        gap: 10px;
    }
    
    .interaction-buttons {
        justify-content: center;
    }
    
    
}
