* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
body {
    overflow: hidden;
    height: 100vh;
    transition: background-color 0.8s ease;
    position: relative;
    background-color: #ff461f; /* 默认朱砂色 */
    display: flex;
}
a {
  text-decoration: none;
}
/* 左侧主内容区 */
.main-content {
    flex: 1;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 标题 */
.header {
    text-align: center;
    padding-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgb(0 0 0);
    letter-spacing: 10px;
    margin-bottom: 10px;
}

/* 诗句区域 */
.poem-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 120px; /* 为底部控制按钮留出空间 */
}

.poem {
    position: absolute;
    left: 0;
    bottom: 80px;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 4px rgb(0 0 0);
    max-width: 80%;
    line-height: 1.6;
    animation: floatUp 12s linear forwards;
    opacity: 0;
    transform: translateY(100px);
    writing-mode: vertical-rl;
    letter-spacing: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(-100px);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px);
    }
}

/* 右侧颜色选择区域 */
.color-panel {
    width: 450px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

.color-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.color-card {
    min-height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
}

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

.color-display {
    flex: 1;
    min-height: 60px;
    width: 100%;
    transition: background-color 0.8s ease;
    position: relative;
}

.color-info {
    padding: 8px;
    text-align: center;
    background: white;
}

.color-name {
    font-weight: bold;
    color: #333;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-hex {
    font-size: 0.75rem;
    color: #666;
    margin-top: 3px;
}

/* 底部控制按钮 */
.controls {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 100;
}

.control-btn {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.control-btn i {
    font-size: 1rem;
}

.custom-color {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.custom-color input {
    width: 80px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
}

.custom-color-btn {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s ease;
}

.custom-color-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 当前颜色提示 */
.current-color {
    position: absolute;
    bottom: 100px;
    left: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    z-index: 100;
}

.current-color.show {
    opacity: 1;
    transform: translateY(0);
}

/* 玻璃效果云朵 */
.glass-cloud {
    position: absolute;
    background: rgb(255 255 255 / 70%);
    z-index: -1;
    animation: float 20s infinite linear;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;
    -webkit-box-shadow: rgba(142, 142, 142, 0.19) 0px 6px 15px 0px;
    border-radius: 12px;
    -webkit-border-radius: 30px;
}

@keyframes float {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(50px) translateY(-30px); }
    100% { transform: translateX(0) translateY(0); }
}
