/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* 米黄色背景，符合产品规范 */
    background-color: #f5f2e9;
    /* 背景渐变，中心区域略带金黄 */
    background-image: radial-gradient(circle at center, #f5efd0 0%, #f5f2e9 70%);
    color: #6c5648;
    font-family: 'Cormorant Garamond', serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 20px 0;
}

/* Logo容器样式 */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2rem;
    color: #a99e8b;
    margin-right: 15px;
}

.logo-text {
    text-align: left;
}

.logo-title {
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #a99e8b;
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #a99e8b;
    font-style: italic;
}

/* 主副标题样式 */
.title-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.main-title {
    font-size: 2rem;
    font-weight: 400;
    color: #6c5648;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #8a7a6d;
    font-weight: 300;
}

/* 主内容区域 */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 肯定语容器 */
.affirmation-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

/* 肯定语卡片 */
.affirmation-card {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(169, 158, 139, 0.1);
}

/* 肯定语文本 */
.affirmation-text {
    font-size: 2.8rem;
    line-height: 1.5;
    margin: 20px auto 50px;
    font-weight: 400;
    color: #5a4839;
    font-style: normal;
    text-align: center;
    max-width: 90%;
    padding: 25px 20px;
    position: relative;
    transition: all 0.3s ease;
}

/* 右侧切换按钮 */
.next-button {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(169, 158, 139, 0.3);
    background-color: #f5f2e9;
    border: 1px solid #d4c9b6;
}

.next-button:hover {
    right: -27px;
}

/* 肯定语切换动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 肯定语装饰引号 */
.affirmation-text::before,
.affirmation-text::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.affirmation-text::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c5648'%3E%3Cpath d='M7.17 17c.51 0 .98-.29 1.2-.74l1.42-2.84c.14-.28.21-.58.21-.89V8c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h2l-1.03 2.06c-.45.89.2 1.94 1.2 1.94zm10 0c.51 0 .98-.29 1.2-.74l1.42-2.84c.14-.28.21-.58.21-.89V8c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h2l-1.03 2.06c-.45.89.2 1.94 1.2 1.94z'%3E%3C/path%3E%3C/svg%3E");
    top: 0;
    left: 0;
}

.affirmation-text::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c5648'%3E%3Cpath d='M16.83 7c-.51 0-.98.29-1.2.74l-1.42 2.84c-.14.28-.21.58-.21.89v4c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1h-2l1.03-2.06c.45-.89-.2-1.94-1.2-1.94zm-10 0c-.51 0-.98.29-1.2.74L4.21 10.58c-.14.28-.21.58-.21.89v4c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1H7l1.03-2.06c.45-.89-.2-1.94-1.2-1.94z'%3E%3C/path%3E%3C/svg%3E");
    bottom: 0;
    right: 0;
}

/* 肯定语底部边框 */
.affirmation-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background-color: #d4c9b6;
}

/* 操作按钮区域 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* 带标签的按钮容器 */
.button-with-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 按钮标签 */
.button-label {
    font-size: 0.9rem;
    color: #8a7a6d;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 按钮样式 */
.action-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #a99e8b;
    background-color: transparent;
    color: #6c5648;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background-color: #f5efd0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(169, 158, 139, 0.2);
}

.action-button i {
    font-size: 1.2rem;
}

/* 壁纸创建区域样式 - 非首屏必需样式 */
.wallpaper-creator {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.wallpaper-creator h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    color: #6c5648;
    margin-bottom: 20px;
}

