/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary-color: #60a5fa;
    --accent-color: #fbbf24;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #EFF6FF;
    min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
.logo i { margin-right: 0.5rem; color: var(--accent-color); }
.nav { display: flex; gap: 2rem; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.nav-link:hover { background: var(--bg-light); color: var(--primary-color); }
.nav-link.active { background: var(--primary-color); color: white; }

/* 欢迎横幅 */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-features { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.feature-item { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; }
.feature-item i { color: var(--accent-color); font-size: 1.5rem; }

/* 主内容区 */
.main {
    background: var(--bg-white);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    z-index: 10;
    padding: 3rem 0;
    min-height: 500px;
}
.page { display: none; animation: fadeIn 0.5s ease; }
.page.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.page-header p { color: var(--text-light); font-size: 1.1rem; }

/* 表单样式 */
.form-container { max-width: 800px; margin: 0 auto; }
.naming-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-dark); }
.form-group input, .form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 性别按钮 */
.gender-buttons { display: flex; gap: 1rem; }
.gender-btn {
    flex: 1;
    padding: 0.60rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}
.gender-btn:hover { border-color: var(--primary-light); }
.gender-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* 日期选择按钮 */
.date-picker-btn, .location-btn, .type-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.date-picker-btn:hover, .location-btn:hover, .type-btn:hover { border-color: var(--primary-light); }

/* 提交按钮居中容器 */
.submit-btn-wrap { display: flex; justify-content: center; padding-top: 0.5rem; }

/* 提交按钮 */
.submit-btn {
    width: 360px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.submit-btn:active { transform: translateY(0); }

/* 结果区域 */
.result-container {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}
.result-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.typing-result {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    min-height: 100px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { color: var(--primary-color); }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}
.modal-close:hover { color: var(--text-dark); }
.modal-body { padding: 1.5rem; max-height: 60vh; overflow-y: auto; }

/* 选择项网格布局 */
.option-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 5px;
}
.option-item {
    padding: 14px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.option-item:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 日期选择器 */
.date-selector { display: grid; gap: 1rem; }
.date-row { display: flex; gap: 0.5rem; }
.date-row select { flex: 1; padding: 0.5rem; border: 1px solid var(--border-color); border-radius: 6px; }
.calendar-type { display: flex; gap: 1rem; margin-bottom: 1rem; }
.calendar-type button {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.calendar-type button.active { background: var(--primary-color); color: white; }

/* 底部 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h4 { margin-bottom: 1rem; color: var(--secondary-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-light); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--secondary-color); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 1rem; }
    .nav { gap: 1rem; }
    .hero-title { font-size: 2rem; }
    .hero-features { gap: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .option-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .option-item { padding: 12px 6px; font-size: 13px; }
}
@media (max-width: 480px) {
    .option-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .option-item { padding: 10px 4px; font-size: 12px; }
    .submit-btn { padding: 0.7rem 2rem; font-size: 1rem; }
}

/* 打字机效果 */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--primary-color);
    animation: blink 1s infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 弹窗内确认按钮 */
.modal-body .submit-btn {
    padding: 6px 32px; width: auto; font-size: 0.95rem;
    border-radius: 6px; margin-top: 1.5rem; margin-left: auto; margin-right: auto; display: flex;
}
.modal-body .date-selector, .modal-body .location-selector { gap: 1.2rem; }
.modal-body .date-row { gap: 30px; }

/* ==================== 卡片结果样式 ==================== */

/* 结果容器 - 卡片模式 */
.result-container.cards-mode {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 2.5rem;
}
.result-container.cards-mode h3 {
    display: none;
}

/* 卡片标题区域 */
.cards-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}
.cards-title::before,
.cards-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 160px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.cards-title::before { left: 0; }
.cards-title::after { right: 0; }
.cards-title h3 {
    display: inline-flex !important;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    color: var(--primary-color);
    background: var(--bg-white);
    padding: 0 1rem;
    margin: 0;
    font-weight: 600;
}
.cards-title h3 i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* 卡片容器 */
.cards-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 名称卡片 */
.name-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(30, 58, 138, 0.06), 0 4px 16px rgba(30, 58, 138, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.8);
    opacity: 0;
    transform: translateY(24px);
    animation: cardSlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
.name-card:hover {
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.08), 0 12px 32px rgba(30, 58, 138, 0.1);
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.25);
}

@keyframes cardSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片头部 */
.card-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}
.card-header::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 65%);
    pointer-events: none;
}
.card-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 20%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.card-index {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    min-width: 44px;
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
}

.card-name-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: relative;
    z-index: 1;
}
.card-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.15em;
    line-height: 1.3;
}
.card-english {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
    letter-spacing: 0.03em;
}

