* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    overflow: hidden;
    background: white;
}

.hidden {
    display: none !important;
}

/* 封面页样式 */
.cover-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    z-index: 10;
}

.heart {
    font-size: 80px;
    margin-bottom: 30px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.greeting {
    font-size: 28px;
    color: #8B5CF6;
    margin-bottom: 50px;
    font-weight: 500;
}

.start-btn {
    padding: 15px 40px;
    font-size: 18px;
    color: white;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.start-btn:active {
    transform: translateY(0);
}

/* 二维码容器 */
.qrcode-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

/* 二维码输入组 */
.qrcode-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.qrcode-input {
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #E9D5FF;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    color: #8B5CF6;
}

.qrcode-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.qrcode-input::placeholder {
    color: #C4B5FD;
}

.generate-qr-btn {
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.generate-qr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.generate-qr-btn:active {
    transform: translateY(0);
}

.qrcode {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    min-width: 200px;
}

.qrcode canvas,
.qrcode img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.qrcode-hint {
    font-size: 14px;
    color: #8B5CF6;
    opacity: 0.7;
}

.deploy-hint {
    font-size: 12px;
    color: #8B5CF6;
    opacity: 0.6;
    text-align: center;
    margin-top: 5px;
    max-width: 300px;
}

/* 手机端二维码优化 */
@media (max-width: 768px) {
    .qrcode-container {
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .qrcode-input-group {
        max-width: 100%;
    }
    
    .qrcode {
        padding: 12px;
        min-height: 180px;
        min-width: 180px;
    }
    
    .qrcode canvas,
    .qrcode img {
        width: 180px !important;
        height: 180px !important;
    }
    
    .qrcode-hint {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .qrcode-container {
        margin-top: 25px;
        padding: 0 10px;
    }
    
    .qrcode-input {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .generate-qr-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .qrcode {
        padding: 10px;
        min-height: 150px;
        min-width: 150px;
    }
    
    .qrcode canvas,
    .qrcode img {
        width: 150px !important;
        height: 150px !important;
    }
    
    .qrcode-hint {
        font-size: 11px;
    }
}

/* 文字展示页样式 */
.text-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    overflow: hidden;
    z-index: 5;
}

.text-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: hidden;
}

.text-item {
    position: absolute;
    font-size: 18px;
    text-align: center;
    padding: 12px 16px;
    opacity: 0;
    transition: opacity 0.8s ease;
    max-width: 45%;
    line-height: 1.5;
    word-wrap: break-word;
    pointer-events: none;
}

/* 横向文字 */
.text-item:not(.vertical) {
    writing-mode: horizontal-tb;
}

/* 纵向文字 */
.text-item.vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    max-width: none;
    max-height: 40%;
    padding: 16px 12px;
    letter-spacing: 0.1em;
}

.text-item.visible {
    opacity: 1;
}

.text-item.fading {
    opacity: 0;
    transition: opacity 2s ease;
}

/* 不同的紫色渐变 */
.gradient-1 {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-2 {
    background: linear-gradient(135deg, #7C3AED, #C4B5FD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-3 {
    background: linear-gradient(135deg, #6D28D9, #DDD6FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-4 {
    background: linear-gradient(135deg, #5B21B6, #EDE9FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-5 {
    background: linear-gradient(135deg, #4C1D95, #F3E8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-6 {
    background: linear-gradient(135deg, #9333EA, #C084FC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-7 {
    background: linear-gradient(135deg, #7E22CE, #D8B4FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-8 {
    background: linear-gradient(135deg, #6B21A8, #E9D5FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-9 {
    background: linear-gradient(135deg, #581C87, #F5E6FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-10 {
    background: linear-gradient(135deg, #4A0E4E, #FAE8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-11 {
    background: linear-gradient(135deg, #86198F, #FCE7F3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-12 {
    background: linear-gradient(135deg, #9F1239, #FDF2F8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-13 {
    background: linear-gradient(135deg, #BE185D, #FBCFE8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-14 {
    background: linear-gradient(135deg, #DB2777, #F9A8D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-15 {
    background: linear-gradient(135deg, #EC4899, #FBCFE8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 最后的大字 */
.final-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 20;
    opacity: 0;
    transition: opacity 1s ease;
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-message.visible {
    opacity: 1;
}

/* 手机屏幕优化 */
@media (max-width: 768px) {
    .heart {
        font-size: 60px;
    }
    
    .greeting {
        font-size: 22px;
    }
    
    .start-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .text-container {
        padding: 15px;
    }
    
    .text-item {
        font-size: 16px;
        padding: 10px 14px;
        max-width: 50%;
    }
    
    .text-item.vertical {
        font-size: 15px;
        padding: 14px 10px;
        max-height: 45%;
    }
    
    .final-message {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .heart {
        font-size: 50px;
    }
    
    .greeting {
        font-size: 18px;
    }
    
    .start-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .text-container {
        padding: 10px;
    }
    
    .text-item {
        font-size: 14px;
        padding: 8px 12px;
        max-width: 55%;
    }
    
    .text-item.vertical {
        font-size: 13px;
        padding: 12px 8px;
        max-height: 50%;
    }
    
    .final-message {
        font-size: 26px;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .text-item {
        font-size: 15px;
        max-width: 40%;
    }
    
    .text-item.vertical {
        max-height: 60%;
    }
}