.template-options {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.template {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px 20px;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(169, 158, 139, 0.2);
}

.template span {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #8a7a6d;
}

.template-preview {
    width: 100%;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.minimal-preview {
    background-color: #f5f2e9;
    border: 1px solid #e6dfd0;
}

.dreamy-preview {
    background: linear-gradient(to right, #f5efd0, #f9f5e7);
}

.artistic-preview {
    background-color: #f5f2e9;
    position: relative;
}

.artistic-preview::before,
.artistic-preview::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.artistic-preview::before {
    width: 20px;
    height: 20px;
    background-color: rgba(169, 158, 139, 0.2);
    top: 10px;
    left: 10px;
}

.artistic-preview::after {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(169, 158, 139, 0.3);
    bottom: 10px;
    right: 10px;
}

.template.selected {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 8px rgba(169, 158, 139, 0.1);
    transform: translateY(-2px);
}

.wallpaper-preview {
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background-color: #f5f2e9;
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(169, 158, 139, 0.1);
    transition: all 0.3s ease;
}

.wallpaper-preview.minimal {
    background-color: #f5f2e9;
    background-image: none;
}

.wallpaper-preview.dreamy {
    background-image: linear-gradient(to right, #f5efd0, #f9f5e7);
}

.wallpaper-preview.artistic {
    background-color: #f5f2e9;
    background-image: none;
}

.wallpaper-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration {
    position: absolute;
    opacity: 0.15;
    transition: all 0.3s ease;
}

.artistic .decoration {
    opacity: 0.3;
}

.decoration.top-left {
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #6c5648;
}

.decoration.top-right {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid #6c5648;
    border-radius: 50%;
}

.decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border: 1px solid #6c5648;
    border-radius: 50%;
}

.decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #6c5648;
}

.decoration.middle-left {
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #6c5648;
}

.decoration.middle-right {
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #6c5648;
}

.decoration.top-center {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #6c5648;
}

.decoration.bottom-center {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #6c5648;
}

.preview-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 400;
    color: #5a4839;
    text-align: center;
    width: 90%;
    max-width: 600px;
}

.dreamy .preview-text {
    font-style: italic;
}

.artistic .preview-text {
    font-weight: 500;
    letter-spacing: 1px;
}

.download-button {
    display: block;
    margin: 20px auto;
    padding: 12px 25px;
    background-color: #6c5648;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-button:hover {
    background-color: #5a4839;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(169, 158, 139, 0.3);
}

.wallpaper-size-options {
    margin-bottom: 20px;
    text-align: center;
}

.size-label {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #6c5648;
}

.size-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.size-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-option:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.size-option input[type="radio"] {
    display: none;
}

.size-option input[type="radio"]:checked + .size-name {
    font-weight: 500;
}

.size-name {
    font-size: 0.9rem;
    color: #6c5648;
}

/* 响应式布局 - 针对壁纸区域的特定调整 */
@media (max-width: 768px) {
    .template-options {
        flex-direction: column;
        align-items: center;
    }
    
    .template {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .wallpaper-preview {
        padding-top: 75%; /* 4:3 比例，移动设备更容易看 */
    }
    
    .preview-text {
        font-size: 1.2rem;
    }
    
    .decoration {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .template {
        padding: 10px;
    }
    
    .template-preview {
        height: 80px;
    }
    
    .wallpaper-preview {
        padding-top: 100%; /* 1:1 比例，小屏幕上更容易查看 */
    }
    
    .preview-text {
        font-size: 1rem;
        width: 85%;
    }
    
    .size-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .size-option {
        width: 100%;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
    }
    
    .logo-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .affirmation-text {
        font-size: 2.3rem;
    }
    
    .next-button {
        right: -15px;
    }
    
    .wallpaper-preview {
        height: 240px;
    }
    
    .preview-text {
        font-size: 1.2rem;
    }
    
    .template-options {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .affirmation-text {
        font-size: 1.8rem;
    }
    
    .next-button {
        right: -10px;
    }
    
    .action-buttons {
        gap: 20px;
    }
    
    .button-label {
        font-size: 0.8rem;
    }
    
    .template-options {
        flex-direction: column;
        align-items: center;
    }
    
    .template {
        width: 100px;
        height: 100px;
    }
    
    .template-preview {
        height: 60px;
    }
    
    .wallpaper-preview {
        height: 200px;
    }
    
    .decoration {
        transform: scale(0.8);
    }
    
    .preview-text {
        font-size: 1rem;
    }
    
    .size-selector {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .size-option {
        width: 90%;
        justify-content: center;
    }
} 
