:lang(en) .love-type-guide-page .header h1 {
    font-size: clamp(2.3em, 4.5vw, 2.9em);
}
:lang(ja) .love-type-guide-page .header h1 {
    font-size: clamp(2.1em, 4.5vw, 2.7em);
}
:lang(zh-hans) .love-type-guide-page .header h1,
:lang(zh-hant) .love-type-guide-page .header h1 {
    font-size: clamp(2.2em, 4.5vw, 3em);
}

.love-type-guide-page .header p {
    font-size: clamp(0.9em, 2.5vw, 1.2em);
    text-wrap: balance;
}
:lang(ja) .love-type-guide-page .header p {
    font-size: clamp(0.85em, 3.5vw, 1.1em);
}
:lang(zh-hans) .love-type-guide-page .header p,
:lang(zh-hant) .love-type-guide-page .header p {
    font-size: clamp(0.9em, 3.5vw, 1.25em);
}

.theory-note {
    margin: 30px clamp(10px, 4vw, 40px);
    padding: clamp(15px, 2vw, 20px);
    font-size: clamp(0.87em, 1.5vw, 1.1em);
}
:lang(zh-hans) .theory-note,
:lang(zh-hant) .theory-note {
    font-size: clamp(0.86em, 1.5vw, 1.1em);
}


.theory-note h2 {
    font-size: clamp(1.5em, 2.5vw, 1.8em);
    color: var(--text-color);
    margin-bottom: 15px;
}
:lang(en) .theory-note h2 {
    font-size: clamp(1.6em, 3.5vw, 2em);
}
:lang(zh-hans) .theory-note h2,
:lang(zh-hant) .theory-note h2,
:lang(ja) .theory-note h2 {
    font-size: clamp(1.8em, 3.5vw, 2em);
}



.group-section {
    margin: clamp(30px, 4vw, 30px) clamp(10px, 2vw, 30px);
    margin-bottom: clamp(30px, 4vw, 40px);
    padding: clamp(15px, 3vw, 30px);
    background: var(--result-section-bg);
    border-radius: 15px;
    border-left: 5px solid;
}

.group-section h2 {
    font-size: clamp(1.3em, 3.5vw, 1.8em);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 700;
}
:lang(en) .group-section h2 {
    font-size: clamp(1.3em, 2.5vw, 1.8em);
}


.group-description {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
    line-height: 1.65;
    margin-bottom: clamp(10px, 2.5vw, 30px);
    opacity: 0.9;
}
:lang(ko) .group-description {
    font-size: clamp(0.85em, 1.8vw, 1.1em);
}


.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 20vw, 280px), 1fr));
    gap: clamp(10px, 2vw, 20px);
    margin: 25px 0;
    align-items: stretch;
}

.type-card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.type-title {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(107, 157, 255, 0.15));
    padding: clamp(10px, 2vw, 20px) clamp(5px, 1.5vw, 20px);
    font-size: clamp(0.9em, 1.8vw, 1.3em);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}
:lang(en) .type-title {
    font-size: clamp(0.8em, 1.8vw, 1.3em);
    letter-spacing: -0.3px;
}
:lang(ja) .type-title {
    font-size: clamp(0.9em, 1.8vw, 1.3em);
    text-wrap: balance;
}
:lang(zh-hans) .type-title,
:lang(zh-hant) .type-title {
    font-size: clamp(1em, 1.8vw, 1.5em);
}

.type-description {
    padding: clamp(10px, 2vw, 20px);
    font-size: clamp(0.75em, 1.5vw, 1em);;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.8;
    flex-grow: 1;
}

.style-result {
    padding: clamp(5px, 2vw, 20px);
    background: rgba(0, 0, 0, 0.02);
    font-size: clamp(0.75em, 1.8vw, 1.1em);
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-top: auto;
    text-wrap: balance;
    line-height: 1.5;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 0 20px;
}


.nt-group {
    border-left-color: #3950c4;
}
.nt-group h2 {
    color: #3950c4;
}

[data-theme="dark"] .nt-group {
    border-left-color: #859cff;
}
[data-theme="dark"] .nt-group h2 {
    color: #859cff;
}

.nf-group {
    border-left-color: #d03333;
}
.nf-group h2 {
    color: #d03333;
}
[data-theme="dark"] .nf-group {
    border-left-color: #ff8e8e;
}
[data-theme="dark"] .nf-group h2 {
    color: #ff8e8e;
}

.sj-group {
    border-left-color: #009966;
}
.sj-group h2 {
    color: #009966;
}
[data-theme="dark"] .sj-group {
    border-left-color: #43c49e;
}
[data-theme="dark"] .sj-group h2 {
    color: #43c49e;
}

.sp-group {
    border-left-color: #ff8c00;
}
.sp-group h2 {
    color: #ff8c00;
}
[data-theme="dark"] .sp-group {
    border-left-color: #ffb84d;
}
[data-theme="dark"] .sp-group h2 {
    color: #ffb84d;
}
