/* 全局样式 */
:root {
    /* 亮色主题 */
    --primary-color: #8B5CF6;
    --secondary-color: #A78BFA;
    --background-color: #F3F4F6;
    --text-color: #1F2937;
    --text-secondary: #666;
    --card-bg: white;
    --modal-bg: white;
    --border-color: #E5E7EB;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --progress-bg: #f0f0f0;
    --input-bg: white;
    --input-border: #E5E7EB;
    --label-color: #4B5563;
    --placeholder-color: #9CA3AF;
}

/* 暗色主题 */
[data-theme="dark"] {
    --primary-color: #A78BFA;
    --secondary-color: #8B5CF6;
    --background-color: #111827;
    --text-color: #F9FAFB;
    --text-secondary: #D1D5DB;
    --card-bg: #1F2937;
    --modal-bg: #1F2937;
    --border-color: #374151;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --progress-bg: #374151;
    --input-bg: #374151;
    --input-border: #4B5563;
    --label-color: #E5E7EB;
    --placeholder-color: #9CA3AF;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 导航栏样式 */
header {
    background-color: var(--primary-color);
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: var(--secondary-color);
}

/* 首页样式 */
.section-home {
    text-align: center;
    padding: 3rem 1rem;
}

.section-home h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-home > p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* 星座查询页面样式 */
.section-query {
    padding: 2rem;
    min-height: 100vh;
    background-color: var(--background-color);
}

.query-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.query-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.date-picker {
    text-align: center;
    margin-bottom: 2rem;
}

.date-picker label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.date-picker input {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
}

.zodiac-result {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 32px;
}

.zodiac-result img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.zodiac-result img[src=""] {
    visibility: hidden;
}

.zodiac-info {
    text-align: center;
    margin-bottom: 2rem;
}

.zodiac-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.zodiac-details {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.zodiac-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.zodiac-details ul {
    list-style: none;
    padding: 0;
}

.zodiac-details li {
    margin: 0.5rem 0;
}

/* 星座网格布局 */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 10px;
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.zodiac-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 3px var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.zodiac-card img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    object-fit: contain;
}

.zodiac-card h3 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.zodiac-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.zodiac-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.zodiac-card:hover h3,
.zodiac-card:hover p {
    color: white;
}

/* 匹配度分析样式 */
.matching-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.matching-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.matching-tip {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.birth-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.birth-group {
    flex: 1;
    max-width: 300px;
}

.birth-group label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.birth-group input[type="date"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: white;
    color: var(--text-color);
    text-align: center;
    cursor: pointer;
    position: relative;
}

/* 美化日期输入框 */
.birth-group input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0;  /* 隐藏默认的日历图标 */
    width: 100%;
    height: 100%;
}

/* 添加自定义的日期提示 */
.birth-group input[type="date"]::before {
    content: attr(placeholder);
    color: #666;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.birth-group input[type="date"]:valid::before {
    display: none;
}

/* 移除默认的日期输入框样式 */
.birth-group input[type="date"]::-webkit-datetime-edit {
    text-align: center;
}

.birth-group input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

.zodiac-result {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.zodiac-result img {
    width: 32px;
    height: 32px;
}

.zodiac-result span {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.heart-icon {
    font-size: 2.5rem;
    color: #ff6b6b;
    animation: pulse 1.5s infinite;
}

.match-button {
    width: 80%;
    max-width: 300px;
    margin: 2rem auto 0;
    padding: 1.2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

/* 响应式优化 */
@media (max-width: 1200px) {
    .zodiac-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .birth-selector {
        flex-direction: column;
        gap: 2rem;
    }
    
    .birth-group {
        width: 100%;
    }
    
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, auto);
    }
}

@media (max-width: 480px) {
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, auto);
    }
}

/* 日期选择框样式 */
.date-inputs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.date-inputs select {
    flex: 1;
    padding: 0.8rem;
    font-size: 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    color: var(--text-color);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A78BFA' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.5rem;
    min-width: 80px;
}

.date-inputs select:hover {
    border-color: var(--primary-color);
}

.date-inputs select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* 修改下拉选项样式 */
.date-inputs select option {
    padding: 0.5rem;
    background-color: var(--input-bg);
    color: var(--text-color);
}

/* 暗色模式下的下拉框样式 */
[data-theme="dark"] .date-inputs select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D1D5DB' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .date-inputs select option {
    background-color: var(--card-bg);
}

.gender-select {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.gender-select label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.gender-select input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary-color);
}

