/* ========================================
   爱宠 - 温暖数字猫窝
   版本：2026-03-06 Warm Cat House
   主题：阳光下的猫咪乐园 · 游戏 UI 场景化
   风格：扁平可爱 × 游戏化 × 明亮橘黄
   ======================================== */

/* ========== 色彩系统 ========== */
:root {
    /* 主色 - 暖阳橘（橘猫毛色） */
    --sunny-orange: #FFA726;
    --sunny-orange-light: #FFC068;
    --sunny-orange-dark: #F57C00;
    
    /* 场景色盘 */
    --cream-white: #FFF9F0;      /* 奶油白 - 主背景 */
    --latte-brown: #D7CCC8;       /* 拿铁浅棕 - 木制家具 */
    --terracotta: #E5989B;        /* 陶土粉 - 强调 */
    --sky-blue: #B3E5FC;          /* 浅天蓝 - 强调 */
    
    /* 中性色 */
    --text-dark: #5D4037;
    --text-medium: #8D6E63;
    --text-light: #BCAAA4;
    --border-warm: #EFEBE9;
    
    /* 标签色 */
    --hot-pink: #F48FB1;
    --new-green: #A5D6A7;
    --good-blue: #90CAF9;
    
    /* 阴影 */
    --shadow-soft: 0 8px 24px rgba(255, 167, 38, 0.2);
    --shadow-deep: 0 12px 36px rgba(255, 167, 38, 0.3);
    --glow-inner: inset 0 2px 8px rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    /* 奶油白背景 + 微织物纹理 */
    background: 
        linear-gradient(180deg, var(--cream-white) 0%, #FFF3E0 100%);
    min-height: 100vh;
    color: var(--text-dark);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

/* 微织物噪点质感 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: -1;
}

/* ========== 头部 - 猫窝场景 ========== */
.header {
    background: linear-gradient(135deg, 
        var(--sunny-orange-light) 0%, 
        var(--sunny-orange) 50%, 
        var(--sunny-orange-dark) 100%);
    color: white;
    padding: 50px 25px 40px;
    text-align: center;
    background: linear-gradient(135deg, 
        var(--sunny-orange-light) 0%, 
        var(--sunny-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 24px rgba(255, 167, 38, 0.35),
        inset 0 3px 10px rgba(255,255,255,0.5),
        inset 0 -3px 10px rgba(0,0,0,0.08);
    border: 3px solid rgba(255,255,255,0.6);
    animation: softFloat 3s ease-in-out infinite;
}

@keyframes softFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}

.pet-avatar-img {
    width: 65%;
    height: 65%;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2));
}

/* 宠物详情 */
.pet-details {
    flex: 1;
    min-width: 0;
}

.pet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pet-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 1px;
}

.pet-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, 
        rgba(0, 210, 160, 0.1) 0%, 
        rgba(0, 184, 148, 0.08) 100%);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #00B894;
    border: 1px solid rgba(0, 184, 148, 0.2);
    flex-shrink: 0;
}

/* 宠物元信息 */
.pet-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, 
        rgba(255, 167, 38, 0.08) 0%, 
        rgba(255, 217, 61, 0.05) 100%);
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid rgba(255, 167, 38, 0.15);
    transition: all 0.3s ease;
}

.meta-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, 
        rgba(255, 167, 38, 0.12) 0%, 
        rgba(255, 217, 61, 0.08) 100%);
    border-color: rgba(255, 167, 38, 0.3);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.2);
}

.meta-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

/* ========== 功能卡片 - 九宫格风格 ========== */
.feature-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 249, 240, 0.85) 100%);
    border-radius: 24px;
    padding: 24px 16px;
    margin: 0;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    padding-bottom: 10px;
}

.chat-input-area {
    display: flex;
    padding: 15px 15px;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    border-top: 1.5px solid var(--border-warm);
    gap: 10px;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.chat-header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 3px 15px rgba(0,0,0,0.15);
}

.back-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 28px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.back-btn:hover {
    opacity: 1;
}



