body {
    font-family: 'Noto Sans SC', sans-serif;
}
.zodiac-card {
    transition: all 0.3s ease;
}
.zodiac-card:hover {
    transform: translateY(-5px);
}
.fortune-card {
    transition: all 0.3s ease;
}
.fortune-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.star-rating {
    color: #f59e0b;
}
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
/* 絲取垸 */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4F46E5;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: #4F46E5;
}
/* 篁ヨ水∞絽絮 */
.fortune-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .fortune-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .fortune-card {
        min-height: auto;
        display: flex;
        flex-direction: column;
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
        width: 100%;
        margin: 0;
    }
    .fortune-card h3, .fortune-card p {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        padding: 0;
    }
    .fortune-card h3 {
        font-size: 0.9rem !important;
        font-weight: 600;
        margin-bottom: 0.1rem;
        text-align: left;
    }
    .fortune-card p {
        font-size: 0.75rem !important;
        color: #888;
        text-align: left;
    }
    .fortune-card p.text-xs.text-gray-600 {
        text-align: left !important;
    }
    
    /* 优化今日运势卡片内部间距 */
    .fortune-card .flex.items-center {
        margin-bottom: 0.75rem !important;
    }
    
    .fortune-card .space-y-3 > div {
        margin-bottom: 0.5rem !important;
    }
    
    .fortune-card .space-y-3 > div:last-child {
        margin-bottom: 0 !important;
    }
    
    .fortune-card .bg-gray-50 {
        padding: 0.5rem !important;
        border-radius: 0.5rem !important;
    }
    
    .fortune-card .text-3xl {
        font-size: 1.5rem !important;
        margin-right: 0.5rem !important;
    }
    .main-section-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* 减小移动端卡片容器间距 */
    main .bg-white.shadow-lg.rounded-lg.p-6.mb-2 {
        margin-bottom: 0.5rem !important;
        padding: 1rem !important;
    }
    
    main .bg-white.shadow-lg.rounded-lg.p-6 {
        padding: 1rem !important;
    }
    
    /* 更具体的选择器 */
    .max-w-7xl .bg-white.shadow-lg.rounded-lg.p-6.mb-2 {
        margin-bottom: 0.5rem !important;
        padding: 1rem !important;
    }
    
    .max-w-7xl .bg-white.shadow-lg.rounded-lg.p-6 {
        padding: 1rem !important;
    }
    
    /* 确保所有卡片之间有适当间距 */
    .max-w-7xl .bg-white.shadow-lg.rounded-lg.p-6 + .bg-white.shadow-lg.rounded-lg.p-6 {
        margin-top: 0.5rem !important;
    }
    
    .max-w-7xl .bg-white.shadow-lg.rounded-lg.p-6.mb-2:not(:first-child) {
        margin-top: 0.5rem !important;
    }
    
    /* 移动端footer优化 */
    footer {
        margin-top: 1rem !important;
        padding: 1rem 0.5rem !important;
    }
    
    footer .max-w-7xl {
        padding: 0 1rem !important;
    }
    
    footer p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.25rem !important;
    }
    
    footer a {
        font-size: 0.75rem !important;
        color: #6b7280 !important;
    }
}
.fortune-card, .zodiac-card > div {
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.25rem 1rem;
}
/* 綺у∞絽絮 */
.zodiac-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .zodiac-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.3rem;
        padding: 0 0.5rem;
        justify-items: center;
    }
    .zodiac-card {
        width: 100%;
        max-width: 120px;
    }
    .zodiac-card > div {
        padding: 0.75rem 0.25rem !important;
        border-radius: 0.875rem !important;
        width: 100%;
        min-height: 85px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0,0,0,0.06);
        margin: 0;
        transition: all 0.2s ease;
    }
    .zodiac-card > div:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .zodiac-card .text-3xl {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem !important;
        text-align: center !important;
        line-height: 1;
    }
    .zodiac-card .text-center {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    .zodiac-card h3 {
        font-size: 0.75rem !important;
        font-weight: 600;
        margin-bottom: 0.1rem;
        text-align: center !important;
        letter-spacing: 0.01em;
        line-height: 1.2;
        width: 100%;
    }
    .zodiac-card p {
        font-size: 0.65rem !important;
        color: #9ca3af;
        text-align: center !important;
        margin: 0;
        line-height: 1.3;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        word-break: break-all !important;
        overflow: visible !important;
    }
}
/* 薤蕁究綺ц莅 */
.star-article-list li {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
    position: relative;
}
.star-article-list li:hover {
    background: #f3f4f6;
}
.star-article-list .index {
    width: 2em;
    text-align: center;
    font-weight: bold;
    color: #6366f1;
    font-size: 1.1em;
    flex-shrink: 0;
}
.star-article-list .title {
    flex: 1;
    font-size: 1em;
    font-weight: 500;
    color: #22223b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.star-article-list li:hover .title {
    color: #4F46E5;
}
.star-article-list .date {
    display: flex;
    align-items: center;
    color: #9CA3AF;
    font-size: 0.85em;
    margin-left: 1em;
    flex-shrink: 0;
}
.star-article-list .date svg {
    width: 1em;
    height: 1em;
    margin-right: 0.2em;
    color: #60a5fa;
}
@media (max-width: 768px) {
    .star-article-list li {
        padding: 0.6rem 0.4rem;
        margin-bottom: 0.5rem;
        background: #f8fafc;
        border-radius: 0.75rem;
    }
    .star-article-list .index {
        width: 1.8em;
        font-size: 1em;
        color: #4F46E5;
        background: rgba(79, 70, 229, 0.1);
        border-radius: 0.4rem;
        padding: 0.2rem 0;
        margin-right: 0.5rem;
    }
    .star-article-list .title {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-right: 0.5rem;
    }
    .star-article-list .date {
        font-size: 0.75rem;
        color: #94a3b8;
        margin-left: 0.5rem;
    }
    .star-article-list .date svg {
        width: 0.9em;
        height: 0.9em;
        color: #94a3b8;
    }
}
/* 綺ф膊遵阪絮 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .main-container {
        padding: 0.5rem !important;
    }
    /* AI菴水阪腱糸桁 */
    #aiAnalysisBtn {
        padding: 0.75rem 0.8rem !important;
        font-size: 0.75rem !important;
        width: 100% !important;
        max-width: 160px !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3) !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
    }
    #aiAnalysisBtn svg {
        width: 0.75rem !important;
        height: 0.75rem !important;
        margin-right: 0.4rem !important;
    }

    /* 腱糸AIЕ娯 */
    #aiAnalysisBtn:active {
        transform: scale(0.95) !important;
        transition: all 0.15s ease !important;
        box-shadow: 0 2px 10px rgba(147, 51, 234, 0.4) !important;
    }
    /* 腱糸AI阪岩篌 */
    .bg-white.shadow-lg.rounded-lg.p-6.mb-2 {
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 20px !important;
    }
    .mb-6 {
        margin-bottom: 2rem !important;
    }
    /* 腱糸 */
    .text-center {
        padding: 0 1rem !important;
        display: block !important;
        text-align: center !important;
    }

    /* 隋Щ絎筝 */
    #aiAnalysisBtn {
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 160px !important;
        margin: 0 auto !important;
    }
    /* 隋絎劫Щ絮筝 */
    #aiAnalysisBtn > * {
        text-align: center !important;
    }
    /* 腱糸AI合倶 */
    #aiAnalysisBtn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 25px rgba(147, 51, 234, 0.4) !important;
    }
    #aiAnalysisBtn:focus {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3) !important;
    }
    /* 腱糸号у∞ */
    .grid.grid-cols-1.md\\:grid-cols-3 > div:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
        transition: all 0.3s ease !important;
    }
    .tarot-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7rem;
        justify-items: center;
    }
    .tarot-container {
        max-width: 90px;
        margin: 0 auto;
    }
    .tarot-card-front, .tarot-card-back {
        padding: 10px !important;
        border-radius: 10px !important;
    }
    .card-icon {
        font-size: 2rem !important;
        margin-bottom: 0.3rem !important;
    }
    .card-name {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem !important;
    }
    .card-meaning {
        font-size: 0.75rem !important;
    }
    .question-input {
        padding: 10px 12px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
    }
    .divine-button {
        padding: 10px 0 !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    .interpretation-section {
        margin-top: 1.2rem !important;
        padding: 0.5rem !important;
    }
    .interpretation-box {
        border-radius: 10px !important;
        padding: 1rem !important;
        font-size: 1rem !important;
    }
}
.horoscope-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.horoscope-card:hover {
    transform: translateY(-2px);
    border-color: #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

/* AI号у∞腱糸絮筝㊥桁 */
.ai-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
}

