/* 善缘平台 - 主样式文件 */

/* 基础重置和变量 */
:root {
    --primary-color: #d4af37; /* 金色 */
    --secondary-color: #8b4513; /* 棕色 */
    --accent-color: #ff6b35; /* 橙红色 */
    --text-primary: #2c1810; /* 深棕色 */
    --text-secondary: #5d4e37; /* 中棕色 */
    --text-light: #8b7355; /* 浅棕色 */
    --bg-primary: #faf8f3; /* 米白色 */
    --bg-secondary: #f5f2e8; /* 浅米色 */
    --bg-card: #ffffff;
    --border-color: #e6d7c3;
    --shadow-light: 0 2px 8px rgba(212, 175, 55, 0.1);
    --shadow-medium: 0 4px 16px rgba(212, 175, 55, 0.15);
    --shadow-heavy: 0 8px 32px rgba(212, 175, 55, 0.2);
    --gradient-gold: linear-gradient(135deg, #d4af37, #f4d03f);
    --gradient-warm: linear-gradient(135deg, #faf8f3, #f5f2e8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: var(--gradient-warm);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: var(--bg-card);
    box-shadow: var(--shadow-light);
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端导航菜单 */
.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.nav-mobile.active .nav-mobile-content {
    transform: translateX(0);
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-mobile-links .nav-link {
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.nav-mobile-close:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* 主要内容区域 */
.main {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
}

/* 简洁版玩法介绍样式 */
.game-intro-simple {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 20px;
}

.intro-title-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    justify-content: center;
}

.title-icon-small {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(212, 175, 55, 0.3));
}

.intro-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.intro-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.9));
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid rgba(212, 175, 55, 0.15);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.intro-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.95));
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-1px);
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* 用户信息卡片 */
.user-card {
    background: var(--gradient-gold);
    color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-heavy);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.user-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.user-info .level {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.user-info .balance {
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.merit-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.merit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.merit-count {
    font-size: 32px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 4px;
}

.merit-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 当前善缘轮次 */
.current-round {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-light);
    border: 2px solid var(--primary-color);
}

.current-round h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* 善缘级别选择器 */
.amount-selector {
    margin-bottom: 24px;
}

.amount-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.amount-tab {
    flex: 1;
    max-width: 120px;
    padding: 12px 8px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
}

.amount-tab:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.amount-tab.active {
    border-color: var(--primary-color);
    background: var(--gradient-gold);
    color: white;
    box-shadow: var(--shadow-medium);
}

.amount-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.amount-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.round-info {
    text-align: center;
}

.round-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.participants {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    height: 100%;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}

/* 概率公式样式 */
.probability-section {
    margin: 16px 0;
    text-align: center;
}

.probability-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.probability-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

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

.probability-formula {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

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

.probability-formula h4 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
}

.formula-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.formula-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0;
}