/* 聊天消息 - 毛线球风格 */
.message {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
    animation: messageFadeIn 0.4s ease;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sunny-orange-light), var(--sunny-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 10px;
    box-shadow: 
        0 4px 12px rgba(255, 167, 38, 0.35),
        inset 0 2px 6px rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.message-content {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    padding: 15px 18px;
    border-radius: 20px;
    box-shadow: 
        0 6px 18px rgba(255, 167, 38, 0.18),
        0 3px 8px rgba(0,0,0,0.05),
        inset 0 2px 6px rgba(255,255,255,0.8);
    max-width: 70%;
    border: 1.5px solid rgba(255, 167, 38, 0.15);
}

.tag-item span {
    pointer-events: none;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed rgba(255, 167, 38, 0.4);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
}

.upload-area:hover {
    border-color: var(--sunny-orange);
    background: rgba(255, 167, 38, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-area p {
    color: var(--text-medium);
    font-size: 14px;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid var(--border-warm);
}

/* 问诊结果 */
.consultation-result {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    margin: 16px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 12px 36px rgba(255, 167, 38, 0.25),
        0 6px 16px rgba(0,0,0,0.08),
        inset 0 2px 8px rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255, 167, 38, 0.2);
}

.result-header {
    background: linear-gradient(135deg, 
        var(--sunny-orange-light) 0%, 
        var(--sunny-orange) 50%, 
        var(--sunny-orange-dark) 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.4);
}

.result-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

.result-content {
    padding: 22px;
    line-height: 1.8;
    font-size: 14px;
    color: var(--text-dark);
}

.result-content p {
    margin: 10px 0;
}

.result-actions {
    padding: 15px 20px;
    border-top: 1.5px solid var(--border-warm);
    display: flex;
    gap: 10px;
    background: linear-gradient(180deg, var(--cream-white) 0%, #FFF9F0 100%);
}

.result-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-actions .action-btn-primary {
    background: linear-gradient(135deg, var(--sunny-orange-light), var(--sunny-orange));
    color: white;
    box-shadow: 
        0 6px 18px rgba(255, 167, 38, 0.4),
        inset 0 2px 6px rgba(255,255,255,0.4);
}

.result-actions .action-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 28px rgba(255, 167, 38, 0.5),
        inset 0 2px 6px rgba(255,255,255,0.5);
}

.result-actions .action-btn-secondary {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    color: var(--sunny-orange);
    border: 1.5px solid rgba(255, 167, 38, 0.3);
}

.result-actions .action-btn-secondary:hover {
    background: rgba(255, 167, 38, 0.08);
    transform: translateY(-2px);
}

/* ========== 档案页面布局 ========== */
.profile-page {
    padding-bottom: 70px;
}

/* ========== 贴士页面布局 ========== */
.tips-page {
    padding-bottom: 70px;
}

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

.profile-section {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 
        0 8px 24px rgba(255, 167, 38, 0.18),
        0 4px 10px rgba(0,0,0,0.05),
        inset 0 2px 8px rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255, 167, 38, 0.15);
}

.profile-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-medium);
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 14px 17px;
    border: 2px solid var(--border-warm);
    border-radius: 16px;
    font-size: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}

.form-input:focus {
    outline: none;
    border-color: var(--sunny-orange);
    box-shadow: 
        0 0 0 4px rgba(255, 167, 38, 0.12),
        0 4px 12px rgba(255, 167, 38, 0.18),
        inset 0 2px 6px rgba(255,255,255,0.8);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFA726' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* 表情选择器 */
.emoji-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.emoji-btn {
    font-size: 36px;
    padding: 10px;
    border: 2px solid var(--border-warm);
    border-radius: 12px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(255, 167, 38, 0.1);
}

.emoji-btn:hover {
    transform: scale(1.1);
    border-color: var(--sunny-orange);
    box-shadow: 0 6px 16px rgba(255, 167, 38, 0.25);
}

.emoji-btn.selected {
    border-color: var(--sunny-orange);
    background: rgba(255, 167, 38, 0.1);
    box-shadow: 0 6px 16px rgba(255, 167, 38, 0.3);
}

/* 健康信息 */
.health-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.health-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.health-label {
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 600;
}

/* 问诊历史 */
.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 15px;
    border-bottom: 1.5px solid var(--border-warm);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
}

