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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #ffd6e8 0%, #ffb3d9 25%, #ffd4b3 50%, #ffe8d6 75%, #ffd6e8 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 背景装饰爪印 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.paw-print {
    position: absolute;
    font-size: 2em;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.paw-1 { top: 10%; left: 10%; animation-delay: 0s; }
.paw-2 { top: 20%; right: 15%; animation-delay: 4s; }
.paw-3 { bottom: 15%; left: 20%; animation-delay: 2s; }
.paw-4 { bottom: 25%; right: 10%; animation-delay: 6s; }
.paw-5 { top: 50%; left: 5%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.page {
    display: none;
    animation: fadeIn 0.6s ease-in;
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
}

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

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 35px 40px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(255, 107, 107, 0.2),
                0 10px 30px rgba(255, 107, 107, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.container-wide {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 35px;
    padding: 50px;
    max-width: 1400px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(255, 107, 107, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

/* ===== 欢迎页面样式 ===== */
.title-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-emoji {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 2.5s infinite;
    display: inline-block;
    filter: drop-shadow(0 5px 10px rgba(255, 107, 107, 0.3));
}

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

.main-title {
    font-size: 2.6em;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b, #ff8787, #ffa5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 0.95em;
    color: #ff8787;
    font-weight: 500;
    letter-spacing: 1px;
}

.welcome-content {
    text-align: center;
}

.cat-emoji {
    font-size: 3em;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cat-icon {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

.cat-icon:nth-child(1) { animation-delay: 0s; }
.cat-icon:nth-child(2) { animation-delay: 0.2s; }
.cat-icon:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.welcome-text {
    font-size: 1.35em;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.welcome-subtext {
    font-size: 1em;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 400;
}

.input-section {
    margin: 25px 0;
}

.input-section label {
    display: block;
    font-size: 1em;
    color: #555;
    margin-bottom: 12px;
    font-weight: 600;
}

.label-icon {
    margin-right: 6px;
    font-size: 1.1em;
}

.input-section input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05em;
    border: 3px solid #ffd4d4;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s;
    font-family: 'Noto Sans SC', sans-serif;
    background: #fff;
}

.input-section input:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 13px 32px;
    font-size: 1.1em;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-family: 'Noto Sans SC', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #fff, #ffecd2);
    color: #ff6b6b;
    border: 3px solid #ffd4d4;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

.btn-icon {
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

/* ===== 测试页面样式 ===== */
.progress-section {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8787, #ffa5a5);
    border-radius: 12px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.progress-text {
    text-align: center;
    color: #888;
    font-size: 1.05em;
    margin-top: 15px;
    font-weight: 600;
}

.progress-icon {
    margin-right: 5px;
}

.progress-number {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 1.2em;
}

.question-card {
    margin-top: 25px;
}

.dimension-badge {
    display: none; /* 隐藏维度标签 */
}

.question-text {
    font-size: 1.4em;
    color: #333;
    margin-bottom: 35px;
    line-height: 1.7;
    font-weight: 700;
    text-align: center;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-btn {
    display: flex;
    align-items: center;
    padding: 22px 28px;
    background: white;
    border: 3px solid #ffd4d4;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.1), transparent);
    transition: width 0.3s;
}

.option-btn:hover::before {
    width: 100%;
}

.option-btn:hover {
    border-color: #ff6b6b;
    background: #fff5f5;
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.2);
}

.option-btn:active {
    transform: translateX(5px) scale(0.98);
}

.option-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.3em;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.option-text {
    font-size: 1.3em;
    color: #555;
    line-height: 1.7;
    flex: 1;
    font-weight: 500;
}

.option-check {
    display: none;
    margin-left: 15px;
    color: #ff6b6b;
    font-size: 1.5em;
    font-weight: bold;
}

/* ===== 结果页面样式 ===== */
.result-content {
    text-align: center;
}

/* ===== 分享卡片（截图友好） ===== */
.share-card-slogan {
    font-size: 0.85em;
    color: #ff8787;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.share-card {
    background: linear-gradient(135deg, #fff8f8, #ffecd2);
    border-radius: 22px;
    padding: 24px 20px 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(255, 107, 107, 0.1);
    position: relative;
    overflow: hidden;
}

.share-card-image-wrapper {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.btn-ai-entry {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 14px;
    background: linear-gradient(135deg, #9b6dd7, #7b5ea7);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 12px 20px;
    font-size: 0.95em;
    font-weight: 700;
    font-family: 'Noto Sans SC', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(155, 109, 215, 0.4);
    transition: all 0.3s;
    z-index: 2;
    animation: ai-entry-pulse 2s ease-in-out infinite;
}

.btn-ai-entry:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(155, 109, 215, 0.6);
}

.btn-ai-entry:active {
    transform: scale(0.97);
}

@keyframes ai-entry-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(155, 109, 215, 0.5); }
    50% { box-shadow: 0 4px 20px rgba(155, 109, 215, 0.8); }
}

/* AI 内联上传区域 */
.ai-inline {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ai-inline .cat-photo-upload-area {
    flex: 1;
    background: white;
    border: 2px dashed #d4b3ff;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-inline .cat-photo-upload-area:hover {
    border-color: #9b6dd7;
    background: #faf5ff;
}

.ai-inline .upload-placeholder {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.ai-inline .upload-icon {
    font-size: 1.2em;
    opacity: 0.6;
}

.ai-inline .upload-text {
    font-size: 0.85em;
    color: #888;
    font-weight: 500;
}

.ai-inline .cat-photo-preview img {
    max-width: 60px;
    max-height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.ai-inline .has-photo .upload-placeholder {
    display: none;
}

.ai-inline .btn-ai-generate {
    padding: 10px 18px;
    font-size: 0.9em;
    font-weight: 700;
    font-family: 'Noto Sans SC', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #9b6dd7, #7b5ea7);
    color: white;
    box-shadow: 0 4px 12px rgba(155, 109, 215, 0.4);
    white-space: nowrap;
    transition: all 0.3s;
}

.ai-inline .btn-ai-generate:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ai-inline .btn-ai-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 109, 215, 0.5);
}

/* AI 内联加载/错误状态 */
.share-card-image-wrapper .ai-loading {
    text-align: center;
    padding: 20px 0;
}

.share-card-image-wrapper .ai-loading .ai-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e0d0f0;
    border-top-color: #9b6dd7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.share-card-image-wrapper .ai-loading .ai-status-text {
    font-size: 0.9em;
    color: #7b5ea7;
    font-weight: 600;
}

.share-card-image-wrapper .ai-error {
    text-align: center;
    padding: 10px 0;
}

.share-card-image-wrapper .ai-error .ai-error-icon {
    font-size: 1.5em;
}

.share-card-image-wrapper .ai-error .ai-error-message {
    font-size: 0.85em;
    color: #d63031;
    margin: 5px 0;
}

.share-card-image-wrapper .result-image {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    border: 3px solid white;
}

.share-card-info {
    margin-bottom: 16px;
}

.share-card-info .cat-name-display {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

/* 类型 · 称号 合为一行 */
.personality-headline {
    font-size: 2em;
    font-weight: 900;
    color: #ff6b6b;
    margin: 8px 0 12px;
    letter-spacing: 1px;
}

.personality-headline #personality-type {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.personality-headline #personality-title {
    color: #ff8787;
}

.personality-quote {
    font-size: 1em;
    color: #e74c3c;
    font-weight: 700;
    line-height: 1.6;
    padding: 8px 16px;
    background: rgba(255, 107, 107, 0.08);
    border-radius: 12px;
    display: inline-block;
    max-width: 95%;
}

.share-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 107, 107, 0.25);
}

.share-card-qr {
    flex-shrink: 0;
}

.share-card-qr canvas,
.share-card-qr img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 6px;
}

.share-card-brand {
    text-align: left;
}

.share-card-brand .brand-name {
    font-size: 1.3em;
    font-weight: 900;
    color: #ff6b6b;
    letter-spacing: 1px;
}

.share-card-brand .brand-desc {
    font-size: 0.85em;
    color: #888;
    font-weight: 500;
}

.share-card-brand .brand-hint {
    font-size: 0.75em;
    color: #aaa;
    margin-top: 2px;
}

/* 详细描述（卡片内） */
.share-card .personality-desc-wrapper {
    background: white;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 16px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.share-card .personality-desc {
    font-size: 0.95em;
    color: #555;
    line-height: 1.8;
    font-weight: 500;
    text-align: left;
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ===== AI 生成区域样式 ===== */
.ai-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f0ff, #fff0f5);
    border-radius: 22px;
    border: 2px dashed #d4b3ff;
}

.ai-section-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #7b5ea7;
    margin-bottom: 8px;
}

.ai-icon {
    margin-right: 6px;
}

.ai-section-desc {
    font-size: 0.95em;
    color: #888;
    margin-bottom: 20px;
}

.cat-photo-upload-area {
    background: white;
    border: 3px dashed #d4b3ff;
    border-radius: 18px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 18px;
    position: relative;
}

.cat-photo-upload-area:hover,
.cat-photo-upload-area.drag-over {
    border-color: #9b6dd7;
    background: #faf5ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 109, 215, 0.15);
}

.cat-photo-upload-area.has-photo {
    border-style: solid;
    border-color: #9b6dd7;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.has-photo .upload-placeholder {
    display: none;
}

.upload-icon {
    font-size: 2.5em;
    opacity: 0.6;
}

.upload-text {
    font-size: 1.05em;
    color: #666;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.85em;
    color: #aaa;
}

.cat-photo-preview {
    text-align: center;
}

.cat-photo-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-ai-generate {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.15em;
    font-weight: 700;
    font-family: 'Noto Sans SC', sans-serif;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #9b6dd7, #7b5ea7);
    color: white;
    box-shadow: 0 6px 20px rgba(155, 109, 215, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-ai-generate:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 109, 215, 0.5);
}

.btn-ai-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* AI 加载状态 */
.ai-loading {
    text-align: center;
    padding: 30px 0;
}

.ai-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0d0f0;
    border-top-color: #9b6dd7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-status-text {
    font-size: 1.1em;
    color: #7b5ea7;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-loading-hint {
    font-size: 0.85em;
    color: #aaa;
}

/* AI 生成结果 */
.ai-result {
    text-align: center;
}

.ai-result-image-wrapper {
    margin-bottom: 18px;
}

.ai-result-image-wrapper img {
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
}

.ai-result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* AI 错误状态 */
.ai-error {
    text-align: center;
    padding: 20px 0;
}

.ai-error-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.ai-error-message {
    color: #d63031;
    font-size: 1em;
    margin-bottom: 15px;
    font-weight: 500;
}

/* ===== 图片保存弹窗 ===== */
.save-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.save-modal-overlay.active {
    display: flex;
}

.save-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.save-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    font-size: 1.05em;
    font-weight: 600;
    color: #555;
}

.save-modal-close {
    background: none;
    border: none;
    font-size: 1.3em;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}

.save-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.save-modal-body {
    padding: 15px;
    text-align: center;
}

.save-modal-body img {
    width: 100%;
    border-radius: 12px;
}

/* ===== 所有性格页面样式 ===== */
.all-header {
    text-align: center;
    margin-bottom: 40px;
}

.all-title {
    font-size: 2.8em;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 1.2em;
}

.btn-back {
    padding: 12px 30px;
    font-size: 1.05em;
    border: 3px solid #ff6b6b;
    background: white;
    color: #ff6b6b;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-family: 'Noto Sans SC', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.personalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.personality-card {
    background: linear-gradient(135deg, #fff8f8, #ffecd2);
    border-radius: 22px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.personality-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 135, 135, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.personality-card:hover::before {
    opacity: 1;
}

.personality-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.25);
    border-color: #ff6b6b;
}

.personality-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    margin-bottom: 20px;
    max-height: 250px;
    position: relative;
    z-index: 1;
}

.personality-card-type {
    font-size: 2.2em;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.personality-card-title {
    font-size: 1.4em;
    color: #ff8787;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.personality-card-desc {
    font-size: 1em;
    color: #666;
    line-height: 1.7;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .container, .container-wide {
        padding: 25px 20px;
        border-radius: 25px;
    }

    .main-title {
        font-size: 2.2em;
    }

    .logo-emoji {
        font-size: 3.5em;
        margin-bottom: 10px;
    }

    .title-section {
        margin-bottom: 20px;
    }

    .cat-emoji {
        font-size: 2.5em;
        margin: 15px 0;
        gap: 12px;
    }

    .welcome-text {
        font-size: 1.25em;
        margin-bottom: 10px;
    }

    .welcome-subtext {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .input-section {
        margin: 20px 0;
    }

    .input-section label {
        font-size: 0.95em;
        margin-bottom: 10px;
    }

    .input-section input {
        padding: 12px 16px;
        font-size: 1em;
    }

    .button-group {
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 1em;
    }

    .question-text {
        font-size: 1.15em;
    }

    .result-badge {
        font-size: 1em;
        padding: 8px 22px;
        margin-bottom: 20px;
    }

    .share-card {
        padding: 20px 16px 16px;
    }

    .share-card-image-wrapper .result-image {
        max-width: 200px;
    }

    .share-card-info .cat-name-display {
        font-size: 1em;
    }

    .personality-headline {
        font-size: 1.7em;
    }

    .personality-quote {
        font-size: 0.85em;
        padding: 6px 12px;
    }

    .share-card-qr canvas,
    .share-card-qr img {
        width: 64px !important;
        height: 64px !important;
    }

    .share-card .personality-desc {
        font-size: 0.9em;
    }

    .personalities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .all-title {
        font-size: 2.2em;
        flex-direction: column;
    }

    .ai-section {
        padding: 20px 15px;
    }

    .ai-section-title {
        font-size: 1.2em;
    }

    .btn-ai-generate {
        font-size: 1.05em;
        padding: 13px 24px;
    }
}

@media (max-width: 480px) {
    .container, .container-wide {
        padding: 20px 16px;
    }

    .main-title {
        font-size: 1.9em;
    }

    .logo-emoji {
        font-size: 3em;
    }

    .cat-emoji {
        font-size: 2.2em;
    }

    .welcome-text {
        font-size: 1.15em;
    }

    .welcome-subtext {
        font-size: 0.9em;
    }

    .personalities-grid {
        grid-template-columns: 1fr;
    }

    .btn-primary, .btn-secondary {
        padding: 11px 20px;
        font-size: 0.95em;
    }
}
