/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 加载屏幕 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 屏幕容器 */
.screen {
    min-height: 100vh;
    width: 100%;
}

/* 登录屏幕 */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px 120px 20px; /* 增加底部内边距，避免被底部导航栏遮挡 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 登录标签页 */
.login-tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.tab-btn.active {
    background: white;
    color: #6B46C1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 表单样式 */
.auth-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.3);
}

/* 按钮样式 */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6B46C1, #9333EA);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.6);
}

.btn-secondary {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #6B46C1;
    border: 2px solid #6B46C1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #6B46C1;
    color: white;
}

/* 主应用界面 */
.main-screen {
    background: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部栏 */
.top-bar {
    background: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-info {
    font-weight: 600;
    color: #374151;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    color: #6B46C1;
}

/* 侧边菜单 */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.menu-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #6B46C1;
    color: white;
}

.menu-header h3 {
    margin: 0;
}

.menu-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-nav {
    padding: 20px 0;
}

.menu-nav a {
    display: block;
    padding: 15px 20px;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-left: 4px solid transparent;
}

.menu-nav a:hover {
    background: #f3f4f6;
    border-left-color: #6B46C1;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 0 0 80px 0;
    overflow-y: auto;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* 卡片样式 */
.daily-card,
.daily-divination-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.daily-card h2,
.daily-divination-card h2 {
    color: #6B46C1;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 快速操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.action-btn .icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}

.action-btn span:last-child {
    font-size: 0.9rem;
    color: #6B46C1;
    font-weight: 600;
}

/* 占卜类型 */
.divination-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.divination-type {
    background: white;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.divination-type:hover {
    border-color: #6B46C1;
    transform: translateY(-2px);
}

.divination-type h3 {
    color: #6B46C1;
    margin-bottom: 8px;
}

.divination-type p {
    color: #6b7280;
    margin-bottom: 10px;
}

.type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-badge.premium {
    background: #f59e0b;
}

/* 运势详情 */
.fortune-details {
    /* background: white; */
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 让今日运势概览内容在一行显示 */
.fortune-overview {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: nowrap;
}

.fortune-overview .fortune-score,
.fortune-overview .fortune-stars,
.fortune-overview .fortune-summary-text {
	white-space: nowrap;
}

.fortune-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.fortune-stat {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.fortune-stat .label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.fortune-stat .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6B46C1;
}

.fortune-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.star {
    color: #fbbf24;
}

.star.empty {
    color: #e5e7eb;
}

/* 内容分类 */
.content-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.category-btn.active,
.category-btn:hover {
    border-color: #6B46C1;
    background: #6B46C1;
    color: white;
}

/* 每日小贴士 */
.daily-tip {
    background: linear-gradient(135deg, #6B46C1, #9333EA);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.daily-tip h3 {
    margin-bottom: 10px;
}

/* 文章列表 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.article-item h3 {
    color: #6B46C1;
    margin-bottom: 8px;
}

.article-item p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    justify-content: between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* 个人资料 */
.profile-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B46C1, #9333EA);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px;
    color: white;
}

.avatar-container {
    position: relative;
    margin: 0 auto 15px;
}

.avatar-container .avatar {
    margin: 0;
    object-fit: cover;
    border: 3px solid #6B46C1;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(107, 70, 193, 0.9);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-overlay:hover {
    background: rgba(107, 70, 193, 1);
    transform: scale(1.1);
}

.avatar-edit-btn {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.profile-info {
    margin-top: 15px;
}

.profile-info h3 {
    margin-bottom: 5px;
    color: #374151;
    font-size: 1.5rem;
}

.profile-info p {
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 1rem;
}

.user-level {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #6B46C1, #9333EA);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(107, 70, 193, 0.9);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(107, 70, 193, 1);
    transform: scale(1.05);
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.profile-form input,
.profile-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.profile-form input:focus,
.profile-form select:focus {
    outline: none;
    border-color: #6B46C1;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.form-actions button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6B46C1, #9333EA);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-small:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-small.favorite {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.btn-small.favorite:hover {
    background: #fde68a;
}

/* 订阅信息 */
.subscription-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subscription-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e5e7eb;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.subscription-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1.2rem;
}

.subscription-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.subscription-badge.free {
    background: #dcfce7;
    color: #16a34a;
}

.subscription-features {
    margin-bottom: 20px;
}

.subscription-features p {
    margin: 8px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.no-history {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.subscription-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
}

.plan-type {
    font-weight: 600;
    color: #6B46C1;
}

.plan-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-status.active {
    background: #dcfce7;
    color: #16a34a;
}

.plan-status.expired {
    background: #fee2e2;
    color: #dc2626;
}

/* 历史记录 */
.history-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.history-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.history-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.history-tab:hover {
    color: #6B46C1;
}

.history-tab.active {
    color: #6B46C1;
    border-bottom-color: #6B46C1;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #6B46C1;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-type {
    background: #6B46C1;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.history-date {
    color: #6b7280;
    font-size: 0.8rem;
}

.history-question {
    margin-bottom: 8px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #6B46C1;
}

.history-result {
    margin-bottom: 12px;
    padding: 8px;
    background: #fef3c7;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

.history-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 偏好设置 */
.preferences-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.preference-item {
    display: flex;
    align-items: center;
}

.preference-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.preference-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #6B46C1;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
}

.preference-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6B46C1;
    font-weight: bold;
    font-size: 12px;
}

/* 账户操作 */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.account-actions button {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-actions .btn-danger {
    background: #ef4444;
    color: white;
}

.account-actions .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.history-item .date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.history-item .type {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.history-item .summary {
    font-size: 0.9rem;
    color: #6b7280;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    padding: 10px 0 max(10px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #9ca3af;
}

.nav-btn.active {
    color: #6B46C1;
}

.nav-btn .icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.nav-btn span:last-child {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Toast 通知 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.warning {
    background: #f59e0b;
}

.toast.loading {
    background: #6366f1;
    color: white;
}

.loading-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-content .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-content span {
    font-size: 14px;
    font-weight: 500;
}

/* 占卜结果 */
.result-area {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tarot-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tarot-card {
    background: linear-gradient(135deg, #6B46C1, #9333EA);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.tarot-card.reversed {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.tarot-card .name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.tarot-card .position {
    font-size: 0.8rem;
    opacity: 0.8;
}

.interpretation {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #6B46C1;
}

.advice {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

/* 日期选择器 */
.date-selector {
    margin-bottom: 20px;
    text-align: center;
}

.date-selector input {
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.date-selector input:focus {
    outline: none;
    border-color: #6B46C1;
}

/* 建议部分 */
.advice-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.advice-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 15px;
}

.advice-item h4 {
    color: #6B46C1;
    margin-bottom: 10px;
    font-size: 1rem;
}

.advice-item ul {
    list-style: none;
}

.advice-item li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: #6b7280;
    position: relative;
    padding-left: 15px;
}

.advice-item li:before {
    content: "•";
    color: #6B46C1;
    position: absolute;
    left: 0;
}

/* 关键词 */
.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.keyword {
    background: #6B46C1;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        padding: 20px 20px 120px 20px; /* 保持底部内边距，避免被底部导航栏遮挡 */
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .auth-form {
        padding: 20px;
    }
    
    .main-content {
        padding: 0 0 90px 0;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fortune-stats {
        grid-template-columns: 1fr;
    }
    
    .advice-grid {
        grid-template-columns: 1fr;
    }
    
    .tarot-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .tarot-card {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-btn {
        padding: 15px 8px;
    }
    
    .action-btn .icon {
        font-size: 1.5rem;
    }
    
    .content-categories {
        flex-wrap: wrap;
    }
}

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

.tab-content.active {
    animation: fadeIn 0.3s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 安全区域适配 */
@supports (padding: max(0px)) {
    .top-bar {
        padding-top: max(15px, env(safe-area-inset-top));
    }
    
    .bottom-nav {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* 日历样式 */
.calendar-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-direction: row;
}

.calendar-controls {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.calendar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calendar-icon {
    font-size: 16px;
}

.date-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    min-width: 200px;
    width: 100%;
    height: 100px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    cursor: grab;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    /* 优化滚动性能 */
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    /* 确保容器有宽度 */
    display: block;
    box-sizing: border-box;
}

/* 滚动提示箭头 */
.scroll-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    opacity: 0.6;
}

/* 加载状态指示器 */
.scroll-hint.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.1);
    }
}

.scroll-hint:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}

.scroll-hint-left {
    left: 8px;
}

.scroll-hint-right {
    right: 8px;
}

.scroll-hint span {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

.scroll-hint-left span {
    margin-left: -1px;
}

.scroll-hint-right span {
    margin-right: -1px;
}

.date-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.date-scroll-container:active {
    cursor: grabbing;
}

.date-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 15px;
    min-width: max-content;
    user-select: none;
    align-items: center;
    /* 优化渲染性能 */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.date-item {
    text-align: center;
    width: 60px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.date-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.date-item.today {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: 3px solid #22c55e;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5), 0 0 0 2px rgba(34, 197, 94, 0.2);
    transform: scale(1.05);
    color: white;
    position: relative;
    animation: todayPulse 2s ease-in-out infinite;
    z-index: 5;
}

.date-item.today::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #22c55e, #16a34a, #22c55e, #22c55e);
    border-radius: 16px;
    z-index: -1;
    animation: todayGlow 2s ease-in-out infinite;
    opacity: 0.8;
}

.date-item.today .date-weekday,
.date-item.today .date-number {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.date-item.today.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6), 0 0 0 3px rgba(34, 197, 94, 0.3);
    transform: scale(1.08);
    animation: todayPulseActive 2s ease-in-out infinite;
}

.date-item.today.selected {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #22c55e;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6), 0 0 0 3px rgba(34, 197, 94, 0.3);
    transform: scale(1.08);
    animation: todayPulseActive 2s ease-in-out infinite;
}

@keyframes todayPulseActive {
    0%, 100% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6), 0 0 0 3px rgba(34, 197, 94, 0.3);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 10px 30px rgba(34, 197, 94, 0.8), 0 0 0 4px rgba(34, 197, 94, 0.4);
    }
}

@keyframes todayPulse {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5), 0 0 0 2px rgba(34, 197, 94, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.7), 0 0 0 3px rgba(34, 197, 94, 0.4);
    }
}

@keyframes todayGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.date-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.date-item.selected .date-weekday,
.date-item.selected .date-number {
    color: white;
}

.date-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.date-item.today:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.7), 0 0 0 3px rgba(34, 197, 94, 0.4);
    animation: none;
}

.date-item.today:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

.date-item.today:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.5), 0 8px 25px rgba(34, 197, 94, 0.7);
}

.date-item.today:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.8);
    outline-offset: 2px;
}

