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

body {
    min-height: 100vh;
    background: linear-gradient(45deg, #4158d0, #c850c0, #ffcc70);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.wrapper img{
    width: 60px;
    height: 60px;
}
h1 {
    color: #2f435e;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

#ikstar{
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.1rem;
    font-size: 1.2em;
}

#ikstar span{
    color: #CB0000;
}

#ikstar a{
    padding: 10px 30px;
    background: #4158d0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    width: 40%;
    margin: 0.5rem auto;
}

.bmi-main-row {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    align-items: stretch;
}

.bmi-calc-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bmi-calc-column .input-data {
    margin-bottom: 20px;
}

.bmi-calc-column .result {
    flex: 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bmi-info-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.input-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 10px 0;
}

.input-data .height,
.input-data .weight {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.input-data label {
    width: 100px;
    text-align: right;
    font-weight: 700;
    font-size: 1.05em;
    color: #37474f;
    letter-spacing: 0.5px;
}

.input-data input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1.15em;
    font-weight: 600;
    color: #2f435e;
    background: linear-gradient(135deg, #f8f9ff, #fdf3fd);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05), 0 3px 10px rgba(65,88,208,0.08);
    transition: all 0.35s ease;
    outline: none;
    letter-spacing: 0.5px;
}

.input-data input:focus {
    border-color: #c850c0;
    background: linear-gradient(135deg, #ffffff, #fff8fe);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05), 0 0 0 4px rgba(200,80,192,0.12), 0 6px 20px rgba(65,88,208,0.18);
    transform: translateY(-1px);
}

.input-data input:hover:not(:focus) {
    border-color: #b0b0d0;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.05), 0 4px 14px rgba(65,88,208,0.12);
}

.input-data input::placeholder {
    color: #bbb;
    font-weight: 400;
    font-size: 0.9em;
}

.input-data input::-webkit-inner-spin-button,
.input-data input::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

.input-data button {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #4158d0, #c850c0);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 800;
    font-size: 1.25em;
    letter-spacing: 2px;
    box-shadow: 0 6px 20px rgba(65, 88, 208, 0.4);
    position: relative;
    overflow: hidden;
}

.input-data button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

.input-data button:hover::after {
    left: 100%;
}

.input-data button:hover {
    background: linear-gradient(135deg, #344abd, #b044a8);
    box-shadow: 0 8px 30px rgba(65, 88, 208, 0.55);
    transform: translateY(-2px);
}

.input-data button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(65, 88, 208, 0.3);
}

.result {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 20px;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4158d0, #c850c0, #ffcc70);
}

.bmi-value {
    margin-bottom: 18px;
}

.bmi-label {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bmi-number {
    font-size: 3em;
    font-weight: 800;
    background: linear-gradient(135deg, #4158d0, #c850c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.bmi-unit {
    font-size: 0.35em;
    font-weight: 500;
    -webkit-text-fill-color: #aaa;
    color: #aaa;
    margin-left: 2px;
}

.status {
    margin: 15px 0 10px;
}

.status-label {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-badge {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.35em;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 8px currentColor;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
    50% { transform: scale(1.04); box-shadow: 0 6px 25px rgba(0,0,0,0.25); }
}

.status-badge.underweight {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.status-badge.underweight::before {
    background: #ffcc80;
}

.status-badge.normal {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.status-badge.normal::before {
    background: #a5d6a7;
}

.status-badge.overweight {
    background: linear-gradient(135deg, #ff9800, #ef6c00);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.status-badge.overweight::before {
    background: #ffe0b2;
}

.status-badge.obese {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.status-badge.obese::before {
    background: #ef9a9a;
}

.ad{
    cursor: pointer;
    margin: 0 auto;
}

.ad img{
    width: 100%;
}

.copy-notice {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #4158d0;
            color: white;
            padding: 10px 20px;
            border-radius: 4px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 1000;
        }
        
        .copy-notice.show {
            opacity: 1;
        }

.bmi, .status {
    margin-bottom: 10px;
}

.personal-advice {
    margin-top: 20px;
    padding: 18px;
    background: #f8f9fa;
    border-left: 4px solid #4158d0;
    border-radius: 0 10px 10px 0;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.personal-advice h4 {
    color: #4158d0;
    margin-bottom: 12px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.personal-advice p {
    margin: 8px 0;
    color: #555;
    line-height: 1.7;
    font-size: 0.9em;
    padding-left: 8px;
    border-left: 2px solid transparent;
    transition: border-color 0.2s;
}

.personal-advice img{
    width: 75%;
}
.personal-advice button {
    padding: 10px 30px;
    background: #4158d0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    font-size: 1.2em;
}

.bmi-intro, 
.bmi-rule, 
.bmi-standard, 
.health-advice, 
.exercise-advice {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ===== BMI 计算公式 ===== */
.bmi-rule {
    position: relative;
}

.bmi-rule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #4158d0, #c850c0);
    border-radius: 4px 0 0 4px;
}

.bmi-rule h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15em;
    color: #2f435e;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.bmi-rule h3::before {
    content: '📐';
    font-size: 1.1em;
}

.bmi-rule .formula-highlight {
    display: block;
    text-align: center;
    padding: 14px 20px;
    margin: 12px 0;
    background: linear-gradient(135deg, rgba(65,88,208,0.08), rgba(200,80,192,0.08));
    border: 1px dashed #c850c0;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: 700;
    color: #4158d0;
    letter-spacing: 0.5px;
}

.bmi-rule p {
    color: #666;
    line-height: 1.7;
    font-size: 0.92em;
    margin: 8px 0;
}

.bmi-rule p:last-child {
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.88em;
    color: #777;
    font-style: italic;
}

.bmi-info-column .bmi-rule,
.bmi-info-column .bmi-standard {
    margin: 10px 0;
}

.ad-in-rule {
    margin-top: 15px;
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.ad-divider {
    width: 60%;
    height: 1px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, transparent, #c850c0, transparent);
}

.ad-intro {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.ad-intro p {
    margin: 4px 0;
}

.ad-title {
    font-size: 0.92em;
    font-weight: 700;
    color: #4158d0;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.ad-in-rule p {
    cursor: pointer;
    margin: 0;
    transition: transform 0.3s ease;
}

.ad-in-rule img {
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* 右侧两卡片内均匀分布 */
.bmi-info-column .bmi-standard {
    flex: 1;
}

/* ===== 数据来源与验证 ===== */
.bmi-source {
    margin: 20px 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.bmi-source::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #4158d0, #c850c0);
    border-radius: 4px 0 0 4px;
}

.bmi-source h3 {
    font-size: 1.15em;
    color: #2f435e;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.bmi-source ol {
    padding-left: 22px;
    margin: 12px 0;
    color: #555;
    line-height: 2;
    font-size: 0.92em;
}

.bmi-source ol li {
    padding-left: 4px;
    margin: 2px 0;
    transition: color 0.2s;
}

.bmi-source ol li:hover {
    color: #4158d0;
}

.bmi-source .privacy-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0f4ff, #fdf0fd);
    border-radius: 8px;
    font-size: 0.88em;
    color: #666;
    font-style: italic;
    border-left: 3px solid #c850c0;
    line-height: 1.7;
}

/* ===== BMI常见问答 ===== */
.bmi-faq {
    margin: 20px 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.bmi-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ffcc70, #c850c0);
    border-radius: 4px 0 0 4px;
}

.bmi-faq h3 {
    font-size: 1.15em;
    color: #2f435e;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.faq-item:hover {
    border-color: #d0c8f0;
    box-shadow: 0 2px 8px rgba(65,88,208,0.08);
}

.faq-item[open] {
    border-color: #c850c0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(200,80,192,0.12);
}

.faq-item summary {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 0.98em;
    color: #37474f;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3em;
    font-weight: 400;
    color: #c850c0;
    transition: transform 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item summary:hover {
    color: #4158d0;
}

.faq-item[open] summary {
    color: #c850c0;
    border-bottom: 1px solid #f0e8f8;
}

.faq-item p {
    padding: 14px 20px;
    line-height: 1.8;
    color: #555;
    font-size: 0.9em;
    animation: faqSlideIn 0.3s ease;
}

.faq-item p strong {
    color: #4158d0;
}

@keyframes faqSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bmi-intro a{
    text-decoration: none;
    color: #333;
    margin-right: 1rem;
}

.bmi-intro a:hover{
    cursor: pointer;
}

.bmi-table {
    padding: 0;
    margin: 15px 0;
    list-style: none;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.bmi-table li {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    padding: 11px 14px;
    transition: all 0.25s ease;
    position: relative;
}

.bmi-table li:not(.table-header) {
    cursor: default;
    border-left: 3px solid transparent;
}

.bmi-table li:not(.table-header):hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bmi-table li:not(.table-header):nth-child(2) {
    background: #fff8e1;
    border-left-color: #ff9800;
}

.bmi-table li:not(.table-header):nth-child(2):hover {
    background: #fff3e0;
}

.bmi-table li:not(.table-header):nth-child(3) {
    background: #f1f8e9;
    border-left-color: #4caf50;
}

.bmi-table li:not(.table-header):nth-child(3):hover {
    background: #e8f5e9;
}

.bmi-table li:not(.table-header):nth-child(4) {
    background: #fff8e1;
    border-left-color: #ff9800;
}

.bmi-table li:not(.table-header):nth-child(4):hover {
    background: #fff3e0;
}

.bmi-table li:not(.table-header):nth-child(5) {
    background: #ffebee;
    border-left-color: #f44336;
}

.bmi-table li:not(.table-header):nth-child(5):hover {
    background: #ffcdd2;
}

.bmi-table li span:first-child {
    font-weight: 600;
    color: #4158d0;
}

.bmi-table li:not(.table-header) span:nth-child(2) {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bmi-table .table-header {
    background: linear-gradient(135deg, #4158d0, #5a6fd6);
    color: white;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 1px;
    padding: 13px 14px;
}

.bmi-table .table-header span {
    color: #fff;
    font-weight: 700;
}

.bmi-standard h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.bmi-standard h3::before {
    content: '📊';
    font-size: 1.1em;
}

/* ===== BMI重要提示列表 ===== */
.bmi-important-tips {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.bmi-important-tips li {
    position: relative;
    padding: 10px 14px 10px 30px;
    margin: 6px 0;
    font-size: 0.88em;
    color: #555;
    line-height: 1.7;
    background: #fffbf0;
    border-left: 3px solid #ff9800;
    border-radius: 0 8px 8px 0;
    transition: all 0.25s ease;
}

.bmi-important-tips li::before {
    content: '⚠';
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 0.85em;
}

.bmi-important-tips li:hover {
    background: #fff8e1;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(255,152,0,0.12);
}

.bmi-important-tips li strong {
    color: #e65100;
}

.bmi-standard:last-child h3::before {
    content: '⚠';
}

.advice-section {
    margin: 15px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.advice-section h4 {
    color: #4158d0;
    margin-bottom: 10px;
}

.advice-section p {
    margin: 8px 0;
    line-height: 1.6;
}

/* ===== 健康建议选项卡 ===== */
.advice-tabs {
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.advice-tab-btns {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #eee;
}

.advice-tab-btn {
    flex: 1;
    padding: 14px 8px;
    border: none;
    background: transparent;
    color: #888;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
}

.advice-tab-btn:hover {
    color: #555;
    background: rgba(0,0,0,0.03);
}

.advice-tab-btn.active {
    color: #4158d0;
    background: #fff;
}

.advice-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.advice-tab-btn[data-tab="advice-underweight"].active::after {
    background: #ff9800;
}
.advice-tab-btn[data-tab="advice-underweight"].active {
    color: #ff9800;
}

.advice-tab-btn[data-tab="advice-normal"].active::after {
    background: #4caf50;
}
.advice-tab-btn[data-tab="advice-normal"].active {
    color: #4caf50;
}

.advice-tab-btn[data-tab="advice-overweight"].active::after {
    background: #ff9800;
}
.advice-tab-btn[data-tab="advice-overweight"].active {
    color: #ff9800;
}

.advice-tab-btn[data-tab="advice-obese"].active::after {
    background: #f44336;
}
.advice-tab-btn[data-tab="advice-obese"].active {
    color: #f44336;
}

/* ===== 健康建议面板 ===== */
.advice-combined {
    margin: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 12px 12px;
    box-shadow: none;
    animation: fadeInUp 0.4s ease;
}

.advice-combined h3 {
    text-align: center;
    font-size: 1.2em;
    color: #2f435e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.advice-columns {
    display: flex;
    gap: 20px;
}

.advice-col {
    flex: 1;
    min-width: 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid #4158d0;
    transition: box-shadow 0.3s;
}

.advice-col:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.advice-col h4 {
    color: #4158d0;
    margin-bottom: 12px;
    font-size: 1.05em;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
}

.advice-col p {
    margin: 7px 0;
    line-height: 1.6;
    font-size: 0.88em;
    color: #555;
    padding-left: 4px;
}

h3 {
    color: #2f435e;
    margin: 15px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #4158d0;
}

.slider-container {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            cursor: pointer;
        }
        
        .slider {
            display: flex;
            width: 300%;
            transition: transform 0.5s ease-in-out;
        }
        
        .slide {
            width: 33.333%;
            height: 100%;
        }
        
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
        }
        
        .control-btn {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.5);
            border: none;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        
        .control-btn.active {
            background-color: white;
        }
        
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            background-color: rgba(0, 0, 0, 0.3);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s;
        }
        
        .nav-btn:hover {
            background-color: rgba(0, 0, 0, 0.6);
        }
        
        #prev {
            left: 20px;
        }
        
        #next {
            right: 20px;
        }
        
        .tab-container {
            max-width: 1200px;
            margin: 0px auto;
        }
        .tab-buttons {
            display: flex;
        }
        .tab-btn {
            color: #4158d0;
            font-size: 1em;
            flex: 1;
            padding: 10px;
            background: #ffffff;
            border: none;
            cursor: pointer;
            transition: background 0.3s;
            font-weight: bold;
        }
        .tab-btn.active {
            background: #4158d0;
            font-weight: bold;
            color: #ffffff;
        }
        .tab-content {
            position: relative;
            height: 150px;
        }
        .tab-panel {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 1;
        }
        .tab-panel.active {
            z-index: 2;
            opacity: 1;
        }
        .tab-panel img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

/* ===== 右侧悬浮图片（仅PC端可见） ===== */
.floating-side-img {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 250px;
    height: 350px;
    background: url('xoell.png') no-repeat center center / cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    animation: floatAnim 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-side-img:hover {
    transform: translateY(-50%) scale(1.05);
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(-50%) translateY(0); }
    50% { transform: translateY(-50%) translateY(-10px); }
}

/* 移动端隐藏 */
@media screen and (max-width: 768px) {
    .floating-side-img {
        display: none !important;
    }
}

@media screen and (max-width: 980px) {
    .tab-content{
        height: 71px;
    }
    .copy-notice{
        width: 55%;
    }
}

@media screen and (max-width: 768px) {
    .bmi-main-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .bmi-calc-column,
    .bmi-info-column {
        flex: auto;
    }

    .bmi-calc-column .result {
        flex: auto;
    }

    .bmi-info-column .bmi-rule,
    .bmi-info-column .bmi-standard {
        flex: auto;
    }

    .advice-columns {
        flex-direction: column;
    }
}

@media screen and (max-width: 600px) {
    .bmi-main-row {
        flex-direction: column;
    }

    .bmi-table li {
        font-size: 14px;
    }

    .input-data .height,
    .input-data .weight {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-data label {
        width: 100%;
        text-align: left;
    }

    .input-data input {
        width: 100%;
    }
}