/* iPhone 15样式 */
.iphone-frame {
    width: 100%;
    max-width: 320px;
    height: 650px;
    position: relative;
    margin: 0 auto;
    border-radius: 44px;
    background-color: #111111;
    padding: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iphone-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.iphone-frame iframe {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background-color: white;
    border: none;
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background-color: #111111;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

/* Dynamic Island */
.iphone-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 10px;
    background-color: #000;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    z-index: 11;
}

.prototype-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    height: auto;
    min-height: 720px;
}

.prototype-container h2 {
    margin-bottom: 15px;
    text-align: center;
}

.prototype-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* 全局样式 */
:root {
    /* 核心颜色 */
    --primary-color: #8e44ad;
    --primary-light: #9b59b6;
    --primary-dark: #7d3c98;
    --accent-color: #e84393;
    --accent-light: #fd79a8;
    --accent-dark: #c2185b;

    /* 中性颜色 */
    --dark-text: #2d3436;
    --light-text: #636e72;
    --lighter-text: #b2bec3;
    --border-color: #dfe6e9;
    --background-color: #f9f9f9;

    /* 功能颜色 */
    --success-color: #00b894;
    --error-color: #d63031;
    --warning-color: #fdcb6e;
    --info-color: #0984e3;

    /* 定制颜色 */
    --light-purple: #e9d5ff;
    --medium-purple: #c084fc;
    --dark-purple: #8b5cf6;
    --light-pink: #fbcfe8;
    --medium-pink: #f472b6;
    --card-shadow: 0 5px 15px rgba(142, 68, 173, 0.08);

    /* 尺寸变量 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* 字体大小 */
    --text-xs: 0.65rem;
    --text-sm: 0.75rem;
    --text-md: 0.85rem;
    --text-lg: 1rem;
    --text-xl: 1.1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark-text);
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 60px;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 12px;
}

/* 字体大小调整 */
h1 {
    font-size: 1.3rem !important;
    font-weight: 600;
}

h2 {
    font-size: 1rem !important;
    font-weight: 600;
}

h3 {
    font-size: 0.85rem !important;
    font-weight: 600;
}

body, p {
    font-size: 0.75rem !important;
}

.text-xs {
    font-size: 0.65rem !important;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(232, 67, 147, 0.08);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: var(--text-sm);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(142, 68, 173, 0.2);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--dark-text);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 7px 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: var(--text-sm);
}

.btn-secondary:hover {
    background-color: #eeeeee;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--light-purple);
    transform: translateY(-1px);
}

/* 图标按钮 */
.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.btn-icon.active {
    background-color: var(--light-purple);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-icon:hover {
    background-color: var(--light-purple);
    transform: translateY(-1px);
}

/* 输入框样式 */
.input-field {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 8px 12px;
    outline: none;
    transition: all 0.2s ease;
    font-size: var(--text-sm);
}

.input-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.1);
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    border-top: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    text-decoration: none;
    font-size: var(--text-xs);
    padding: 10px 0;
    width: 25%;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: 500;
}

/* 评分星星 */
.rating {
    display: flex;
    align-items: center;
    color: #ffb400;
    font-size: 0.9rem;
}

.rating span {
    margin-left: 4px;
    color: var(--light-text);
}

/* 聊天样式 */
.chat-container {
    background-color: #f9fafb;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm);
}

.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    max-width: 75%;
}

.chat-message.other {
    align-items: flex-start;
}

.chat-message.me {
    align-items: flex-end;
    align-self: flex-end;
    margin-left: auto;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: var(--text-md);
    margin-bottom: 4px;
    word-break: break-word;
}

.chat-message.other .message-bubble {
    background-color: white;
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}

.chat-message.me .message-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-top-right-radius: 4px;
}

.message-time {
    font-size: var(--text-xs);
    color: var(--light-text);
    margin: 0 4px;
}

.chat-body {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
}

/* 人设样式 */
.persona-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.persona-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(142, 68, 173, 0.15);
}

.persona-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
}

.persona-info {
    padding: 12px;
}

.persona-name {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 6px;
}

