/* 宠物AI健康管家 - 产品展示页样式 */

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #22c55e;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* 顶部导航 */
.navbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 24px;
}

.nav-brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    margin-bottom: 16px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-tags span {
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
}

/* 内容区 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 板块标题 */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 宠物档案卡 */
.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 20px;
    font-weight: 700;
}

.profile-info .meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.health-score {
    margin-left: auto;
    text-align: center;
}

.health-score .score {
    font-size: 32px;
    font-weight: 800;
}

.health-score .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.score-good { color: var(--success); }
.score-warn { color: var(--accent); }
.score-bad { color: var(--danger); }

/* 场景对比卡 */
.scenario-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.scenario-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border-top: 4px solid;
}

.scenario-good { border-color: var(--success); }
.scenario-bad { border-color: var(--danger); }

.scenario-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.metric-row:last-child { border-bottom: none; }

.metric-label { color: var(--text-secondary); }
.metric-value { font-weight: 600; }

/* 预警列表 */
.alerts-list {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 32px;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

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

.alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.alert-critical .alert-icon { background: #fef2f2; }
.alert-warning .alert-icon { background: #fffbeb; }

.alert-content {
    flex: 1;
}

.alert-content .time {
    font-size: 12px;
    color: var(--text-secondary);
}

.alert-content .msg {
    font-size: 14px;
    font-weight: 500;
}

.alert-badge {
    font-size: 12px;
    border-radius: 12px;
    padding: 2px 10px;
}

.badge-critical {
    background: #fef2f2;
    color: var(--danger);
}

.badge-warning {
    background: #fffbeb;
    color: var(--accent);
}

/* 心率曲线模拟 */
.chart-placeholder {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 32px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.chart-visual {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.chart-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    margin: 0 1px;
    min-height: 4px;
    transition: height 0.3s;
    opacity: 0.7;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* 功能流程 */
.feature-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.step-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 12px;
}

.step-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cta-section h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.cta-btn:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

/* 响应式 */
@media (max-width: 768px) {
    .scenario-grid { grid-template-columns: 1fr; }
    .feature-steps { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .profile-card { flex-wrap: wrap; }
    .health-score { margin-left: 0; width: 100%; }
}
