/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

/* 标题 */
.title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 电话容器 */
.phone-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 40px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 电话座机底座 */
.phone-body {
    position: absolute;
    width: 90%;
    height: auto;
    z-index: 1;
    bottom: 0;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* 话筒 */
.phone-receiver {
    position: absolute;
    width: 130%;
    height: auto;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* 话筒蹦起和摇晃动画 */
.phone-receiver.receiver-bounce {
    animation: receiverBounce 0.6s cubic-bezier(0.36, 0, 0.66, -0.56);
}

@keyframes receiverBounce {
    0% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    20% {
        transform: translateX(-50%) translateY(-20px) rotate(-5deg);
    }
    40% {
        transform: translateX(-50%) translateY(-15px) rotate(5deg);
    }
    60% {
        transform: translateX(-50%) translateY(-10px) rotate(-3deg);
    }
    80% {
        transform: translateX(-50%) translateY(-5px) rotate(2deg);
    }
    100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
}

/* 拨号盘包装器 */
.dial-wrapper {
    position: absolute;
    width: 55%;
    height: 55%;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

/* 拨号盘 */
.phone-dial {
    width: 100%;
    height: 100%;
    cursor: grab;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    user-select: none;
    -webkit-user-drag: none;
    transition: filter 0.3s ease;
}

.phone-dial:hover {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.5)) brightness(1.05);
}

.phone-dial:active {
    cursor: grabbing;
}

/* 拨号提示 */
.dial-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
    pointer-events: none;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 说明文字 */
.instruction {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.instruction p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* 进度信息 */
.progress-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease-out;
}

.round-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.round-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* 灵感词展示区 */
.inspiration-display {
    margin: 30px 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.inspiration-display.completion-mode {
    margin: 50px 0;
    min-height: auto;
}

.inspiration-card {
    background: white;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 从话筒位置蹦出的初始状态 */
.inspiration-card.pop-from-receiver {
    position: relative;
    left: -20%;
    top: -100px;
    opacity: 0;
    transform: translateY(-50px) scale(0.5) rotate(-10deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inspiration-card.show {
    opacity: 1;
    left: 0;
    top: 0;
    transform: translateY(0) scale(1) rotate(0deg);
}

.inspiration-category {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inspiration-word {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 已选择的灵感词 */
.selected-inspirations {
    margin: 20px 0;
    transition: opacity 0.3s ease-out;
}

.selected-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.selected-tag {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 标签从左侧飞入的动画 */
.selected-tag.tag-fly-in {
    animation: tagFlyIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tagFlyIn {
    0% {
        opacity: 0;
        transform: translateX(-150px) scale(0.6) rotate(-15deg);
    }
    60% {
        transform: translateX(10px) scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

.tag-category {
    font-size: 12px;
    color: #999;
}

.tag-word {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

/* 完成卡片 */
.completion-card {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.completion-title {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.completion-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.final-inspirations {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.final-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.final-tag span {
    font-size: 14px;
    opacity: 0.9;
}

.final-tag strong {
    font-size: 20px;
    font-weight: 700;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.recommend-btn,
.restart-btn {
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.recommend-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.recommend-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.recommend-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.restart-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.restart-btn.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.restart-btn.secondary:hover {
    background: #f8f9ff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.restart-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
}

/* AI 推荐区域 */
.ai-recommendation {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px;
    animation: fadeIn 0.5s ease-out;
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    color: #667eea;
    font-size: 16px;
    font-weight: 500;
}

.error-message {
    background: #fff5f5;
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #c53030;
}

.error-detail {
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.8;
}

/* ================================
   Loading Scene - 加载场景配置
   ================================ */

/* 
   卡片位置配置参数说明：
   
   1. --card-vertical-offset: 卡片最终停留的垂直位置
      - 默认: 0px (屏幕垂直居中)
      - 向上偏移: 使用负值，如 -50px (卡片往上移动50px)
      - 向下偏移: 使用正值，如 50px (卡片往下移动50px)
      
   2. --card-start-y: 卡片动画的起始位置
      - 默认: 120px (从下方120px处滑入)
      - 建议范围: 80px ~ 200px
*/

.loading-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    animation: fadeIn 0.5s ease-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    
    /* 🎯 配置参数：卡片最终位置 */
    --card-vertical-offset: -40px;  /* 向上偏移40px，让卡片更靠上 */
}

.selected-tags-display {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}

.tag-pill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 26px;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    animation: tagFadeIn 0.5s ease-out both;
}

.tag-pill:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(135deg, #c4b896 0%, #a89968 100%);
}

.tag-pill:nth-child(2) {
    animation-delay: 0.1s;
    background: linear-gradient(135deg, #8fa8a3 0%, #6d8a84 100%);
}

.tag-pill:nth-child(3) {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, #9b8fc4 0%, #7d6ba8 100%);
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading Card - 白色底卡 */
.loading-card {
    background: white;
    border-radius: 24px;
    padding: 30px 40px 40px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: cardFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
    position: relative;
    margin-bottom: 24px;
    
    /* 🎯 配置参数：卡片动画起始位置 */
    --card-start-y: 120px;  /* 从下方120px处开始滑入，增大此值让动画更明显 */
}

@keyframes slideUpFromBottom {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-15%);
    }
}

@keyframes cardFadeIn {
    0% {
        transform: translateY(var(--card-start-y, 120px));
        opacity: 0;
    }
    100% {
        transform: translateY(var(--card-vertical-offset, 0px));
        opacity: 1;
    }
}

.loading-message {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.3;
}

.loading-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Analysis Section */
/* Result Card - 主结果卡片 */
.result-card {
    animation: fadeIn 0.6s ease-out;
}

/* Scene Section - 思绪漫游记 */
.scene-section {
    background: white;
    padding: 30px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.scene-description {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 12px;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

/* 高亮文字样式 - 用于思绪文案中的关键词 */
.scene-description .highlight {
    display: inline-block;
    position: relative;
    font-weight: 700;
    color: #667eea;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    padding: 2px 8px;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.scene-description .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.scene-description .highlight:hover {
    background: linear-gradient(135deg, #667eea30 0%, #764ba230 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.scene-description .highlight:hover::after {
    width: 100%;
}

/* Luck Index Section - 幸运指数 */
.luck-index-section {
    background: white;
    padding: 30px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    margin-bottom: 24px;
}

.luck-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.luck-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.luck-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.luck-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.luck-stars {
    font-size: 16px;
    color: #ffd700;
    letter-spacing: 2px;
}

.lucky-food {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 12px;
    border: 2px dashed #667eea;
}

.lucky-food-label {
    font-size: 15px;
    color: #666;
    margin-right: 8px;
}

.lucky-food-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

/* Recommendation Section - 美食推荐 */
.recommendation-section {
    background: white;
    padding: 30px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.recommendation-guide {
    text-align: center;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6f0 100%);
    border-radius: 12px;
    font-style: italic;
}

/* Foods Section */
.foods-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Food Card */
.food-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.food-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.food-card-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.food-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    font-size: 48px;
    color: #ccc;
}

.food-card-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.food-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-align: left;
}

.food-card-shop {
    font-size: 14px;
    color: #667eea;
    margin: 0;
    text-align: left;
}

.food-card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Legacy styles */
.recommendations-title {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 16px;
    text-align: center;
}

.recommendations-story {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    font-style: italic;
}

.recommendations-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 16px;
    text-align: center;
}

.recommendations-summary {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    font-style: italic;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendation-item {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommendation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.rec-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.rec-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.rec-title {
    flex: 1;
}

.rec-food-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.rec-shop-name {
    font-size: 14px;
    color: #999;
}

.rec-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 12px 0;
}

.rec-reason {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.rec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rec-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.no-recommendations {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* 返回链接 */
.back-link {
    margin-top: 30px;
}

.back-link a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.back-link a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .phone-container {
        max-width: 350px;
    }
    
    .dial-hint {
        font-size: 12px;
        padding: 6px 12px;
        bottom: -35px;
    }
    
    .instruction {
        padding: 15px 20px;
    }
    
    .instruction p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .phone-container {
        max-width: 300px;
    }
    
    .phone-receiver {
        width: 117%;
        top: 10%;
    }
    
    .inspiration-word {
        font-size: 28px;
    }
    
    .completion-card {
        padding: 35px 25px;
        max-width: 90%;
    }
    
    .completion-title {
        font-size: 28px;
    }
    
    /* 结果展示 - 移动端适配 */
    .scene-section,
    .luck-index-section,
    .recommendation-section {
        padding: 24px 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .scene-description {
        font-size: 15px;
        padding: 16px;
    }
    
    .scene-description .highlight {
        font-size: 15px;
        padding: 1px 6px;
        margin: 0 1px;
    }
    
    .luck-items {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .luck-item {
        padding: 10px 14px;
    }
    
    .luck-label {
        font-size: 14px;
    }
    
    .luck-stars {
        font-size: 15px;
    }
    
    .lucky-food {
        padding: 14px;
    }
    
    .lucky-food-label {
        font-size: 14px;
    }
    
    .lucky-food-value {
        font-size: 16px;
    }
    
    .recommendation-guide {
        font-size: 15px;
        padding: 14px;
    }
    
    .food-card {
        padding: 16px;
    }
    
    .food-card-image {
        width: 90px;
        height: 90px;
    }
    
    .food-card-name {
        font-size: 15px;
    }
    
    .food-card-shop {
        font-size: 13px;
    }
    
    .food-card-description {
        font-size: 13px;
    }
    
    .completion-subtitle {
        font-size: 16px;
    }
    
    .final-tag {
        padding: 12px 20px;
    }
    
    .final-tag strong {
        font-size: 18px;
    }
}

/* 移动端响应式 - Food Card */
@media (max-width: 600px) {
    .food-card {
        flex-direction: column;
    }
    
    .food-card-image {
        width: 100%;
        height: 200px;
    }
    
    .food-card-name {
        font-size: 16px;
    }
    
    .food-card-shop {
        font-size: 13px;
    }
    
    .food-card-description {
        font-size: 13px;
    }
    
    .analysis-title {
        font-size: 20px;
    }
    
    .analysis-story {
        font-size: 14px;
        padding: 16px;
    }
    
    .loading-message {
        font-size: 24px;
    }
    
    .loading-card {
        padding: 28px 24px 36px;
        border-radius: 20px;
        width: 95%;
        max-width: 95%;
        margin-bottom: 20px;
        --card-start-y: 80px;  /* 移动端起始位置调整 */
    }
    
    .tag-pill {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .selected-tags-display {
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .ai-recommendation {
        padding: 0 16px 32px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .phone-dial {
        cursor: default;
    }
    
    .phone-dial:hover {
        filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
    }
}