@media (max-width: 768px) {
    .ai-feature-cards {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
        width: 100% !important;
        align-items: stretch !important;
        margin-top: 0.5rem !important;
    }
    
    /* 减小AI功能卡片容器与上面按钮的距离 */
    .mb-6 {
        margin-bottom: 1rem !important;
    }
    
    .ai-feature-cards > div {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0.75rem !important;
        height: 100% !important;
        min-height: 140px !important;
    }
    
    .ai-feature-cards .flex.flex-col.items-center {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin-bottom: 0.5rem !important;
        flex: 1 !important;
    }
    
    .ai-feature-cards .w-10.h-10 {
        width: 2rem !important;
        height: 2rem !important;
        margin-bottom: 0.5rem !important;
        flex-shrink: 0 !important;
    }
    
    .ai-feature-cards .w-5.h-5 {
        width: 1rem !important;
        height: 1rem !important;
    }
    
    .ai-feature-cards h3 {
        text-align: center !important;
        width: 100% !important;
        font-size: 0.875rem !important;
        margin-bottom: 0.375rem !important;
        line-height: 1.2 !important;
        flex-shrink: 0 !important;
    }
    
    .ai-feature-cards p {
        text-align: center !important;
        width: 100% !important;
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        flex: 1 !important;
    }
    
    .ai-fortune-section h2 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .zodiac-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
        padding: 0 0.25rem;
        justify-items: center;
    }
    .zodiac-card {
        width: 100%;
        max-width: 100px;
    }
    .zodiac-card > div {
        min-height: 80px;
        padding: 0.6rem 0.2rem !important;
    }
    .zodiac-card .text-3xl {
        font-size: 1.3rem !important;
        margin-bottom: 0.2rem !important;
    }
    .zodiac-card h3 {
        font-size: 0.7rem !important;
        text-align: center !important;
    }
    .zodiac-card .text-center {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        display: block !important;
    }
    .zodiac-card p {
        font-size: 0.6rem !important;
        text-align: center !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
        word-break: break-all !important;
        overflow: visible !important;
    }
}

/* PC端AI智能运势分析按钮样式 */
@media (min-width: 769px) {
    #aiAnalysisBtn {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 20px rgba(147, 51, 234, 0.3) !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
    }
    #aiAnalysisBtn svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
        margin-right: 0.5rem !important;
    }
    #aiAnalysisBtn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 25px rgba(147, 51, 234, 0.4) !important;
    }
    #aiAnalysisBtn:focus {
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3) !important;
    }
}