/* 测测风格主题 - 星空星座 */

.cece-theme {
    background: #0f0f1e;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 80px;
}

/* 顶部导航 */
.cece-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left,
.header-right {
    width: 40px;
    display: flex;
    align-items: center;
}

.menu-btn,
.add-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 主内容区 */
.cece-main {
    padding-top: 66px;
    padding-left: 16px;
    padding-right: 16px;
    max-width: 480px;
    margin: 0 auto;
}

/* 个人档案卡片 */
.profile-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    pointer-events: none;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.avatar-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    padding: 3px;
    flex-shrink: 0;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.profile-text {
    flex: 1;
}

.profile-text h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.birth-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.dropdown-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    cursor: pointer;
    padding: 8px;
}

/* 运势预览 */
.fortune-preview {
    position: relative;
    z-index: 1;
}

.fortune-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.fortune-item:last-child {
    margin-bottom: 0;
}

.fortune-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    flex-shrink: 0;
}

.fortune-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.fortune-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 3px;
    transition: width 1s ease;
}

.fortune-fill.love {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.fortune-fill.career {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.fortune-fill.wealth {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.fortune-score {
    font-size: 14px;
    font-weight: 600;
    color: #a78bfa;
    width: 30px;
    text-align: right;
    flex-shrink: 0;
}

.view-detail {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a78bfa;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* 通知栏 */
.notice-bar {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.notice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notice-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* 功能九宫格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.feature-item:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.06);
}

.feature-icon-bg {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
}

.feature-icon-bg.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1));
}

.feature-icon-bg.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0.1));
}

.feature-icon-bg.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
}

.feature-icon-bg.indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(99, 102, 241, 0.1));
}

.feature-icon-bg.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(6, 182, 212, 0.1));
}

.feature-icon-bg.orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(249, 115, 22, 0.1));
}

.feature-icon-bg.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.1));
}

.feature-icon-bg.rose {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(244, 63, 94, 0.1));
}

.feature-icon-bg.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(245, 158, 11, 0.1));
}

.feature-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* 区块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.more-link {
    font-size: 13px;
    color: #a78bfa;
    text-decoration: none;
}

/* 今日运势 */
.today-fortune {
    margin-bottom: 24px;
}

.today-fortune .fortune-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
}

.today-fortune .fortune-content {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.lucky-info {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lucky-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lucky-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.lucky-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* 星座速查 */
.zodiac-quick {
    margin-bottom: 24px;
}

.zodiac-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.zodiac-scroll::-webkit-scrollbar {
    display: none;
}

.zodiac-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #ffffff;
    padding: 12px 8px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.zodiac-mini:active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.zodiac-symbol {
    font-size: 24px;
}

.zodiac-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* 底部导航 */
.cece-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    transition: color 0.3s;
}

.tab-item.active {
    color: #a78bfa;
}

.tab-icon {
    font-size: 22px;
}

.tab-label {
    font-size: 11px;
}

/* 响应式 */
@media (min-width: 768px) {
    .cece-main {
        max-width: 600px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card,
.notice-bar,
.feature-item,
.today-fortune .fortune-card,
.zodiac-mini {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.15s; }
.feature-item:nth-child(3) { animation-delay: 0.2s; }
.feature-item:nth-child(4) { animation-delay: 0.25s; }
.feature-item:nth-child(5) { animation-delay: 0.3s; }
.feature-item:nth-child(6) { animation-delay: 0.35s; }
.feature-item:nth-child(7) { animation-delay: 0.4s; }
.feature-item:nth-child(8) { animation-delay: 0.45s; }
.feature-item:nth-child(9) { animation-delay: 0.5s; }