.history-item:hover {
    background: rgba(255, 167, 38, 0.06);
    transform: translateX(5px);
}

.history-item:last-child {
    border-bottom: none;
}

.history-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.history-symptoms {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.empty-tip {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-size: 14px;
}

/* 保存按钮 */
.save-btn {
    width: 100%;
    background: linear-gradient(135deg, 
        var(--sunny-orange-light) 0%, 
        var(--sunny-orange) 50%, 
        var(--sunny-orange-dark) 100%);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    box-shadow: 
        0 10px 28px rgba(255, 167, 38, 0.45),
        0 5px 12px rgba(0,0,0,0.1),
        inset 0 3px 10px rgba(255,255,255,0.4),
        inset 0 -3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
}

.save-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 18px 45px rgba(255, 167, 38, 0.55),
        0 10px 22px rgba(0,0,0,0.12),
        inset 0 3px 10px rgba(255,255,255,0.5),
        inset 0 -3px 10px rgba(0,0,0,0.12);
}

/* ========== 贴士页面布局 ========== */
.tips-page {
    padding-bottom: 80px;
}

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

.tips-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.tips-categories::-webkit-scrollbar {
    height: 6px;
}

.tips-categories::-webkit-scrollbar-thumb {
    background: var(--sunny-orange);
    border-radius: 3px;
}

.category-btn {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    border: 1.5px solid var(--border-warm);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-medium);
    box-shadow: 0 4px 10px rgba(255, 167, 38, 0.1);
}

.category-btn:hover {
    border-color: var(--sunny-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 167, 38, 0.25);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--sunny-orange-light), var(--sunny-orange));
    color: white;
    border-color: var(--sunny-orange);
    box-shadow: 
        0 6px 18px rgba(255, 167, 38, 0.4),
        inset 0 2px 6px rgba(255,255,255,0.4);
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tip-card {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 8px 24px rgba(255, 167, 38, 0.18),
        0 4px 10px rgba(0,0,0,0.05),
        inset 0 2px 8px rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255, 167, 38, 0.15);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(255, 167, 38, 0.25),
        0 6px 16px rgba(0,0,0,0.08),
        inset 0 2px 8px rgba(255,255,255,0.8);
}

.tip-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.tip-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-medium);
}

.important-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--hot-pink), #F06292);
    color: white;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(244, 143, 177, 0.4);
}

.tip-card.important {
    border-left: 4px solid var(--hot-pink);
    border-radius: 20px;
}

/* ========== 分享页面布局 ========== */
.share-page {
    padding: 20px;
    min-height: calc(100vh - 140px);
}

.share-header {
    text-align: center;
    padding: 35px 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 24px rgba(255, 167, 38, 0.18),
        0 4px 10px rgba(0,0,0,0.05),
        inset 0 2px 8px rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255, 167, 38, 0.15);
}

.share-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 18px;
    animation: catBreathe 3s ease-in-out infinite;
}

.share-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--sunny-orange);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.share-desc {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

.share-card {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 
        0 8px 24px rgba(255, 167, 38, 0.18),
        0 4px 10px rgba(0,0,0,0.05),
        inset 0 2px 8px rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255, 167, 38, 0.15);
}

.share-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.share-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-method {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid var(--border-warm);
    box-shadow: 0 4px 10px rgba(255, 167, 38, 0.08);
}

.share-method:hover {
    transform: translateY(-3px);
    border-color: var(--sunny-orange);
    box-shadow: 
        0 8px 20px rgba(255, 167, 38, 0.2),
        inset 0 2px 6px rgba(255,255,255,0.6);
}

.share-method-icon {
    font-size: 36px;
    margin-right: 16px;
}

.share-method-info {
    flex: 1;
}

.share-method-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.share-method-desc {
    font-size: 12px;
    color: var(--text-light);
}

.share-method-action {
    font-size: 22px;
    color: var(--sunny-orange);
}

