/*
 * ┌──────────────────────────────────────────────┐
 * │ 菏泽明浩心理咨询服务有限公司 - 原创样式文件 │
 * │ © 2026 版权所有，未经许可禁止商业使用       │
 * │ 网站：https://www.love884.com                │
 * │ 备案号：鲁ICP备2022041703号                  │
 * └──────────────────────────────────────────────┘
 */
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #1a1a4e 0%, #4a148c 50%, #880e4f 100%);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-yellow: #ffd700;
    --accent-orange: #ff9800;
    --accent-pink: #e91e63;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--primary-gradient);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* 星空背景 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 4s infinite ease-in-out;
}

.glow-1 {
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: #9c27b0;
}

.glow-2 {
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: #e91e63;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* 主容器 */
.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 页面通用样式 */
.page {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-out;
}

.page.active {
    display: flex;
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

/* Logo区域 */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-glow {
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.logo {
    position: relative;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(255, 152, 0, 0.4);
}

.logo svg {
    width: 50px;
    height: 50px;
    fill: white;
}

.app-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.app-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* 输入卡片 */
.input-card {
    width: 100%;
    max-width: 360px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 28px;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.input-header svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-yellow);
}

.input-header span {
    color: var(--text-primary);
    font-weight: 500;
}

.date-input {
    width: 100%;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 0 20px;
    font-size: 18px;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.date-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.date-input:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.input-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    display: none;
}

.error-message.show {
    display: block;
}

.btn-primary {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.4);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 152, 0, 0.5);
}

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

.btn-primary svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.footer-text {
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

/* 结果页样式 */
.result-page {
    animation: slideIn 0.5s ease-out;
    padding: 0;
}

.result-header {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(26, 26, 78, 0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    z-index: 10;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-back svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.result-content {
    flex: 1;
    padding: 20px;
    padding-top: 10px;
    overflow-y: auto;
}

.result-birth-date {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 20px;
}

.number-display {
    text-align: center;
    margin-bottom: 24px;
}

.number-circle-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.number-glow {
    position: absolute;
    inset: -15px;
    background: linear-gradient(135deg, #ffd700, #ff9800, #e91e63);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.6;
    animation: pulse 3s infinite;
}

.number-circle {
    position: relative;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #ffd700, #ff9800, #e91e63);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(255, 152, 0, 0.5);
    animation: scaleIn 0.8s ease-out;
}

.number-circle span {
    font-size: 64px;
    font-weight: bold;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.number-title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 6px;
}

.number-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* 关键词标签 */
.keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.keyword-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    animation: scaleIn 0.5s ease-out backwards;
}

/* 卡片样式 */
.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon.yellow {
    background: linear-gradient(135deg, #ffd700, #ff9800);
}

.card-icon.blue {
    background: linear-gradient(135deg, #2196f3, #03a9f4);
}

.card-icon.pink {
    background: linear-gradient(135deg, #e91e63, #f48fb1);
}

.card-icon.green {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.card-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.card-title {
    color: white;
    font-size: 17px;
    font-weight: bold;
}

.card-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.8;
}

.card-content ul {
    list-style: none;
}

.card-content li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
}

.card-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

/* 幸运信息 */
.lucky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.lucky-item {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
}

.lucky-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 193, 7, 0.1));
    border-color: rgba(255, 193, 7, 0.3);
}

.lucky-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.1));
    border-color: rgba(33, 150, 243, 0.3);
}

.lucky-icon {
    width: 24px;
    height: 24px;
    margin: 0 auto 8px;
    fill: rgba(255, 255, 255, 0.8);
}

.lucky-item:nth-child(2) .lucky-icon {
    fill: #ffd700;
}

.lucky-item:nth-child(3) .lucky-icon {
    fill: #2196f3;
}

.lucky-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    margin-bottom: 4px;
}

.lucky-value {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

/* 重新测算按钮 */
.btn-secondary {
    width: 100%;
    max-width: 200px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    padding-bottom: 20px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* 响应式 */
@media (min-width: 768px) {
    .input-card {
        max-width: 400px;
    }
    
    .result-content {
        max-width: 600px;
        margin: 0 auto;
    }
}