.formula-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.current-probability {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.probability-value {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
}

.current-probability small {
    color: var(--text-light);
    font-size: 12px;
    margin-left: 8px;
}

.participate-btn {
    background: var(--gradient-gold);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.participate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.share-btn {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.share-btn i {
    font-size: 12px;
}

.participated {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

/* 参与部分样式 */
.participation-section {
    margin: 16px 0;
    text-align: center;
}

#participateButtonContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* 功德记录 */
.recent-merits {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-light);
}

.recent-merits h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* 交易明细和统计分析样式 */
.transaction-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.transaction-icon.income {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.transaction-icon.expense {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.transaction-details {
    flex: 1;
}

.transaction-type {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.transaction-time {
    font-size: 12px;
    color: var(--text-light);
}

.transaction-amount {
    font-weight: 600;
    font-size: 16px;
}

.transaction-amount.income {
    color: #27ae60;
}

.transaction-amount.expense {
    color: #e74c3c;
}

.loading-state, .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* 统计分析样式 */
.stats-overview {
    margin-bottom: 30px;
}

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

.overview-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.overview-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.overview-item.income {
    border-left: 4px solid #27ae60;
}

.overview-item.expense {
    border-left: 4px solid #e74c3c;
}

.overview-item.profit {
    border-left: 4px solid #3498db;
}

.overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-icon img {
    width: 24px;
    height: 24px;
}

.overview-content {
    flex: 1;
}

.overview-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.overview-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.overview-change {
    font-size: 12px;
    font-weight: 500;
}

.overview-change.positive {
    color: #27ae60;
}

.overview-change.negative {
    color: #e74c3c;
}

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

.chart-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

.stats-details {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.detail-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* 全站滚动公告样式 */
.fortune-announcement {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
    padding: 8px 0;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    overflow: hidden;
}

.announcement-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.announcement-icon {
    font-size: 20px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

.announcement-content {
    flex: 1;
    overflow: hidden;
}

.announcement-scroll {
    display: flex;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}

.announcement-item {
    margin-right: 60px;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.winner-phone {
    color: #fff200;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.round-number {
    color: #fff200;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 历史记录页面样式 */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.search-section {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    justify-content: center;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-group label {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.search-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
}

.search-btn, .clear-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.search-btn {
    background: var(--primary-color);
    color: white;
}

.clear-btn {
    background: #6c757d;
    color: white;
}

.stats-section {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.fortune-history-section {
    margin-top: 20px;
}

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

.fortune-record-detail {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.fortune-record-detail:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.record-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.round-info-detail h3 {
    margin: 0 0 4px 0;
    color: var(--primary-color);
    font-size: 18px;
}

.participant-count {
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
}

.record-date-detail {
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
}

.record-content-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.winner-section-detail, .karma-section-detail {
    padding: 12px;
    border-radius: 8px;
}

.winner-section-detail {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #f39c12;
}

.karma-section-detail {
    background: linear-gradient(135deg, #d1ecf1, #b3e5fc);
    border-left: 4px solid #17a2b8;
}

.section-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.winner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.winner-phone-detail {
    font-weight: 700;
    color: #d35400;
    font-size: 16px;
}

.winner-amount {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.karma-participants-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.karma-phone-detail {
    background: #fff;
    color: #2c3e50;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #bdc3c7;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-dots {
    padding: 8px 4px;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 20px;
}

/* 简约历史福报记录样式 */
.fortune-history-simple {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fortune-record-simple {
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.2s ease;
}

.fortune-record-simple:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.fortune-record-simple:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, #d0d0d0, transparent);
}

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

.round-info {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.record-date {
    font-size: 12px;
    color: var(--text-light);
}

.participants-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.winner-line,
.karma-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.winner-label,
.karma-label {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 36px;
    flex-shrink: 0;
}

.winner-phone {
    color: var(--accent-color);
    font-weight: 600;
}

.karma-phones-simple {
    color: var(--text-primary);
    word-break: break-all;
}

.participants-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.participant-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--bg-primary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.participant-phone.winner {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: var(--primary-color);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.winner-badge {
    font-size: 10px;
    color: var(--accent-color);
    font-weight: 600;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 善缘获得者区域样式 */
.winner-section {
    margin-top: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.winner-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.winner-section .participant-phone.winner {
    background: var(--gradient-gold);
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.view-all-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.no-records {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px 20px;
}

/* 登录页面样式 */
.login-page {
    background: var(--gradient-warm);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.login-header {
    background: var(--gradient-gold);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header .logo {
    justify-content: center;
    margin-bottom: 12px;
}

.login-header h1 {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.slogan {
    font-size: 14px;
    opacity: 0.9;
}

.form-container {
    padding: 30px;
}

.form-tabs {
    display: flex;
    margin-bottom: 24px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-gold);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 提示信息 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

/* 消息提示样式 */
.message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
    box-shadow: var(--shadow-light);
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: #f0f9ff;
    color: #0f5132;
    border-left-color: #198754;
    border: 1px solid #b3e5fc;
}

.message.error {
    background: #fef2f2;
    color: #842029;
    border-left-color: #dc3545;
    border: 1px solid #f5c2c7;
}

.message.info {
    background: #e7f3ff;
    color: #055160;
    border-left-color: #0dcaf0;
}

/* 参与状态提示 */
.participated-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮次完成状态 */
.round-completed {
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* 登录页面底部特性 */
.login-footer {
    background: var(--bg-secondary);
    padding: 30px;
}

.features {
    display: grid;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.feature-text h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-light);
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 返回按钮样式 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.back-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(-2px);
    box-shadow: var(--shadow-medium);
}

.back-btn:before {
    content: '←';
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.back-btn:hover:before {
    transform: translateX(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* 个人中心样式 */
.user-profile-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.user-avatar {
    flex-shrink: 0;
}

.avatar-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-gold);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.user-level {
    color: var(--secondary-color);
}

/* 快捷功能按钮样式 */
.quick-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    min-width: 120px;
    justify-content: center;
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.action-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(212, 175, 55, 0.3));
}

.action-text {
    font-size: 14px;
}



.settings-btn:hover {
    color: var(--secondary-color);
}




    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 金额选择样式 */
.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.amount-option {
    position: relative;
    cursor: pointer;
}

.amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.amount-text {
    display: block;
    padding: 16px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-primary);
}

.amount-option input[type="radio"]:checked + .amount-text {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.amount-option:hover .amount-text {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.amount-text small {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.amount-option input[type="radio"]:checked + .amount-text small {
    color: var(--primary-color);
}

/* 支付方式样式 */
.payment-options {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.payment-option {
    position: relative;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-text {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.payment-option:hover .payment-text {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.payment-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.payment-text small {
    color: var(--text-light);
    font-size: 12px;
}

.payment-option input[type="radio"]:checked + .payment-text strong {
    color: var(--primary-color);
}

/* 功德预览 */
.merit-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    display: none;
}



.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-badge.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-badge.failed {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

/* 善缘寄语卡片 */
.blessing-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-top: 24px;
}

.blessing-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.blessing-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
    flex-shrink: 0;
}

.blessing-text h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 18px;
}

.blessing-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    font-style: italic;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
    width: 100%;
    margin-top: 20px;
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: brightness(0) invert(1);
}

/* 提现设置页面样式 */
.bank-card-form {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.bank-card-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.bank-card-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.bank-card-form input,
.bank-card-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.bank-card-form input:focus,
.bank-card-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.bank-card-form .form-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* 银行卡列表样式 */
.bank-cards-list {
    display: grid;
    gap: 16px;
}

.bank-card-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.bank-card-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.bank-card-item.default {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.05);
}

.bank-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bank-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bank-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-number {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.card-holder {
    font-size: 14px;
    color: var(--text-secondary);
}

.default-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: #dc3545;
    color: white;
}



/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 捐赠页面样式 */
.merit-card {
    background: linear-gradient(135deg, #f8f4e6 0%, #f0e68c 100%);
    border: 2px solid #daa520;
    margin-bottom: 20px;
}

.merit-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.merit-icon img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(218, 165, 32, 0.3));
}

.merit-content {
    flex: 1;
}

.merit-label {
    font-size: 14px;
    color: #8b7355;
    margin-bottom: 5px;
}

.merit-value {
    font-size: 28px;
    font-weight: bold;
    color: #b8860b;
    margin-bottom: 5px;
}

.merit-hint {
    font-size: 12px;
    color: #8b7355;
}

.balance-info {
    text-align: right;
}

.balance-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
    color: #2c5530;
}

.donation-intro {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
}

.intro-content h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 18px;
}

.merit-rules {
    line-height: 1.8;
}

.merit-rules p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

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

.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.amount-option {
    cursor: pointer;
}

.amount-option input[type="radio"] {
    display: none;
}

.amount-btn {
    display: block;
    padding: 12px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.amount-option input[type="radio"]:checked + .amount-btn {
    border-color: #28a745;
    background: #28a745;
    color: #fff;
}

.amount-btn:hover {
    border-color: #28a745;
    background: #f8f9fa;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-btn {
    display: block;
    padding: 12px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-btn {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.payment-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.donation-list {
    max-height: 400px;
    overflow-y: auto;
}

.donation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.donation-item:hover {
    background-color: #f8f9fa;
}

.donation-item:last-child {
    border-bottom: none;
}

.donation-info {
    flex: 1;
}

.donation-amount {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.donation-merit {
    font-size: 14px;
    color: #b8860b;
    margin-bottom: 5px;
}

.donation-time {
    font-size: 12px;
    color: #666;
}

.donation-method {
    font-size: 14px;
    color: #666;
    margin-right: 15px;
}

.donation-status .status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 提现页面样式 */
.status-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #28a745;
    margin-bottom: 20px;
}

.status-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.withdrawal-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c5530;
}

.stat-value.processing {
    color: #ff9800;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffcc80;
    animation: pulse-processing 2s infinite;
}

@keyframes pulse-processing {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.warning-card {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 20px;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.warning-icon {
    font-size: 24px;
}

.warning-text {
    flex: 1;
}

.warning-text h3 {
    margin: 0 0 8px 0;
    color: #856404;
}

.warning-text p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.bank-info {
    margin-bottom: 20px;
}

.bank-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bank-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

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

.account-number {
    font-size: 18px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.account-name {
    font-size: 14px;
    opacity: 0.9;
}

.edit-link {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.edit-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.amount-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: #666;
    font-weight: bold;
    z-index: 1;
}

.amount-input {
    padding-left: 35px !important;
    font-size: 18px;
    font-weight: 500;
}

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.quick-amount-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.quick-amount-btn.selected {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

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

.form-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.info-card {
    background: #f8f9fa;
    border-left: 4px solid #17a2b8;
}

.info-content h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-rules {
    line-height: 1.8;
}

.info-rules p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.withdrawal-list {
    max-height: 500px;
    overflow-y: auto;
}

.withdrawal-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.withdrawal-item:hover {
    background-color: #f8f9fa;
}

.withdrawal-item:last-child {
    border-bottom: none;
}

.withdrawal-info {
    flex: 1;
}

.withdrawal-amount {
    font-size: 18px;
    font-weight: bold;
    color: #dc3545;
    margin-bottom: 5px;
}

.withdrawal-bank {
    font-size: 14px;
    color: #333;
    margin-bottom: 3px;
}

.withdrawal-account {
    font-size: 12px;
    color: #666;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
}

.withdrawal-time {
    font-size: 12px;
    color: #666;
}

.withdrawal-remark {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.withdrawal-status {
    text-align: right;
    min-width: 100px;
}

.processed-time {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.admin-remark {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    max-width: 150px;
    word-wrap: break-word;
}

.status-badge.processing {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.pagination-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: #fff;
}

/* 个人中心功能操作按钮样式 */
.action-buttons {
    margin-bottom: 20px;
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.donation-btn {
    border-color: #28a745;
}

.donation-btn:hover {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
}

.settings-btn {
    border-color: #17a2b8;
}

.settings-btn:hover {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

.withdrawal-btn {
    border-color: #dc3545;
}

.withdrawal-btn:hover {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8f9fa 0%, #f8e8e8 100%);
}

.action-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8f9fa;
}

.action-icon img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.action-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .bank-card-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .bank-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .amount-options {
         grid-template-columns: repeat(2, 1fr);
     }

/* 提现申请页面样式 */


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

.info-item {
    text-align: center;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.bank-card-selector {
    margin-bottom: 20px;
}

.bank-card-option {
    position: relative;
    cursor: pointer;
    margin-bottom: 12px;
}

.bank-card-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bank-card-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bank-card-option input[type="radio"]:checked + .bank-card-display {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

.bank-card-option:hover .bank-card-display {
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.bank-card-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-card-name {
    font-weight: 600;
    color: var(--text-primary);
}

.bank-card-num {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.amount-input-group {
    position: relative;
    margin-bottom: 20px;
}

.amount-input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 60px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.currency-symbol {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
}

.fee-calculation {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fee-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 193, 7, 0.3);
    font-weight: 600;
}

.fee-label {
    color: var(--text-secondary);
}

.fee-value {
    color: var(--text-primary);
    font-weight: 500;
}

.fee-row:last-child .fee-value {
    color: var(--accent-color);
    font-size: 18px;
}



.status-badge.processing {
    background: rgba(0, 123, 255, 0.2);
    color: #004085;
}

.status-badge.success {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-badge.rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}


    margin-bottom: 12px;
    font-size: 14px;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.limit-item {
    text-align: center;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 6px;
}

.limit-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.limit-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    

    
    .limits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bank-card-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-value.balance {
    color: var(--success-color);
}

.stat-value.merit {
    color: var(--warning-color);
}

.referral-code {
    cursor: pointer;
    position: relative;
    padding: 0.25rem 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.referral-code:hover {
    background: rgba(212, 175, 55, 0.2);
}

.copy-hint {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.referral-code:hover .copy-hint {
    opacity: 1;
}

/* 财务统计 */
.financial-stats .stats-grid,
.merit-overview .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.merit-overview {
    margin-bottom: 2rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 208, 63, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-box.income .stat-number {
    color: var(--success-color);
}

.stat-box.expense .stat-number {
    color: var(--error-color);
}

.stat-box.profit .stat-number {
    color: var(--primary-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 标签页 */
.tabs {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 0.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--gradient-gold);
    color: white;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.tab-content {
    display: none;
}

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

/* 功德记录 */
.merit-list {
    max-height: 400px;
    overflow-y: auto;
}

.merit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: background-color 0.3s;
}

.merit-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.merit-item:last-child {
    border-bottom: none;
}

.merit-icon {
    flex-shrink: 0;
}

.merit-icon img {
    width: 32px;
    height: 32px;
}

.merit-content {
    flex: 1;
}

.merit-description {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.merit-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.merit-value {
    font-weight: 600;
    color: var(--warning-color);
    font-size: 1.1rem;
}

/* 参与记录 */
.participation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.participation-item:last-child {
    border-bottom: none;
}

.round-number {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.participation-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.winner {
    background: var(--success-color);
    color: white;
}

.status-badge.participant {
    background: var(--info-color);
    color: white;
}

/* 交易记录 */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-description {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.transaction-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
}

.transaction-amount.income {
    color: var(--success-color);
}

.transaction-amount.expense {
    color: var(--error-color);
}

/* 推广中心样式 */
.promotion-overview .overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 208, 63, 0.05));
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-icon img {
    width: 48px;
    height: 48px;
}

.stat-info .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-info .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 推广链接 */
.link-container {
    space-y: 1rem;
}

.referral-code-display,
.referral-link-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.referral-link-display {
    align-items: stretch;
}

.referral-link-display .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.referral-code-display label,
.referral-link-display label {
    min-width: 80px;
    font-weight: 500;
    color: var(--text-primary);
}

.referral-link {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.05);
    font-family: monospace;
    font-size: 0.9rem;
}

/* 分享预览区域 */
.share-preview {
    background: linear-gradient(135deg, #fff9e6, #f5f2e8);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.share-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.share-preview h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.share-content {
    background: white;
    border-radius: 8px;
    padding: 1.2rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
    color: var(--text-primary);
}

.share-btn {
    background: var(--gradient-gold);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    margin-top: 1rem;
    width: 100%;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

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

/* 等级晋升 */
.current-level {
    text-align: center;
    margin-bottom: 2rem;
}

.level-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.level-badge.level-sales {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

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

.level-badge.level-director {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.level-badge.level-partner {
    background: linear-gradient(135deg, #f39c12, #d68910);
    color: white;
}

.promotion-requirements {
    space-y: 1rem;
}

.requirement-item {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.requirement-item.current {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(244, 208, 63, 0.05));
    border-color: var(--primary-color);
}

.requirement-item.achieved {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.05));
    border-color: var(--success-color);
}

.requirement-item.next {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.05));
    border-color: var(--info-color);
}

.requirement-item.locked {
    background: rgba(149, 165, 166, 0.1);
    border-color: rgba(149, 165, 166, 0.3);
    opacity: 0.7;
}

.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.level-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge.current {
    background: var(--primary-color);
    color: white;
}

.status-badge.available {
    background: var(--success-color);
    color: white;
}

.status-badge.achieved {
    background: var(--info-color);
    color: white;
}

.requirement-progress {
    space-y: 0.75rem;
}

.progress-item {
    margin-bottom: 0.75rem;
}

.progress-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: rgba(149, 165, 166, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 0.3s;
}

/* 团队列表 */
.team-list {
    max-height: 400px;
    overflow-y: auto;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: background-color 0.3s;
}

.team-member:hover {
    background: rgba(212, 175, 55, 0.05);
}

.team-member:last-child {
    border-bottom: none;
}

.member-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.5rem;
}

.member-info {
    flex: 1;
}

.member-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.member-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.member-stats span {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
}

.member-join-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 推广收益 */
.reward-list {
    max-height: 400px;
    overflow-y: auto;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.reward-item:last-child {
    border-bottom: none;
}

.reward-type {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.reward-source {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.reward-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reward-amount {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.1rem;
}

/* 推广规则 */
.rules-content {
    line-height: 1.6;
}

.rule-section {
    margin-bottom: 2rem;
}

.rule-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.5rem;
}

.rule-section ul {
    list-style: none;
    padding: 0;
}

.rule-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.rule-section li:before {
    content: "◆";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.rule-section li:last-child {
    border-bottom: none;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    width: 64px;
    height: 64px;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-hint {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.hidden { display: none; }
.visible { display: block; }

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.modal-body {
    padding: 20px 24px 24px;
}

.success-message {
    color: var(--success-color);
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.error-message {
    color: var(--danger-color);
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
}

.balance-info {
    text-align: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.balance-amount {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
}

.suggestion {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
}

.invite-section {
    margin: 20px 0;
}

.invite-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.invite-link-container {
    display: flex;
    gap: 8px;
}

.invite-link-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-light);
    color: var(--text-color);
}

.copy-btn {
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-actions .btn {
    flex: 1;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    white-space: nowrap;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 余额不足模态框特殊样式 */
.error-message {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.error-message .icon {
    font-size: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.balance-info {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.balance-info p {
    margin: 8px 0;
    font-size: 16px;
    color: var(--text-secondary);
}

.balance-amount {
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

.suggestion {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0;
}

/* 按钮图标样式 */
.btn .icon {
    margin-right: 6px;
    font-size: 16px;
}

/* 邀请链接弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

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

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 20px 25px 25px;
}

.success-message {
    color: var(--success-color);
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.invite-section {
    margin-bottom: 25px;
}

.invite-section label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

.invite-link-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.invite-link-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    color: var(--text-primary);
    font-family: monospace;
}

.invite-link-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.copy-btn {
    padding: 12px 20px;
    background: var(--gradient-gold);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: var(--gradient-gold);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--text-primary);
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #d0d0d0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .invite-link-container {
        flex-direction: column;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* 福报获得者（大奖）样式 */
.fortune-winner-section {
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: 10px;
    border: 2px solid #ff4757;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.fortune-label {
    font-size: 0.9rem;
    color: white;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.fortune-winner-section .participant-phone.winner {
    background: rgba(255, 255, 255, 0.95);
    color: #ff4757;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    animation: fortuneGlow 2s ease-in-out infinite alternate;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fortune-winner-section .winner-badge {
    font-size: 0.85rem;
    color: #ff4757;
    font-weight: 600;
}

@keyframes fortuneGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 71, 87, 0.6);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 71, 87, 0.9);
        transform: scale(1.02);
    }
}

/* 善缘获得者（参与奖）样式 */
.karma-participants-section {
    margin-bottom: 10px;
}

.karma-label {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.karma-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.participant-phone.karma {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1976d2;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #90caf9;
    transition: all 0.3s ease;
    font-weight: 500;
}

.participant-phone.karma:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

/* 数据状态提示样式 */
.no-karma-participants,
.no-participants-data {
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
    margin: 5px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dee2e6;
}

/* 多级分销样式 */
.multilevel-stats {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.multilevel-stats h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.level-stat-item {
    text-align: center;
    padding: 15px 10px;
    background: var(--gradient-warm);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.level-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.level-number {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.level-count {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.level-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 推荐关系树状图样式 */
.referral-tree {
    margin-top: 15px;
}

.tree-level {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.level-header {
    background: var(--gradient-gold);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.level-title {
    font-weight: bold;
    font-size: 1rem;
}

.toggle-level {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.toggle-level:hover {
    background: rgba(255, 255, 255, 0.3);
}

.level-members {
    background: var(--bg-card);
    max-height: 300px;
    overflow-y: auto;
}

.tree-member {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.tree-member:last-child {
    border-bottom: none;
}

.tree-member:hover {
    background: var(--bg-secondary);
}

.tree-member .member-avatar {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.tree-member .member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.tree-member .member-info {
    flex: 1;
}

.tree-member .member-name {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tree-member .member-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.tree-member .member-join-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* 佣金记录样式 */
.commission-list {
    margin-top: 15px;
}

.commission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.commission-item:last-child {
    border-bottom: none;
}

.commission-item:hover {
    background: var(--bg-secondary);
}

.commission-info {
    flex: 1;
}

.commission-type {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.commission-source {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.commission-details {
    display: flex;
    gap: 15px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.commission-rate {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: bold;
}

.commission-status {
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.commission-status.status-paid {
    background: #d4edda;
    color: #155724;
}

.commission-status.status-pending {
    background: #fff3cd;
    color: #856404;
}

.commission-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.commission-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-left: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .level-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .level-stat-item {
        padding: 10px 5px;
    }
    
    .level-count {
        font-size: 1.2rem;
    }
    
    .commission-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .commission-amount {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .commission-details {
        gap: 10px;
    }
    
    .tree-member {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tree-member .member-avatar {
        margin-right: 0;
        margin-bottom: 8px;
    }
}

/* 奖励表格样式 */
.commission-table {
    margin: 15px 0;
    overflow-x: auto;
}

.reward-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reward-table th,
.reward-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.reward-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.reward-table td {
    font-size: 0.9rem;
}

.reward-table tbody tr:hover {
    background: #f8f9fa;
}

.reward-table td:first-child {
    text-align: left;
    font-weight: bold;
}

.reward-table td:last-child {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
}

/* 收益示例框样式 */
.example-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
}

.example-box::before {
    content: "💡";
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 1.2rem;
}

.example-box h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.income-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.income-list li {
    background: white;
    margin: 8px 0;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.income-list li:hover {
    transform: translateX(5px);
}

.income-list .highlight {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
}

.profit-note {
    background: linear-gradient(135deg, var(--accent-color), #ff6b6b);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.profit-note p {
    margin: 0;
    font-weight: bold;
}

/* 响应式设计 - 奖励表格 */
@media (max-width: 768px) {
    .reward-table {
        font-size: 0.8rem;
    }
    
    .reward-table th,
    .reward-table td {
        padding: 8px 4px;
    }
    
    .example-box {
        padding: 15px;
    }
    
    .example-box h5 {
        font-size: 0.9rem;
        padding: 8px;
    }
    
    .income-list li {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .profit-note {
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* 友情链接样式 */
.friend-links-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #dee2e6;
}

.friend-links-header {
    text-align: center;
    margin-bottom: 30px;
}

.friend-links-header h3 {
    color: #495057;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.friend-links-header p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.friend-link {
    display: inline-block;
    padding: 8px 16px;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.friend-link:hover {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
    text-decoration: none;
}

.loading-text, .no-links {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    padding: 20px;
    width: 100%;
}

/* 友情链接响应式设计 */
@media (max-width: 768px) {
    .friend-links-section {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .friend-links-header h3 {
        font-size: 20px;
    }
    
    .friend-links-container {
        gap: 10px;
        padding: 0 20px;
    }
    
    .friend-link {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 公告弹窗样式 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.announcement-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

/* 精简版公告弹窗 */
.announcement-modal-content.compact {
    max-width: 500px;
    max-height: 80vh;
}

.announcement-modal-content.compact .announcement-body {
    padding: 20px;
}

.announcement-modal-content.compact .highlight-box {
    margin-bottom: 20px;
    padding: 16px;
}

.announcement-modal-content.compact .highlight-box h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.announcement-modal-content.compact .highlight-box p {
    font-size: 0.95rem;
    margin: 0;
}

/* 游戏规则网格布局 */
.game-rules-simple {
    margin-bottom: 20px;
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rule-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.rule-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.rule-card .rule-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    display: block;
}

.rule-card .rule-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.rule-card .rule-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 快速特性展示 */
.quick-features {
    margin-bottom: 20px;
}

.feature-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-item {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.8));
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    white-space: nowrap;
    font-weight: 500;
}

/* 行动按钮 */
.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
}

.cta-btn {
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cta-btn.primary {
    background: var(--gradient-gold);
    color: white;
    border: 2px solid var(--primary-color);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 响应式设计 - 精简版 */
@media (max-width: 768px) {
    .announcement-modal-content.compact {
        width: 95%;
        margin: 10px;
        max-width: none;
    }
    
    .rule-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .feature-row {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 180px;
        justify-content: center;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.announcement-header {
    background: var(--gradient-gold);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.announcement-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.announcement-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.announcement-body {
    padding: 30px;
}

.announcement-content .highlight-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.announcement-content .highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.game-rules {
    margin-bottom: 30px;
}

.game-rules h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.rule-list {
    display: grid;
    gap: 15px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.rule-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: 50%;
    color: white;
}

.rule-text strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.attractive-features {
    margin-bottom: 30px;
}

.attractive-features h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

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

.feature-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.feature-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.call-to-action {
    background: var(--gradient-gold);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.call-to-action h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.call-to-action p {
    margin-bottom: 20px;
    opacity: 0.95;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 120px;
}

.cta-btn.primary {
    background: white;
    color: var(--primary-color);
}

.cta-btn.primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.announcement-footer {
    background: var(--bg-secondary);
    padding: 20px 30px;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.btn-confirm {
    background: var(--gradient-gold);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* 公告弹窗响应式设计 */
@media (max-width: 768px) {
    .announcement-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .announcement-header {
        padding: 20px;
    }
    
    .announcement-header h2 {
        font-size: 1.4rem;
    }
    
    .announcement-body {
        padding: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 200px;
    }
}