/* ===== 宠物年龄换算 — 马卡龙暖色系 (与 pet-personality 一致) ===== */

html, body { background: #f5f5f5; }
.tab-bar { position: relative; top: auto; left: auto; right: auto; display: flex; align-items: center; }
.tab-bar .tab-btn.active::after { background: rgb(92, 187, 235); opacity: 0.75; }
.tab-back {
    position: absolute; left: 0.16rem; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: #666;
    padding: 0.16rem 0.1rem; cursor: pointer; line-height: 1;
    display: flex; align-items: center; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.tab-back svg { width: 0.52rem; height: 0.52rem; }
body {
    margin: 0;
    padding-bottom: 0.5rem; box-sizing: border-box;
}
#scroll-root {
    display: block;
    overflow-y: visible; background: #f5f5f5;
    padding-bottom: 0; height: auto;
}
#scroll-root::-webkit-scrollbar { display: none; }
.container {
    max-width: 23.52rem; width: 100%; margin: 0 auto;
    padding: 0.21rem 0.42rem 1.2rem 0.42rem; box-sizing: border-box;
}

.card {
    background: #fff; border-radius: 0.47rem;
    padding: 0.31rem; margin-bottom: 0.42rem;
}

/* 简介卡片 */
.intro-card {
    display: flex; align-items: center; gap: 0.31rem;
    background: linear-gradient(135deg, #E6F5FC, #EEF8FD);
    border: 0.02rem solid #BFE3F5;
    border-radius: 0.47rem; padding: 0.31rem;
}
.intro-text h2 { margin: 0 0 0.1rem; font-size: 0.42rem; color: #2E86C4; }
.intro-text p { margin: 0; font-size: 0.29rem; color: #666; line-height: 1.6; }
.intro-disclaimer { margin-top: 0.16rem !important; font-size: 0.28rem !important; color: #9E9E9E !important; }
.intro-text .intro-brand { margin: 0.31rem 0 0; font-size: 0.28rem; color: #2E86C4; text-align: right; }

/* 宠物类型切换 (同 pet-personality) */
.pet-type-tabs {
    display: flex; gap: 0.16rem; overflow-x: auto;
    padding: 0.08rem 0; scrollbar-width: none;
}
.pet-type-tabs::-webkit-scrollbar { display: none; }
.pet-type-tab {
    flex: 1 1 0; cursor: pointer; padding: 0.21rem 0.16rem;
    border-radius: 9999px; font-size: 0.34rem; color: #666;
    background: #f5f5f5; white-space: nowrap; text-align: center;
    border: none; font-family: inherit; min-width: 0;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.pet-type-tab.active {
    background: #5CBBEB;
    color: #fff; font-weight: 600;
    box-shadow: 0 0.08rem 0.21rem rgba(92,187,235,0.3);
}

/* 计算卡片 */
.calc-card { padding: 0.37rem 0.31rem; border-radius: 0.47rem; margin-bottom: 0.42rem; }

/* 表单项 */
.form-row { margin-bottom: 0.31rem; }
.form-label {
    display: block; font-size: 0.3rem; font-weight: 600;
    color: #555; margin-bottom: 0.14rem;
}

/* 体型/亚型选择 */
.size-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.12rem; }
.size-option {
    padding: 0.21rem 0.1rem; border-radius: 0.21rem;
    border: 0.02rem solid #e8e8e8; background: #fafafa;
    font-size: 0.32rem; font-family: inherit; cursor: pointer;
    text-align: center; line-height: 1.4; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent; color: #777;
}
.size-option span { font-size: 0.24rem; color: #aaa; display: block; }
.size-option.active {
    background: linear-gradient(135deg, #CDEBF9, #E1F3FC);
    border-color: #BFE3F5; color: #1E6FA8; font-weight: 600;
}
.size-option.active span { color: #5AA0C8; }

/* 异宠亚型 2列 */
.exotic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.12rem; }
.exotic-option {
    padding: 0.24rem 0.16rem; border-radius: 0.21rem;
    border: 0.02rem solid #e8e8e8; background: #fafafa;
    font-size: 0.32rem; font-family: inherit; cursor: pointer;
    text-align: center; line-height: 1.4; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent; color: #777;
}
.exotic-option span { font-size: 0.24rem; color: #aaa; display: block; }
.exotic-option.active {
    background: linear-gradient(135deg, #CDEBF9, #E1F3FC);
    border-color: #BFE3F5; color: #1E6FA8; font-weight: 600;
}
.exotic-option.active span { color: #5AA0C8; }

/* 年龄输入 */
.age-input-group {
    display: flex; align-items: center; justify-content: center; gap: 0.1rem;
}
.age-input {
    width: 1.5rem; padding: 0.26rem 0.21rem; border-radius: 9999px;
    border: 0.02rem solid #e0e0e0; background: #fafafa;
    font-size: 0.36rem; font-family: inherit; text-align: center;
    -webkit-appearance: none; outline: none; color: #333;
}
.age-input:focus { border-color: #BFE3F5; background: #fff; }
.age-unit {
    font-size: 0.3rem; color: #888; margin-right: 0.16rem;
}

/* 结果展示 */
.result-box {
    text-align: center; padding: 0.37rem 0.26rem; margin: 0.31rem 0 0.26rem;
    background: linear-gradient(135deg, #EEF8FD, #F5FBFE);
    border-radius: 0.31rem; border: 0.02rem solid #D6EDF9;
}
.result-big {
    font-size: 0.84rem; font-weight: 700; color: #2E86C4;
    line-height: 1.3;
}
.result-sub {
    font-size: 0.28rem; color: #999; margin-top: 0.08rem;
}
.result-life {
    margin-top: 0.16rem; font-size: 0.32rem; color: #3A9BDC; font-weight: 600;
}

/* 结果+截图提示 父级容器 */
.result-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
    margin: 0.31rem 0 0.26rem;
}
.result-wrapper .result-box {
    margin: 0;
}
.result-wrapper .share-hint {
    margin-top: 0;
}

/* 截图分享提示 */
.share-hint {
    margin-top: 0.26rem;
    padding: 0.26rem;
    background: linear-gradient(135deg, #E6F5FC, #D6EDF9);
    border: 0.02rem solid #5CBBEB;
    border-radius: 0.31rem;
    text-align: center;
    box-shadow: 0 0.02rem 0.1rem rgba(92,187,235,0.15);
}
.share-hint p {
    margin: 0;
    font-size: 0.28rem;
    color: #2E86C4;
    font-weight: 400;
}

/* 快速选择 */
.quick-ages {
    display: flex; flex-wrap: wrap; gap: 0.12rem;
}
.quick-age {
    padding: 0.16rem 0.26rem; border-radius: 999px;
    border: 0.02rem solid #e8e8e8; background: #fafafa;
    font-size: 0.28rem; font-family: inherit; cursor: pointer;
    color: #888; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.quick-age:active,
.quick-age.active { background: #E6F5FC; border-color: #BFE3F5; color: #2E86C4; }

/* 知识卡片 */
.knowledge-card { padding: 0.37rem 0.31rem; border-radius: 0.47rem; }
.card-title {
    font-size: 0.37rem; font-weight: 600; color: #333;
    margin-bottom: 0.16rem; display: flex; align-items: center; gap: 0.16rem;
}
.card-title::before {
    content: ''; width: 0.08rem; height: 0.37rem;
    background: #7FC9EE; border-radius: 0.04rem; display: inline-block;
}
.formula-text { font-size: 0.28rem; color: #666; line-height: 1.7; }
.formula-text p { margin: 0 0 0.16rem; }
.formula-text ul { margin: 0 0 0.16rem; padding-left: 0.37rem; }
.formula-text li { margin-bottom: 0.08rem; }
.formula-text strong { color: #2E86C4; }