.date-item.today:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.date-item.today:active::before {
    transform: scale(0.95);
}

/* 响应式设计 - 在小屏幕上增强今天的日期显示 */
@media (max-width: 768px) {
    .date-item.today {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6), 0 0 0 3px rgba(34, 197, 94, 0.3);
    }
    
    .date-item.today .date-number {
        font-size: 20px;
    }
    
    .today-indicator {
        font-size: 9px;
        padding: 1px 4px;
        top: -6px;
        right: -6px;
    }
}

/* 加载时的特殊效果 */
.date-item.today.loading {
    animation: todayLoading 1.5s ease-in-out infinite;
}

@keyframes todayLoading {
    0%, 100% {
        opacity: 1;
        transform: scale(1.05);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* 错误状态的特殊效果 */
.date-item.today.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    animation: todayError 1s ease-in-out infinite;
}

@keyframes todayError {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.7);
    }
}

/* 成功状态的特殊效果 */
.date-item.today.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    animation: todaySuccess 1s ease-in-out infinite;
}

@keyframes todaySuccess {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.7);
    }
}

/* 警告状态的特殊效果 */
.date-item.today.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    animation: todayWarning 1s ease-in-out infinite;
}

@keyframes todayWarning {
    0%, 100% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.7);
    }
}

.date-item.other-month {
    opacity: 0.5;
    color: #999;
    background: rgba(255, 255, 255, 0.6);
}