.persona-desc {
    font-size: var(--text-sm);
    color: var(--light-text);
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 会员专区样式 */
.vip-badge {
    background: linear-gradient(to right, #9b59b6, #fd79a8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: bold;
}

/* 美化滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(142, 68, 173, 0.5);
}

/* 功能图标 */
.feature-icon {
    @apply w-10 h-10 rounded-full flex items-center justify-center mb-1;
}

/* 键盘样式 */
.keyboard-key {
    width: 26px;
    height: 34px;
    background-color: rgba(232, 67, 147, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--dark-text);
    box-shadow: 0 2px 6px rgba(232, 67, 147, 0.15);
    transition: all 0.15s ease;
}

.keyboard-key:active {
    transform: scale(0.95);
    background-color: rgba(232, 67, 147, 0.25);
}

.w-10 {
    width: 38px;
}

.w-32 {
    width: 110px;
}

.min-h-32 {
    min-height: 8rem;
}

/* 响应式调整 */
@media (max-width: 1400px) {
    .iphone-frame {
        max-width: 300px;
        height: 620px;
    }
    
    .prototype-container {
        min-height: 630px;
        padding: 15px;
    }
}

@media (max-width: 1200px) {
    .iphone-frame {
        max-width: 240px;
        height: 520px;
    }
    
    .prototype-container {
        min-height: 600px;
    }
}

@media (max-width: 992px) {
    .iphone-frame {
        max-width: 280px;
        height: 560px;
    }
    
    .prototype-container {
        min-height: 650px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .iphone-frame {
        max-width: 280px;
        height: 580px;
    }
    
    .prototype-container {
        min-height: 680px;
        padding: 20px;
    }
    
    .prototype-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 640px) {
    .iphone-frame {
        max-width: 280px;
        height: 580px;
    }
    
    .prototype-container {
        min-height: 660px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .iphone-frame {
        max-width: 100%;
        height: 580px;
    }
    
    .prototype-container {
        padding: 1rem;
        min-height: 650px;
    }
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

/* 分割线 */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 16px 0;
}

/* 标题 */
.section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    color: var(--primary-dark);
}

.section-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* 头像 */
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-purple);
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--text-md);
    box-shadow: 0 2px 6px rgba(142, 68, 173, 0.15);
}

/* 滚动容器 */
.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* 横向卡片组 */
.horizontal-cards {
    display: inline-flex;
    gap: 12px;
    padding: 4px;
}

/* 步骤引导 */
.step-item {
    display: flex;
    margin-bottom: 20px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--text-sm);
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(142, 68, 173, 0.2);
}

.step-content {
    flex-grow: 1;
}

.step-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.step-desc {
    font-size: var(--text-sm);
    color: var(--light-text);
    line-height: 1.5;
}

/* 步骤指引 */
.step-guide {
    display: flex;
    margin: 24px 0;
    justify-content: space-between;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    right: -30%;
    width: 60%;
    height: 2px;
    background-color: var(--border-color);
}

.step-item.active:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--border-color);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item.active .step-circle {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(142, 68, 173, 0.2);
}

.step-item.active .step-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 爱心特效 */
.love-effect {
    position: absolute;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(var(--ts));
    }
}

/* lovekey 相关风格 */
.love-key {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    color: white;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(232, 67, 147, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.love-key::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg,
        rgba(142, 68, 173, 0.3) 0%,
        rgba(232, 67, 147, 0.3) 100%);
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.love-key:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(232, 67, 147, 0.3);
}

.love-key:hover::before {
    opacity: 1;
}

.love-key-active {
    transform: scale(0.98) !important;
    box-shadow: 0 2px 5px rgba(232, 67, 147, 0.2) !important;
}

.love-meter {
    height: 8px;
    background-color: rgba(232, 67, 147, 0.1);
    border-radius: 0;
    overflow: hidden;
    margin: 8px 0;
    position: relative;
    border: 1px solid rgba(232, 67, 147, 0.2);
}

.love-meter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    z-index: 1;
}

.love-meter-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(to right, #9b59b6, #e84393);
    border-radius: 0;
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

.love-meter-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 爱心容器 */
.love-container {
    position: relative;
    overflow: hidden;
}

.love-container:hover::before {
    opacity: 0.2;
    transform: rotate(20deg) scale(1.2);
}

/* 爱心按钮脉动动画 */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.love-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(142, 68, 173, 0.2);
}

.love-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(142, 68, 173, 0.3);
}

.love-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(142, 68, 173, 0.2);
}

.love-btn i {
    margin-right: 6px;
}

.love-btn.pulsate {
    animation: heartbeat 1.5s infinite;
}

/* 功能网格布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* 回复建议按钮 */
.reply-suggestion {
    background-color: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: block;
}

.reply-suggestion:hover {
    background-color: #e1bee7;
}

/* 开场白建议按钮 */
.opener-suggestion {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: block;
}

.opener-suggestion:hover {
    background-color: #c8e6c9;
}

/* 场景标签 */
.scene-tag {
    background-color: #f5f5f5;
    color: #616161;
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-bottom: 6px;
}

.scene-tag:hover {
    background-color: #eeeeee;
    color: #424242;
}

/* 产品特色功能区域样式 */
.feature-card {
    background-color: white;
    border: 1px solid #f0f0f0;
    padding: 20px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #8e44ad;
    margin-bottom: 10px;
}

.feature-desc {
    color: #666;
    margin-bottom: 15px;
}

/* 改进原型网格布局 */
.prototype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: center;
}