:root {
    --primary-color: #99cfa9;
    --text-color: #333;
    --text-light: #666;
    --text-white: #fff;
    --background-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --base-size: 0.875rem;
    --product-list-color: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    font-size: var(--base-size);
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

.header {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 1.125rem;
    text-align: center;
}

.header h1 {
    font-size: 1.125rem;
    font-weight: normal;
    letter-spacing: 0.0625rem;
}

.service-section {
    background-color: var(--white);
    margin: 0.625rem;
    padding: 0.625rem;
    display: flex;
    gap: 0.9375rem;
}

.service-image-wrapper {
    flex-shrink: 0;
    width: 12rem;
    height: 10rem;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--product-list-color);
    border-bottom: var(--white);
}

.service-header {
    display: flex;
    background-color: var(--product-list-color);
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 0.0625rem solid var(--white);
    height: 1.8rem;
    line-height: 1.8rem;
}

.service-header .service-label:first-child {
    width: 60%;
    display: block;
    text-align: center;
}

.service-header .service-label:last-child {
    width: 40%;
    text-align: center;
    display: block;
}

.service-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    position: relative;
    border-bottom: 0.0625rem solid var(--white);
    height: 1.8rem;
    line-height: 1.8rem;
}

.service-item:last-child {
    text-align: left;
}

.service-item.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.service-item.active {
    border-bottom-color: var(--primary-color);
}

.service-item.active + .service-item {
    border-top: 0.0625rem solid var(--primary-color);
}

.service-item input[type="radio"] {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.5rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 0.125rem solid #ddd;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.service-item.active input[type="radio"] {
    border-color: var(--text-white);
}

.service-item input[type="radio"]:checked {
    border-color: var(--primary-color);
}

.service-item.active input[type="radio"]:checked {
    border-color: var(--text-white);
}

.service-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.4375rem;
    height: 0.4375rem;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.service-item.active input[type="radio"]:checked::after {
    background-color: var(--text-white);
}

.service-item label {
    width: 60%;
    display: block;
    text-align: center;
    border-right: 0.0625rem solid var(--white);
}

.service-item.active label {
    color: var(--text-white);
}

.service-price {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--primary-color);
    width: 40%;
    text-align: center;
    display: block;
}

.service-item.active .service-price {
    color: var(--text-white);    
}

.nav-tabs {
    display: flex;
    background-color: var(--white);
    margin: 0.625rem;
    padding: 0.25rem;
    border-radius: 0.375rem;
}

.nav-tab {
    flex: 1;
    padding: 0.75rem 0.3125rem;
    text-align: center;
    font-size: var(--base-size);
    color: var(--text-light);
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.2s;
    font-weight: 600;
}

.nav-tab.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.tab-content {
    background-color: var(--white);
    margin: 0.625rem;
    padding: 0.9375rem;
    min-height: 12.5rem;
}

.tab-content h3 {
    font-size: var(--base-size);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 0.0625rem solid #f0f0f0;
}

.tab-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.625rem;
}

.tab-content ul {
    /* padding-left: 0.9375rem; */
}

.tab-content li {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 2;
    list-style: none;
}

@media (min-width: 48rem) {
    body {
        max-width: 30rem;
        margin: 0 auto;
        box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);
    }

    .footer {
        max-width: 30rem;
        margin: 0 auto;
        left: auto;
    }
}