.share-qr {
    text-align: center;
    padding: 25px;
    background: linear-gradient(180deg, rgba(255, 167, 38, 0.05) 0%, rgba(255, 167, 38, 0.08) 100%);
    border-radius: 18px;
    margin-top: 18px;
    border: 1.5px dashed rgba(255, 167, 38, 0.3);
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    margin: 0 auto 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--sunny-orange);
    box-shadow: 
        0 8px 24px rgba(255, 167, 38, 0.25),
        inset 0 2px 8px rgba(255,255,255,0.8);
}

.qr-logo {
    width: 90px;
    height: 90px;
}

.share-url {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13px;
    color: var(--text-medium);
    word-break: break-all;
    margin-top: 12px;
    border: 1.5px solid var(--border-warm);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}

.copy-btn {
    background: linear-gradient(135deg, var(--sunny-orange-light), var(--sunny-orange));
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    box-shadow: 
        0 8px 24px rgba(255, 167, 38, 0.4),
        inset 0 2px 6px rgba(255,255,255,0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
}

.copy-btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 14px 38px rgba(255, 167, 38, 0.5),
        inset 0 2px 6px rgba(255,255,255,0.5);
}

.share-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.feature-item {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--cream-white) 100%);
    padding: 18px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 
        0 6px 18px rgba(255, 167, 38, 0.15),
        0 3px 8px rgba(0,0,0,0.04),
        inset 0 2px 6px rgba(255,255,255,0.8);
    border: 1.5px solid var(--border-warm);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 28px rgba(255, 167, 38, 0.25),
        0 6px 16px rgba(0,0,0,0.08),
        inset 0 2px 6px rgba(255,255,255,0.9);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 600;
}

/* ========== iPhone 17 Pro Max 大屏适配（430px+） ========== */
@media (min-width: 430px) {
    .app-container {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .header {
        padding: 50px 30px 40px;
        border-radius: 0 0 35px 35px;
    }
    
    .pet-avatar {
        width: 110px;
        height: 110px;
    }
    
    .feature-grid {
        gap: 18px;
        padding: 18px;
    }
    
    .feature-card {
        padding: 26px 20px;
        margin: 0;
    }
    
    .feature-icon {
        width: 86px;
        height: 86px;
        line-height: 86px;
        font-size: 42px;
    }
    
    /* 聊天页面大屏适配 */
    .chat-header {
        padding: 50px 30px 40px;
        border-radius: 0 0 30px 30px;
    }
    
    .chat-input-area {
        padding: 15px 20px;
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
    }
    
    .message-input {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .send-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .message-content {
        max-width: 70%;
        padding: 16px 18px;
    }
    
    .message-avatar {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }
    
    /* 导航栏大屏适配 */
    .bottom-nav {
        height: 68px;
        padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    }
    
    .nav-item {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF9F0 100%);
}

.upload-area:hover {
    border-color: #FF9F43;
    background: rgba(255, 167, 38, 0.05);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-area p {
    color: #666;
    font-size: 14px;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 167, 38, 0.2);
}

.photo-analysis {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid rgba(255, 179, 71, 0.2);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.analysis-icon {
    font-size: 24px;
}

.analysis-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFB347;
}

.analysis-content {
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}

/* ========== 突出显示功能（问诊） ========== */
.featured-card {
    grid-column: span 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 249, 240, 0.85) 100%);
    border: 1.5px solid rgba(255, 167, 38, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 24px rgba(255, 167, 38, 0.18),
        0 4px 10px rgba(0,0,0,0.05),
        inset 0 2px 8px rgba(255,255,255,0.9);

    padding: 0;
}

.nav-item.publish-btn .nav-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFB347, #FF9F43);
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.nav-item.active {
    color: #FF9F43;
}

.nav-item.publish-btn {
    padding: 0;
}

.nav-item.publish-btn .nav-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFB347, #FF9F43);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0;
}
/* 强制更新：20260317073214 */
/* Force update 1773704005 */
/* Mobile fix 1773704044 */
/* Safari fix 1773704227 */

/* Safari 强制刷新标记：20260317073800 */
/* Safari 修复 */
/* Debug visual 1773704396 */
/* !important fix 1773704990 */
/* Stable fix 1773705316 */
