/* 基础样式 */
body {
    height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    font-family: "华文仿宋", FangSong, "Noto Serif SC", serif;
}

.main-container {
    max-width: 900px;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 20px));
    display: flex;
    flex-direction: column;
}

/* 头部区域样式 */
.header {
    flex-shrink: 0;
}

/* 返回链接样式 */
.back-link {
    display: inline-flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: 'IBM Plex Mono', monospace;
}

.back-link:hover {
    color: #333;
}

.back-arrow {
    margin-right: 4px;
}

/* 应用图标样式 */
.app-logo {
    text-align: center;
    margin-bottom: 10px;
}

.app-logo img {
    width: 80px;
    height: 80px;
}

/* 场景标签样式 */
.scene-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
}

.scene-tag {
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.scene-tag:hover,
.scene-tag.active {
    background: #fff8e1;
}

/* 内容区域样式 */
.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

/* 文案展示区域样式 */
.quote-container {
    text-align: center;
}

.quote-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    max-width: 900px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.quote-scene {
    color: #666;
    font-size: 12px;
    margin-bottom: 0;
    background: #fff8e1;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* 底部区域样式 */
.footer {
    flex-shrink: 0;
    text-align: center;
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 16px;
    width: 90%;
    max-width: 500px;
    margin: 0 auto 60px;
    justify-content: center;
    position: relative;
    bottom: env(safe-area-inset-bottom, 20px);
}

.action-btn {
    flex: 1;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 14px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
    min-width: 0;
}

.action-btn:hover {
    background: #000;
}

/* 版权信息样式 */
.copyright {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.copyright a {
    color: #333;
    text-decoration: underline;
}

.copyright a:hover {
    color: #666;
    text-decoration: none;
}

/* Toast 提示样式 */
.copy-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 15px 15px calc(15px + env(safe-area-inset-bottom, 20px));
    }

    .content {
        margin: 10px 0;
    }

    .quote-text {
        font-size: 20px;
        padding: 0 15px;
    }

    .scene-tag {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .button-group {
        width: 94%;
        bottom: env(safe-area-inset-bottom, 30px);
    }
    
    .action-btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .app-logo img {
        width: 60px;
        height: 60px;
    }

    .scene-container {
        margin: 5px 0;
        gap: 6px;
    }
}

@media (max-width: 320px) {
    .button-group {
        bottom: env(safe-area-inset-bottom, 40px);
    }
}

/* 适配较小的屏幕 */
@media (max-height: 600px) {
    .quote-text {
        font-size: 18px;
    }

    .app-logo img {
        width: 50px;
        height: 50px;
    }

    .content {
        margin: 5px 0;
    }
}