:root { --primary-color: #0cab78; --primary-light: #e9f9f5; --primary-dark: #0a9e6d; --secondary-color: #ff6b6b; --accent-color: #5e8fff; --text-color: #333; --text-light: #666; --bg-color: #f8fafc; --card-bg: #ffffff; --shadow: 0 4px 12px rgba(0, 0, 0, 0.08); --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12); --radius: 12px; --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; } body { background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; padding-bottom: 70px; max-width: 480px; margin: 0 auto; position: relative; overflow-x: hidden; } /* 顶部导航栏 */ .app-header { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; padding: 15px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; } .app-header .logo { font-weight: bold; font-size: 18px; display: flex; align-items: center; gap: 8px; } .app-header .logo i { font-size: 20px; } .app-header .actions { display: flex; gap: 15px; } .app-header .actions i { font-size: 18px; transition: var(--transition); } .app-header .actions i:hover { transform: scale(1.1); } /* 搜索栏 */ .search-container { padding: 10px 15px; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; } .search-bar { display: flex; align-items: center; background: var(--primary-light); border-radius: 30px; padding: 0 15px; height: 44px; transition: var(--transition); } .search-bar:focus-within { box-shadow: 0 0 0 2px rgba(12, 171, 120, 0.3); } .search-bar input { flex: 1; background: transparent; border: none; outline: none; font-size: 15px; padding: 0 10px; height: 100%; } .search-bar .search-btn { background: none; border: none; color: var(--primary-color); cursor: pointer; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); } .search-bar .search-btn:hover { background: rgba(12, 171, 120, 0.1); } /* 宠物动画装饰 */ .pet-animation { position: absolute; top: -20px; right: 10px; z-index: 1; font-size: 50px; color: var(--primary-color); opacity: 0.15; animation: float 6s ease-in-out infinite; } @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } } /* 功能卡片区域 */ .functions-section { padding: 15px; position: relative; overflow: hidden; } .section-title { font-size: 18px; font-weight: bold; margin-bottom: 15px; display: flex; align-items: center; position: relative; z-index: 2; } .section-title i { margin-right: 8px; color: var(--primary-color); } .function-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; position: relative; z-index: 2; } .function-card { background: white; border-radius: var(--radius); padding: 20px 10px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; position: relative; overflow: hidden; border: 1px solid rgba(12, 171, 120, 0.1); } .function-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); } .function-card i { font-size: 32px; color: var(--primary-color); margin-bottom: 10px; transition: var(--transition); } .function-card:hover i { transform: scale(1.1); color: var(--primary-dark); } .function-card .title { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text-color); } .function-card .desc { font-size: 12px; color: var(--text-light); line-height: 1.4; } .function-card::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; } .function-card:hover::after { transform: scaleX(1); } .pet-decoration { position: absolute; font-size: 120px; color: rgba(12, 171, 120, 0.05); z-index: 1; bottom: -20px; right: -20px; } /* 服务优势 */ .advantages-section { padding: 0 15px 15px; } .advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .advantage-card { background: white; border-radius: 10px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(0, 0, 0, 0.03); } .advantage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } .advantage-icon { width: 36px; height: 36px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; } .advantage-icon i { color: var(--primary-color); font-size: 16px; } .advantage-text { font-size: 12px; font-weight: 500; line-height: 1.3; } /* 医生推荐 */ .doctors-section { padding: 15px; } .doctor-card { background: white; border-radius: var(--radius); padding: 15px; margin-bottom: 15px; box-shadow: var(--shadow); transition: var(--transition); } .doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } .doctor-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; } .doctor-name { font-size: 16px; font-weight: bold; color: var(--primary-color); } .doctor-exp { font-size: 13px; color: var(--text-light); } .doctor-details { margin-bottom: 15px; } .doctor-details p { font-size: 13px; margin: 5px 0; color: var(--text-light); } .doctor-stats { display: flex; justify-content: space-between; margin-top: 10px; } .stat-item { text-align: center; flex: 1; } .stat-value { font-weight: bold; color: var(--primary-color); } .stat-label { font-size: 12px; color: var(--text-light); } .consult-btn { display: block; width: 100%; padding: 12px; background: linear-gradient(to right, var(--primary-color), var(--primary-dark)); color: white; border: none; border-radius: 30px; font-weight: 500; cursor: pointer; transition: var(--transition); box-shadow: 0 4px 10px rgba(12, 171, 120, 0.3); margin-top: 10px; } .consult-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(12, 171, 120, 0.4); } /* 底部导航 */ .bottom-nav { display: flex; justify-content: space-around; padding: 12px 0; background-color: var(--card-bg); box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1); position: fixed; bottom: 0; width: 100%; max-width: 480px; z-index: 100; } .nav-item { text-align: center; cursor: pointer; flex: 1; padding: 5px 0; transition: var(--transition); color: var(--text-light); font-weight: 500; font-size: 12px; position: relative; } .nav-item.active { color: var(--primary-color); } .nav-item i { display: block; font-size: 20px; margin-bottom: 3px; transition: var(--transition); } .nav-item.active i { transform: translateY(-5px); } .nav-item::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--primary-color); border-radius: 3px; transition: var(--transition); } .nav-item.active::after { width: 24px; } /* 右下角倒计时气泡 */ .countdown-bubble { position: fixed; bottom: 70px; right: 15px; width: 48px; height: 48px; background-color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 18px; box-shadow: 0 6px 20px rgba(12, 171, 120, 0.4); cursor: pointer; z-index: 100; transition: var(--transition); animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } } /* 跳转提示弹窗 */ .jump-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s; } .jump-modal.active { opacity: 1; visibility: visible; } .jump-modal-content { background-color: white; border-radius: var(--radius); padding: 25px; width: 85%; max-width: 400px; text-align: center; transform: translateY(20px); transition: all 0.3s; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); } .jump-modal.active .jump-modal-content { transform: translateY(0); } .jump-modal-icon { font-size: 42px; color: var(--primary-color); margin-bottom: 15px; } .jump-modal-title { font-size: 20px; margin-bottom: 12px; color: var(--text-color); } .jump-modal-text { font-size: 15px; color: var(--text-light); margin-bottom: 20px; line-height: 1.6; } .jump-modal-btn { display: inline-block; padding: 10px 25px; background: linear-gradient(to right, var(--primary-color), var(--primary-dark)); color: white; border-radius: 30px; text-decoration: none; cursor: pointer; font-weight: 500; box-shadow: 0 4px 15px rgba(12, 171, 120, 0.4); transition: var(--transition); border: none; font-size: 15px; } .jump-modal-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(12, 171, 120, 0.6); } .jump-modal-btn.secondary { background: #f1f1f1; color: var(--text-light); box-shadow: none; margin-left: 10px; } /* 响应式调整 */ @media (max-width: 380px) { .function-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .function-card { padding: 15px 5px; } .function-card i { font-size: 28px; } .function-card .title { font-size: 14px; } .advantages-grid { grid-template-columns: repeat(2, 1fr); } .advantage-card { padding: 10px 5px; } }

健康服务

问医生
执业兽医在线解答
症状自测
快速了解宠物状况
复诊续方
便捷续方开药
养宠百科
科学养宠知识
宠物急诊
24小时紧急救助
用药指导
专业用药建议

服务优势

执业兽医
24小时服务
未接诊退款
AI辅助

推荐医师

李医生
从业8年

专长领域:狗狗专家、猫科、异宠

执业编号:A012*****0081

擅长:老年病、皮肤病、牙科、犬猫普外科

99.2%
好评率
8,562
接诊次数
张医生
从业6年

专长领域:猫科、急诊科

执业编号:B034*****0095

擅长:内科、传染病、急诊处理

98.7%
好评率
7,231
接诊次数
5

体验完整功能

宠趣源小程序提供更完整的宠物医疗服务,是否立即跳转?