* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC","Microsoft YaHei",sans-serif;
}
body {
    background: #fff9f5;
    color: #444;
    padding: 20px 12px;
}
.wrap {
    max-width: 740px;
    margin: 0 auto;
}

.header,
.pet-select-box,
.question-box,
.result-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 34px 24px;
    margin-bottom: 22px;
}

h1 {
    color: #f2a4b6;
    text-align: center;
    margin-bottom: 8px;
}
.subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 24px;
}

.ad-bilibili {
    text-align: center;
    margin-bottom: 24px;
}
.ad-bilibili a {
    background: #a8e6cf;
    color: #2d6a4f;
    padding: 10px 20px;
    border-radius: 16px;
    text-decoration: none;
    display: inline-block;
}

.start-btn {
    display: block;
    width: 180px;
    margin: 0 auto;
    padding: 14px 0;
    background: #ffe066;
    color: #7d5d2b;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}
.start-btn:hover {
    transform: translateY(-3px);
    background: #ffd54f;
}

.pet-select-card {
    text-align: center;
}
.select-title {
    margin-bottom: 26px;
}
.pet-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.pet-btn {
    padding: 16px 30px;
    background: #fdf1f3;
    color: #e47a93;
    border: 2px solid #f8ccd7;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.25s;
}
.pet-btn:hover {
    background: #f2a4b6;
    color: #fff;
    transform: translateY(-3px);
}

.num {
    color: #aaa;
    font-size: 14px;
}
.title {
    font-size: 20px;
    margin: 10px 0 24px 0;
    text-align: center;
}
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.options button {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 16px;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}
.options button:hover {
    background: #d1fae5;
    color: #065f46;
    transform: translateX(4px);
}

/* 分享保存按钮条 */
.share-save-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.action-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
.action-btn.dy {
    background: #fe2c55;
}
.action-btn.pyq {
    background: #07c160;
}
.action-btn.save {
    background: #74b9ff;
}

.result-top-card {
    text-align: center;
    margin-bottom: 26px;
}
.result-code {
    font-size: 18px;
    color: #f2a4b6;
    font-weight: bold;
    margin: 8px 0;
}
.result-cat-img {
    max-width: 180px;
    border-radius: 20px;
    margin: 10px auto;
    display: block;
}
.result-slogan {
    color: #888;
    font-style: italic;
}

.result-type-card,
.result-score-card,
.result-desc-card {
    background: #fdf6f8;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
}

.type-name {
    color: #e47a93;
    font-size: 20px;
    margin: 6px 0;
}
.match-tag {
    background: #a8e6cf;
    color: #2d6a4f;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    font-size: 14px;
}

.score-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.score-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.score-name {
    width: 90px;
}
.score-bar {
    flex: 1;
    height: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}
.score-progress {
    height: 100%;
    background: linear-gradient(to right, #f8c8dc, #f2a4b6);
    border-radius: 10px;
    transition: width 1s ease;
}
.score-value {
    min-width: 40px;
    text-align: right;
    color: #777;
}

.restart-btn {
    width: 100%;
    padding: 16px;
    background: #f2a4b6;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s;
}
.restart-btn:hover {
    transform: translateY(-3px);
    background: #e47a93;
}

@media (max-width:600px) {
    .pet-btns {
        flex-direction: column;
    }
    .header,.result-box {
        padding: 26px 20px;
    }
}