/* 卡片主体 */
.card-body {
    padding: 1.25rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.card-section {
    padding-left: 1rem;
    border-left: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}
.name-card:hover .card-section { border-color: inherit; }
.card-section.wuxing { border-left-color: #f59e0b; }
.card-section.meaning { border-left-color: #3b82f6; }
.card-section.business { border-left-color: #10b981; }

.section-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.35rem;
    letter-spacing: 0.08em;
}
.section-label i { font-size: 0.75rem; }
.card-section.wuxing .section-label i { color: #f59e0b; }
.card-section.meaning .section-label i { color: #3b82f6; }
.card-section.business .section-label i { color: #10b981; }

.section-content {
    font-size: 0.92rem;
    line-height: 1.85;
    color: #4b5563;
    text-align: justify;
}

/* 推荐卡片 */
.recommend-card {
    background: linear-gradient(145deg, #0c1a3a 0%, #1e3a8a 40%, #1e40af 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.35);
    border-radius: 14px;
    padding: 2rem 2rem 2.25rem;
    color: white;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    animation: cardSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    margin-top: 0.5rem;
}
.recommend-card::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.recommend-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.recommend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e3a8a;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
}
.recommend-badge i { font-size: 0.75rem; }

.recommend-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: 0.18em;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.recommend-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}
.recommend-reason {
    font-size: 0.95rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
    text-align: justify;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    padding: 3.5rem 2rem;
}
.loading-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loadPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.25);
}
.loading-icon i {
    font-size: 1.8rem;
    color: #fbbf24;
    animation: featherFloat 1.8s ease-in-out infinite;
}
@keyframes loadPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(30, 58, 138, 0.25); }
    50% { transform: scale(1.06); box-shadow: 0 4px 30px rgba(30, 58, 138, 0.4); }
}
@keyframes featherFloat {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-8deg) translateY(-2px); }
    75% { transform: rotate(8deg) translateY(2px); }
}
.loading-text {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
}
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.loading-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: dotBounce 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* 错误状态 */
.error-state {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #fef2f2;
    border-radius: 12px;
    border: 1px solid #fecaca;
}
.error-state i {
    font-size: 2.5rem;
    color: #ef4444;
    margin-bottom: 1rem;
    display: block;
}
.error-state p {
    color: #991b1b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 卡片响应式 */
@media (max-width: 768px) {
    .card-header { padding: 1rem 1.25rem; gap: 1rem; }
    .card-index { font-size: 1.8rem; min-width: 36px; }
    .card-name { font-size: 1.35rem; }
    .card-body { padding: 1rem 1.25rem 1.25rem; gap: 0.9rem; }
    .section-content { font-size: 0.88rem; }
    .recommend-card { padding: 1.5rem 1.25rem 1.75rem; }
    .recommend-name { font-size: 1.6rem; }
    .cards-title::before,
    .cards-title::after { width: calc(50% - 120px); }
}
@media (max-width: 480px) {
    .card-header { padding: 0.85rem 1rem; gap: 0.75rem; flex-direction: column; align-items: flex-start; }
    .card-index { font-size: 1.4rem; }
    .card-name { font-size: 1.2rem; }
    .card-body { padding: 0.85rem 1rem 1rem; gap: 0.75rem; }
    .section-content { font-size: 0.85rem; line-height: 1.75; }
    .recommend-name { font-size: 1.4rem; }
    .cards-title::before,
    .cards-title::after { display: none; }
}


/* ==================== 字数警告样式 ==================== */

/* 顶部警告横幅 */
.length-warning-banner {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #991b1b;
    animation: cardSlideIn 0.4s ease forwards;
}
.length-warning-banner i {
    color: #ef4444;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.length-warning-banner strong {
    color: #dc2626;
    font-weight: 700;
}

/* 名称卡片 - 字数警告态 */
.name-card.length-warning {
    border-color: rgba(239, 68, 68, 0.35);
    opacity: 0;
    animation: cardSlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.name-card.length-warning:hover {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.06), 0 8px 24px rgba(239, 68, 68, 0.1);
}

/* 卡片头部内的警告标签 */
.length-warn-tag {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
    animation: warnPulse 2.5s ease-in-out infinite;
}
.length-warn-tag i {
    font-size: 0.7rem;
}
@keyframes warnPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

/* 推荐卡片的字数警告 */
.recommend-card.length-warning {
    border-color: rgba(239, 68, 68, 0.5);
}
.rec-length-warn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.rec-length-warn i {
    font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .length-warn-tag {
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    .name-card.length-warning .card-header {
        flex-wrap: wrap;
    }
}