.date-item.other-month .date-weekday,
.date-item.other-month .date-number {
    color: #999;
}

/* 过去日期的样式 */
.date-item.past-date {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.7);
    border-color: #e5e7eb;
}

.date-item.past-date .date-weekday,
.date-item.past-date .date-number {
    color: #6b7280;
}

.date-item.past-date:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.date-item.past-date.selected {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    border-color: #6b7280;
}

.date-item.past-date.selected .date-weekday,
.date-item.past-date.selected .date-number {
    color: white;
}

.date-item text {
    display: block;
}

.date-weekday {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-number {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.today-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: todayIndicatorPulse 1.5s ease-in-out infinite;
    z-index: 10;
    white-space: nowrap;
    transform: scale(0.9);
}

@keyframes todayIndicatorPulse {
    0%, 100% {
        transform: scale(0.9);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6);
    }
}

.date-item.active .date-weekday,
.date-item.active .date-number {
    color: white;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.scroll-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.dot.active {
    background: #667eea;
    transform: scale(1.2);
}

/* 月份选择器 */
.month-picker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.month-picker.active {
    display: flex;
}

.month-picker-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 300px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.month-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.month-picker-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.month-picker-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.month-item {
    padding: 15px 10px;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.month-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.month-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.year-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.year-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #667eea;
    padding: 5px 10px;
}

.year-display {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .calendar-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .date-item {
        /* flex: 0 0 calc(10% - 4px);
        min-width: 50px;
        padding: 10px 6px; */
    }
    
    .date-number {
        font-size: 16px;
    }
    
    .date-weekday {
        font-size: 10px;
    }
    
    .calendar-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .month-picker-content {
        padding: 20px;
    }
    
    .month-item {
        padding: 12px 8px;
        font-size: 14px;
    }
}

/* 星盘相关样式 */
.astro-form {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6B46C1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

/* 星盘列表 */
.astro-charts {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.charts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9fafb;
}

.chart-item:hover {
    border-color: #6B46C1;
    background: #f5f3ff;
}

.chart-item.default {
    border-color: #10b981;
    background: #ecfdf5;
}

.chart-info h4 {
    margin: 0 0 5px 0;
    color: #374151;
    font-size: 1.1rem;
}

.chart-info p {
    margin: 2px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.default-badge {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.chart-actions {
    display: flex;
    gap: 5px;
}

.btn-mini {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    background: #6B46C1;
    color: white;
    transition: background 0.2s;
}

.btn-mini:hover {
    background: #553c9a;
}

.btn-mini.btn-danger {
    background: #ef4444;
}

.btn-mini.btn-danger:hover {
    background: #dc2626;
}

/* 星盘显示 */
.astro-chart {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.chart-actions {
    display: flex;
    gap: 10px;
}

/* 基本信息 */
.chart-basic-info {
    margin-bottom: 20px;
}

.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #6B46C1;
}

.info-item label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 5px;
}

.info-item span {
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
}

/* 十二宫格 */
.chart-palaces {
    margin: 20px 0;
}

.palace-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 4/3;
}

.palace {
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 8px;
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    position: relative;
    transition: border-color 0.2s;
}

.palace:hover {
    border-color: #6B46C1;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.1);
}

.palace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e7eb;
}

.palace-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.palace-stem-branch {
    font-size: 0.8rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.palace-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.major-stars,
.minor-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.star {
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

.star.major {
    background: #dc2626;
    color: white;
    font-weight: 600;
}

.star.minor {
    background: #2563eb;
    color: white;
}

/* 特殊宫位样式 */
.palace[data-palace="命宫"] {
    border-color: #dc2626;
    background: #fef2f2;
}

.palace[data-palace="身宫"] {
    border-color: #059669;
    background: #f0fdf4;
}

/* 运限信息 */
.horoscope-info {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.horoscope-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.horoscope-section {
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #6B46C1;
}

.horoscope-section h5 {
    margin: 0 0 10px 0;
    color: #6B46C1;
    font-size: 1rem;
}

.horoscope-section p {
    margin: 5px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .palace-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        aspect-ratio: 3/4;
    }
    
    .palace {
        min-height: 100px;
        padding: 6px;
    }
    
    .palace-name {
        font-size: 0.8rem;
    }
    
    .palace-stem-branch {
        font-size: 0.7rem;
    }
    
    .star {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .basic-info-grid {
        grid-template-columns: 1fr;
    }
    
    .horoscope-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .palace-grid {
        gap: 1px;
    }
    
    .palace {
        min-height: 80px;
        padding: 4px;
    }
    
    .palace-header {
        margin-bottom: 4px;
    }
    
    .star {
        font-size: 0.5rem;
        padding: 1px 2px;
    }
}

/* ============================== */
/* 紫微斗数星盘布局样式 */
/* ============================== */

.astrolabe-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.astrolabe-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.astrolabe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    gap: 2px;
    aspect-ratio: 1/1;
    background: var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.palace-cell {
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 140px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.palace-cell:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.palace-cell.ming-gong {
    background: rgba(255, 215, 0, 0.15);
    border: 2px solid #ffd700;
}

.palace-cell.shen-gong {
    background: rgba(255, 165, 0, 0.15);
    border: 2px solid #ffa500;
}

.palace-cell.opposite-gong {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
}

.palace-cell.empty-cell {
    background: transparent;
    border: none;
    min-height: 0;
    pointer-events: none;
}

.palace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: bold;
    min-height: 28px;
}

.palace-name {
    font-size: 0.85rem;
    font-weight: bold;
}

.palace-stem-branch {
    font-size: 0.75rem;
    opacity: 0.9;
}

.palace-body {
    flex: 1;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
}

.palace-stars {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.star-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

.star {
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
}

.star:hover {
    transform: scale(1.1);
    z-index: 5;
}

.star.major {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.star.minor {
    background: linear-gradient(135deg, #4834d4, #686de0);
    color: white;
}

.star.adjective {
    background: linear-gradient(135deg, #00d2d3, #01a3a4);
    color: white;
    font-size: 0.65rem;
}

.star.lucun {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    font-weight: bold;
}

.star.tough {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.star.soft {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.star.flower {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
}

/* 亮度样式 */
.star.brightness-庙 {
    box-shadow: 0 0 6px gold, 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.star.brightness-旺 {
    box-shadow: 0 0 4px orange, 0 2px 4px rgba(0, 0, 0, 0.2);
}

.star.brightness-得 {
    box-shadow: 0 0 3px lightgreen, 0 2px 4px rgba(0, 0, 0, 0.2);
}

.star.brightness-利 {
    opacity: 0.9;
}

.star.brightness-不 {
    opacity: 0.8;
    filter: grayscale(0.2);
}

.star.brightness-陷 {
    opacity: 0.7;
    filter: grayscale(0.4);
}

.palace-info {
    font-size: 0.65rem;
    color: #666;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2px;
}

.palace-age {
    color: var(--primary-color);
    font-weight: bold;
}

.palace-changsheng {
    color: #666;
    font-style: italic;
}

/* 宫位特殊标记 */
.palace-cell::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.palace-cell.ming-gong::before {
    background: radial-gradient(circle, #ffd700, #ffed4e);
    opacity: 1;
}

.palace-cell.shen-gong::before {
    background: radial-gradient(circle, #ffa500, #ffb84d);
    opacity: 1;
}

/* 星盘基本信息 */
.astrolabe-basic-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.astrolabe-basic-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.basic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item label {
    color: var(--text-color);
    font-weight: 500;
}

.info-item span {
    color: var(--primary-color);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .astrolabe-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .astrolabe-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .palace-cell {
        min-height: 120px;
    }
    
    .palace-header {
        padding: 4px 6px;
        font-size: 0.8rem;
        min-height: 24px;
    }
    
    .palace-name {
        font-size: 0.8rem;
    }
    
    .palace-stem-branch {
        font-size: 0.7rem;
    }
    
    .palace-body {
        padding: 4px 6px;
    }
    
    .star {
        font-size: 0.65rem;
        padding: 1px 3px;
    }
    
    .star.adjective {
        font-size: 0.6rem;
    }
    
    .palace-info {
        font-size: 0.6rem;
    }
    
    .basic-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .astrolabe-container {
        margin: 0.5rem;
        padding: 0.5rem;
    }
    
    .astrolabe-grid {
        gap: 1px;
    }
    
    .palace-cell {
        min-height: 100px;
    }
    
    .palace-header {
        padding: 3px 4px;
        font-size: 0.7rem;
        min-height: 20px;
    }
    
    .palace-name {
        font-size: 0.75rem;
    }
    
    .palace-stem-branch {
        font-size: 0.65rem;
    }
    
    .palace-body {
        padding: 3px 4px;
        gap: 2px;
    }
    
    .star {
        font-size: 0.6rem;
        padding: 1px 2px;
    }
    
    .star.adjective {
        font-size: 0.55rem;
    }
    
    .palace-info {
        font-size: 0.55rem;
    }
}

/* 塔罗牌占卜样式 */
.tarot-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding: 0 20px;
    justify-content: center;
}

.tarot-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tarot-tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.tarot-tab-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #6366f1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.tab-text {
    font-weight: 500;
}

.tarot-tab-content {
    display: none;
    padding: 20px;
}

.tarot-tab-content.active {
    display: block;
}

.tarot-question-section {
    text-align: center;
    margin-bottom: 30px;
}

.tarot-question-section h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.question-form textarea {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    resize: vertical;
    backdrop-filter: blur(10px);
}

.question-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 单张牌样式 */
.single-card-area {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

/* 塔罗牌基础样式 */
.tarot-card {
    width: 150px;
    height: 240px;
    perspective: 1000px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.tarot-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-back, .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 翻转时的光晕效果 */
.tarot-card.flipped .card-front {
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.5);
}

.card-back {
    background: linear-gradient(135deg, #4a148c, #6a1b9a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-front {
    background: white;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 三张牌样式 */
.three-card-hint {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hint-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.hint-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.three-cards-area {
    text-align: center;
    margin: 40px 0;
}

.three-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    perspective: 1000px;
}

/* 扇形排列效果 */
.three-cards-container .three-card:first-child {
    transform: rotate(-15deg) translateY(10px);
}

.three-cards-container .three-card:nth-child(2) {
    transform: rotate(0deg) translateY(-5px);
    z-index: 2;
}

.three-cards-container .three-card:last-child {
    transform: rotate(15deg) translateY(10px);
}

.three-card {
    position: relative;
}

.card-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.flip-all-button {
    margin: 20px 0;
}

/* AI占卜师提示 */
.ai-diviner-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.diviner-avatar {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.diviner-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.diviner-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.diviner-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 解读内容样式 */
.single-card-interpretation,
.three-cards-interpretation {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

.cards-detail {
    margin-bottom: 20px;
}

.card-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #6366f1;
}

.card-detail h4 {
    color: #a5b4fc;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.card-meaning,
.card-interpretation,
.card-advice,
.overall-interpretation,
.overall-advice {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #8b5cf6;
}

.card-meaning h4,
.card-interpretation h4,
.card-advice h4,
.overall-interpretation h4,
.overall-advice h4 {
    color: #a5b4fc;
    margin-bottom: 10px;
    font-size: 1rem;
}

.card-keywords {
    margin-top: 15px;
}

.card-keywords h4 {
    color: #a5b4fc;
    margin-bottom: 10px;
}

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

.interpretation-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.interpretation-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
}

.reset-section {
    text-align: center;
    margin: 30px 0;
}

/* 动画效果 */
.tarot-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.tarot-card:hover .card-inner {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.tarot-card:not(.flipped):hover {
    animation: cardGlow 2s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 30px rgba(139, 92, 246, 0.3);
    }
}

.tarot-card:not(.flipped):hover::after {
    content: "点击翻牌";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    animation: tooltip 0.3s ease-out;
}

@keyframes tooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.tarot-card.flipped {
    pointer-events: none;
}

.tarot-card.flipped .card-inner {
    animation: cardReveal 0.8s ease-out;
}

@keyframes cardReveal {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(90deg) scale(1.05);
    }
    100% {
        transform: rotateY(180deg) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tarot-tabs {
        padding: 0 10px;
        gap: 5px;
    }
    
    .tarot-tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .tab-icon {
        font-size: 16px;
    }
    
    .three-cards-container {
        gap: 15px;
    }
    
    .tarot-card {
        width: 120px;
        height: 192px;
    }
    
    .ai-diviner-hint {
        flex-direction: column;
        text-align: center;
    }
    
    .diviner-text {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .three-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .tarot-card {
        width: 140px;
        height: 224px;
    }
    
    .tarot-tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* 每日占卜模态框样式 */
.divination-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-out;
}

.divination-modal .modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInUp 0.4s ease-out;
}

.divination-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.divination-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.divination-modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.divination-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.divination-modal .modal-body {
    padding: 20px;
    color: white;
}

.daily-divination-result {
    text-align: center;
}

.divination-date {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #e0e7ff;
}

.divination-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tarot-card-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.tarot-card-info h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #a5b4fc;
}

.interpretation,
.advice {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    line-height: 1.6;
    text-align: left;
}

.lucky-elements {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

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

.lucky-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.lucky-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 占卜小贴士样式 */
.reading-tips {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reading-tips h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.reading-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reading-tips li {
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.reading-tips li:before {
    content: "✨";
    position: absolute;
    left: 0;
    color: #a5b4fc;
}

/* 抽取状态信息样式 */
.draw-status-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.membership-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.membership-level {
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

.draw-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.three-card-warning {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .draw-status-info {
        padding: 12px 15px;
    }
    
    .membership-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .membership-level {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .draw-count {
        font-size: 0.8rem;
    }
}

/* 占卜类型切换样式 */
.divination-type-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px;
    backdrop-filter: blur(10px);
    gap: 10px;
}

.divination-type-btn {
    flex: 0 1 auto;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.divination-type-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.divination-type-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.divination-area {
    display: none;
}

.divination-area.active {
    display: block;
}

/* 卢恩符文样式 */
.rune-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding: 0 20px;
    justify-content: center;
}

.rune-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.rune-tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.rune-tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.rune-tab-content {
    display: none;
}

.rune-tab-content.active {
    display: block;
}

/* 卢恩符文卡片样式 */
.rune-card {
    width: 120px;
    height: 160px;
    perspective: 1000px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
}

.rune-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.rune-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.rune-card .card-back,
.rune-card .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.rune-card .card-back {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rune-card .card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rune-card .card-front {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.rune-card .card-front img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* 翻转时的光晕效果 */
.rune-card.flipped .card-front {
    box-shadow: 
        0 0 25px rgba(139, 92, 246, 0.6),
        0 6px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(139, 92, 246, 0.5);
}

/* 单个卢恩符文区域 */
.single-rune-area {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

/* 三个卢恩符文区域 */
.three-runes-area {
    text-align: center;
    margin: 40px 0;
}

.three-runes-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    perspective: 1000px;
}

.three-rune-hint {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.rune-question-section {
    margin-bottom: 30px;
}

.rune-question-section h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 卢恩符文解读样式 */
.single-rune-interpretation,
.three-runes-interpretation {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.rune-meaning {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.rune-element {
    background: rgba(139, 92, 246, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.rune-detail {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #8b5cf6;
}

.keyword.reversed {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .divination-type-tabs {
        flex-direction: row;
        gap: 8px;
        padding: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .divination-type-btn {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .rune-tabs {
        flex-direction: row;
        gap: 8px;
        padding: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rune-tab-btn {
        min-width: 100px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .three-runes-container {
        gap: 15px;
    }
    
    .rune-card {
        width: 100px;
        height: 140px;
    }
    
    .single-rune-interpretation,
    .three-runes-interpretation {
        padding: 20px;
        margin-top: 20px;
    }
}

/* 今日启示录背景样式 */
.daily-inspiration {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-image: url('../imges/zhiyin.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 12px !important;
    overflow: hidden;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.daily-inspiration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    z-index: 1;
}

.daily-inspiration * {
    position: relative;
    z-index: 2;
    color: #fff !important;
}

.daily-inspiration h5 {
    color: #f8f9fa !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.daily-inspiration p {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

/* 本月运势解析背景样式 */
.fortune-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-image: url('../imges/yunshi.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 12px !important;
    overflow: hidden;
    color: #fff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    min-height: 80px;
    padding: 15px !important;
    margin: 10px 0;
}

.fortune-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    z-index: 1;
}

.fortune-content * {
    position: relative;
    z-index: 2;
    color: #fff !important;
}

.fortune-content p {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin: 0;
}