* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    overflow: hidden;
    height: 100vh;
    transition: background 0.8s ease;
    position: relative;
    background: linear-gradient(to right, #2193b0, #6dd5ed);
    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 rgba(0, 0, 0, 0.3);
    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 rgba(0, 0, 0, 0.3);
    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);
    }
}

/* 右侧渐变选择区域 */
.gradient-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;
}

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

.gradient-card {
    min-height: 120px;
    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;
    display: flex;
    flex-direction: column;
}

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

.gradient-display {
    flex: 1;
    min-height: 80px;
    width: 100%;
    transition: all 0.8s ease;
    position: relative;
}

.gradient-info {
    padding: 10px;
    text-align: center;
    background: white;
}

.gradient-name {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.gradient-colors {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
}

.color-chip {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    display: inline-block;
}

/* 底部控制按钮 */
.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;
}

/* 当前渐变提示 */
.current-gradient {
    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;
    max-width: 80%;
    word-break: break-all;
}

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

/* 玻璃效果云朵 */
.glass-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: -1;
    animation: float 20s infinite linear;
}

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