.gender-select span {
    font-size: 1rem;
    color: var(--text-color);
}

/* 弹窗样式 */
.modal {
    display: none;  /* 初始状态为隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* ��用视口宽度 */
    height: 100vh; /* 使用视口高度 */
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

/* 当弹窗显示时的样式 */
.modal[style*="display: block"] {
    display: flex !important;  /* 使用 !important 确保覆盖内联样式 */
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: var(--modal-bg);
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    animation: modalPop 0.3s ease-out;
    margin: 0 auto;  /* 确保水平居中 */
    transform-origin: center;  /* 动画的原点设置为中心 */
}

/* 修改弹窗动画 */
@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 优化关闭按钮 */
.close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

/* 优化匹配结果内容布局 */
.result-container {
    text-align: center;
    padding: 1rem 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    margin: 1.5rem auto;
    border: 8px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--card-bg), var(--background-color));
    animation: scoreIn 0.5s ease forwards;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* 优化匹配度指标显示 */
.match-aspects {
    margin-top: 2rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.aspect {
    margin-bottom: 1.5rem;
}

.aspect:last-child {
    margin-bottom: 0;
}

.aspect h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

/* 暗色模式适配 */
[data-theme="dark"] .modal {
    background-color: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .close-btn {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .close-btn:hover {
    background: var(--primary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 导航栏适配 */
    .nav-links {
        display: none;  /* 在移动端隐藏导航链接 */
    }
    
    .nav-controls {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
    }
    
    /* 主标题适配 */
    .section-home h1 {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .section-home p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* 星座网格适配 */
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 0 0.5rem;
    }
    
    .zodiac-card {
        padding: 6px;
    }
    
    .zodiac-card h3 {
        font-size: 0.8rem;
    }
    
    .zodiac-card p {
        font-size: 0.7rem;
    }
    
    /* 生日选择器适配 */
    .birth-selector {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .birth-group {
        width: 100%;
        max-width: none;
    }
    
    .date-inputs {
        flex-direction: row;
        gap: 0.3rem;
    }
    
    .date-inputs select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* 匹配结果弹窗适配 */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 2rem;
        border-width: 6px;
    }
    
    .match-description {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    .lucky-message {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
    
    .match-aspects {
        padding: 1rem;
    }
    
    .aspect h4 {
        font-size: 1rem;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    /* 星座网格进一步缩小 */
    .zodiac-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    /* 日期选择器调整 */
    .date-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .date-inputs select {
        width: 100%;
        padding: 0.8rem;
    }
    
    /* 性别选择器调整 */
    .gender-select {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        padding: 0.6rem;
    }
    
    /* 匹配按钮调整 */
    .match-button {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* 弹窗内容调整 */
    .modal-content {
        padding: 1rem;
    }
    
    .score-circle {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
        border-width: 5px;
    }
    
    /* 关闭按钮调整 */
    .close-btn {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }
}

/* 横屏模式适配 */
@media (max-height: 600px) and (orientation: landscape) {
    .birth-selector {
        flex-direction: row;
        gap: 1rem;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .score-circle {
        margin: 1rem auto;
    }
}

/* 暗色模式下的移动端适配 */
@media (max-width: 768px) {
    [data-theme="dark"] .modal-content {
        background-color: var(--modal-bg);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    [data-theme="dark"] .date-inputs select {
        background-color: var(--input-bg);
        border-color: var(--input-border);
    }
}

/* 匹配结果动画效果 */
@keyframes scoreIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.match-aspects {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
}

.aspect {
    margin-bottom: 1.5rem;
}

.aspect:last-child {
    margin-bottom: 0;
}

.aspect h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.progress-bar {
    height: 12px;
    background: var(--progress-bg);
    border-radius: 6px;
    overflow: hidden;
    margin: 0.5rem 0 1.5rem;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary-color);
}

/* 导航控制按钮样式 */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle,
.theme-toggle {
    background: transparent;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-toggle:hover,
.theme-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 1.2rem;
}

/* 移除之前的固定定位样式 */
.theme-toggle {
    position: static;
    box-shadow: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-controls {
        gap: 0.5rem;
    }
    
    .lang-toggle,
    .theme-toggle {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    .nav-controls {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
    }
}

/* 匹配结果动画效果 */
@keyframes scoreIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.match-aspects {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
}

.aspect {
    margin-bottom: 1.5rem;
}

.aspect:last-child {
    margin-bottom: 0;
}

.aspect h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.progress-bar {
    height: 12px;
    background: var(--progress-bg);
    border-radius: 6px;
    overflow: hidden;
    margin: 0.5rem 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary-color);
}

/* 暗色模式下的匹配结果样式 */
[data-theme="dark"] .match-aspects {
    background: rgba(167, 139, 250, 0.1);
}

[data-theme="dark"] .aspect h4 {
    color: var(--text-secondary);
}

[data-theme="dark"] .progress-bar {
    background: rgba(0, 0, 0, 0.2);
}

/* 暗色模式下的特殊处理 */
[data-theme="dark"] .zodiac-card:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px var(--card-shadow);
}

[data-theme="dark"] .zodiac-card:hover h3,
[data-theme="dark"] .zodiac-card:hover p {
    color: white;
}

[data-theme="dark"] .close-btn {
    color: var(--text-secondary);
}

[data-theme="dark"] .close-btn:hover {
    color: var(--primary-color);
}

/* 修改主题变量 */
:root {
    /* 亮色主题 */
    --primary-color: #8B5CF6;
    --secondary-color: #A78BFA;
    --background-color: #F3F4F6;
    --text-color: #1F2937;
    --text-secondary: #666;
    --card-bg: white;
    --modal-bg: white;
    --border-color: #E5E7EB;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --progress-bg: #f0f0f0;
    --input-bg: white;
    --input-border: #E5E7EB;
    --label-color: #4B5563;
    --placeholder-color: #9CA3AF;
}

/* 暗色主题 */
[data-theme="dark"] {
    --primary-color: #A78BFA;
    --secondary-color: #8B5CF6;
    --background-color: #111827;
    --text-color: #F9FAFB;
    --text-secondary: #D1D5DB;
    --card-bg: #1F2937;
    --modal-bg: #1F2937;
    --border-color: #374151;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --progress-bg: #374151;
    --input-bg: #374151;
    --input-border: #4B5563;
    --label-color: #E5E7EB;
    --placeholder-color: #9CA3AF;
}

/* 修改生日选择器样式 */
.birth-group label {
    color: var(--label-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.date-inputs select {
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-color);
    padding: 0.8rem;
    border-radius: 8px;
}

.date-inputs select:hover {
    border-color: var(--primary-color);
}

.date-inputs select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* 修改性别选择器样式 */
.gender-select {
    background-color: var(--input-bg);
    padding: 0.8rem;
    border-radius: 8px;
    border: 2px solid var(--input-border);
}

.gender-select label {
    color: var(--text-color);
}

.gender-select input[type="radio"] {
    accent-color: var(--primary-color);
}

.gender-select span {
    color: var(--text-color);
}

/* 修改标题和提示文本样式 */
.matching-section h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.matching-tip {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* 修改匹配按钮样式 */
.match-button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 500;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.match-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* 暗色模式下的特殊处理 */
[data-theme="dark"] .date-inputs select option {
    background-color: var(--input-bg);
    color: var(--text-color);
}

[data-theme="dark"] .gender-select {
    background-color: var(--input-bg);
}

[data-theme="dark"] .gender-select label:hover {
    color: var(--primary-color);
}

/* 添加选项悬停效果 */
.date-inputs select option:hover,
.date-inputs select option:focus {
    background-color: var(--primary-color);
    color: white;
}

/* 优化下拉箭头颜色 */
.date-inputs select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A78BFA' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .date-inputs select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D1D5DB' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
}

/* 修改匹配度分析标题样式 */
.matching-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* 修改提示文字样式 */
.matching-tip {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

/* 修改生日标签样式 */
.birth-group label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    background: rgba(139, 92, 246, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

/* 暗色模式下的特殊处理 */
[data-theme="dark"] .matching-section h2 {
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .matching-tip {
    background: rgba(167, 139, 250, 0.15);
    color: #E5E7EB;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .birth-group label {
    color: var(--secondary-color);
    background: rgba(167, 139, 250, 0.15);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* 添加文字发光效果 */
[data-theme="dark"] .matching-section h2,
[data-theme="dark"] .matching-tip,
[data-theme="dark"] .birth-group label {
    filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.3));
}

/* 优化背景对比 */
[data-theme="dark"] .matching-section {
    background: #1F2937;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

/* 添加吉祥话样式 */
.lucky-message {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 暗色模式下的吉祥话样式 */
[data-theme="dark"] .lucky-message {
    color: var(--secondary-color);
    background: rgba(167, 139, 250, 0.15);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(0 0 2px rgba(167, 139, 250, 0.3));
}

/* 添加滚动条样式 */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}