/* === 游戏护航中心 - 拼多多风格主题 === */
:root {
    /* 拼多多红色主题 */
    --bg: #f5f5f5;
    --bg-white: #ffffff;
    --card: #ffffff;
    --nav: #ffffff;
    --primary: #e53935;
    --primary-dark: #c62828;
    --primary-light: #ff6b6b;
    --primary-bg: rgba(229, 56, 53, 0.08);
    --primary-bg-strong: rgba(229, 56, 53, 0.16);
    --accent: #ff9800;
    --accent-dark: #f57c00;
    --accent-glow: rgba(255, 152, 0, 0.3);
    --text: #333333;
    --text2: #666666;
    --text3: #999999;
    --border: #eeeeee;
    --border-light: #f0f0f0;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --shadow-hover: 0 4px 12px rgba(229,56,53,0.15);
    --transition: all 0.2s ease;
    --transition-fast: all 0.15s ease;
    --price-color: #e53935;
    --orange-price: #ff5722;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

/* ===== 顶部公告栏 ===== */
.announcement-bar {
    background: linear-gradient(135deg, #e53935 0%, #ff5722 100%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(229, 56, 53, 0.3);
}

.announcement-bar a { color: #fff; }

/* ===== 导航栏 ===== */
.navbar {
    background: var(--nav);
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border);
}

.navbar .logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e53935, #ff5722);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.navbar .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.navbar .nav-links a {
    color: var(--text2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.navbar .nav-links a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.navbar .nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-bg);
}

.navbar .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text2);
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    background: var(--bg);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.nav-action-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
}

.nav-balance {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-bg);
}

.navbar .mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ===== 搜索框 ===== */
.search-box {
    background: var(--bg-white);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.search-form {
    display: flex;
    gap: 8px;
    background: var(--bg);
    padding: 8px;
    border-radius: 20px;
}

.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    outline: none;
}

.search-form input::placeholder { color: var(--text3); }

.search-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover { background: var(--primary-dark); }

/* ===== 轮播图 ===== */
.carousel {
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    width: 100%;
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: var(--bg-white);
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

/* ===== 快捷入口 ===== */
.quick-links {
    background: var(--bg-white);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.quick-link-item:hover {
    background: var(--primary-bg);
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #e53935, #ff5722);
    color: #fff;
}

.quick-link-label {
    font-size: 12px;
    color: var(--text2);
}

/* ===== 公告条 ===== */
.home-announcement {
    background: var(--bg-white);
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.home-announcement-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff9800, #ffc107);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.home-announcement-content {
    flex: 1;
    font-size: 14px;
    color: var(--text2);
    overflow: hidden;
    white-space: nowrap;
}

/* ===== 游戏卡片网格 ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
}

.game-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.game-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.game-card-body {
    padding: 12px;
}

.game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-desc {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.game-card-price-small {
    font-size: 12px;
}

.game-card-sales {
    font-size: 12px;
    color: var(--text3);
    margin-top: 6px;
}

.game-card-sales-num {
    color: var(--warning);
    font-weight: 500;
}

.game-card-tag {
    display: inline-block;
    padding: 2px 6px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 10px;
    border-radius: 2px;
    margin-right: 6px;
}

/* ===== 服务卡片 ===== */
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
}

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

.service-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #e53935, #ff5722);
    color: #fff;
}

.service-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.service-card-desc {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 12px;
}

.service-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card-actions {
    display: flex;
    gap: 8px;
}

/* ===== 价格样式 ===== */
.price {
    color: var(--primary);
    font-weight: 700;
}

.price-symbol {
    font-size: 12px;
}

.price-num {
    font-size: 18px;
}

.price-original {
    color: var(--text3);
    font-size: 12px;
    text-decoration: line-through;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #e53935, #ff5722);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c62828, #e53935);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 16px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ===== 表单样式 ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-bg);
}

.form-group input::placeholder { color: var(--text3); }

/* ===== 用户中心 ===== */
.user-header {
    background: linear-gradient(135deg, #e53935, #ff5722);
    padding: 24px 16px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.user-level {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: var(--bg-white);
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.user-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

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

/* ===== 订单列表 ===== */
.order-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.order-card-no {
    font-size: 13px;
    color: var(--text2);
}

.order-card-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.order-status-paid {
    background: #e8f5e9;
    color: #4caf50;
}

.order-status-pending {
    background: #fff3e0;
    color: #ff9800;
}

.order-status-done {
    background: #e3f2fd;
    color: #2196f3;
}

.order-status-cancel {
    background: #fce4ec;
    color: #f44336;
}

.order-card-body {
    padding: 16px;
}

.order-item {
    display: flex;
    gap: 12px;
}

.order-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-title {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
}

.order-item-spec {
    font-size: 12px;
    color: var(--text3);
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

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

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

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.05);
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text2);
    text-decoration: none;
    transition: var(--transition);
}

.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-icon {
    font-size: 22px;
}

.bottom-nav-label {
    font-size: 12px;
}

/* ===== 页面头部 ===== */
.page-header {
    background: var(--bg-white);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.page-back {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text2);
    font-size: 14px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    font-size: 64px;
    color: var(--text3);
    margin-bottom: 16px;
}

.empty-text {
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 24px;
}

/* ===== 加载状态 ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Toast提示 ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 32px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
}

.toast-success { background: rgba(76,175,80,0.9); }
.toast-error { background: rgba(244,67,54,0.9); }

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    padding: 24px;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text3);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar .nav-links { display: none; }
    .navbar .mobile-toggle { display: block; }
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
    .games-grid { gap: 8px; padding: 8px; }
    .game-card-img { height: 100px; }
    .quick-links-grid { grid-template-columns: repeat(5, 1fr); }
    .quick-link-icon { width: 36px; height: 36px; font-size: 16px; }
}

/* 给底部导航留空间 */
body { padding-bottom: 60px; }

/* 移动端菜单展开 */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 16px;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.nav-mobile-menu.show {
    display: block;
}

.nav-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    border-radius: var(--radius);
}

.nav-mobile-menu a:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ===== 优惠券样式 ===== */
.coupon-card {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.coupon-left {
    width: 80px;
    text-align: center;
    border-right: 1px dashed var(--primary);
    padding-right: 12px;
}

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

.coupon-unit {
    font-size: 12px;
}

.coupon-right {
    flex: 1;
    padding-left: 12px;
}

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

.coupon-desc {
    font-size: 12px;
    color: var(--text3);
}

.coupon-use {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    cursor: pointer;
}

/* ===== VIP卡片 ===== */
.vip-card {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    color: #333;
    position: relative;
    overflow: hidden;
}

.vip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
}

.vip-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.vip-desc {
    font-size: 12px;
    opacity: .8;
}

/* ===== 抽奖样式 ===== */
.lottery-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.lottery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.lottery-item {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.lottery-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.lottery-item.active {
    background: var(--primary);
    color: #fff;
}

.lottery-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.lottery-name {
    font-size: 12px;
}
/* 顶部搜索栏强制样式 */
.top-bar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50px !important;
    background: linear-gradient(135deg, #e53935, #c62828) !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    z-index: 100 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.top-logo {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    white-space: nowrap !important;
}

.top-search {
    flex: 1 !important;
    margin: 0 12px !important;
    background: rgba(255,255,255,0.3) !important;
    border-radius: 20px !important;
    padding: 8px 14px !important;
    color: #fff !important;
    font-size: 14px !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    text-align: center !important;
    pointer-events: none !important;
}

.top-search::placeholder {
    color: rgba(255,255,255,0.7) !important;
}

/* 公告栏样式 */
.notice-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 10px 15px;
    margin: 10px;
    border-radius: 8px;
    color: #e65100;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.1);
}
.notice-bar:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
}
.notice-icon {
    font-size: 18px;
    margin-right: 8px;
}
.notice-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-arrow {
    font-size: 16px;
    opacity: 0.6;
}

/* 公告列表项样式 */
.ann-item {
    display: block;
    background: #fff;
    border-radius: 8px;
    margin: 10px 0;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ann-item .ann-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ann-item .ann-header h4 {
    font-size: 16px;
    color: #1a1a1a;
    margin: 0;
}
.ann-item .ann-time {
    font-size: 12px;
    color: #94a3b8;
}
.ann-item .ann-arrow {
    font-size: 18px;
    color: #64748b;
}

/* 公告列表样式 */
.notice-list {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    margin: 10px;
    border-radius: 10px;
    padding: 12px 16px;
}
.notice-list-header {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(234,88,12,0.2);
    margin-bottom: 8px;
}
.notice-list-icon {
    font-size: 18px;
    margin-right: 6px;
}
.notice-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #ea580c;
}
.notice-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.notice-item:last-of-type {
    border-bottom: none;
}
.notice-item:hover {
    background: rgba(255,255,255,0.5);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
}
.notice-dot {
    width: 6px;
    height: 6px;
    background: #f97316;
    border-radius: 50%;
    margin-right: 10px;
}
.notice-text {
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-arrow {
    color: #9a3412;
    font-size: 14px;
}
.notice-more {
    display: block;
    text-align: center;
    padding: 8px 0 4px;
    color: #ea580c;
    font-size: 12px;
    text-decoration: none;
}
.notice-more:hover {
    color: #c2410c;
}

/* 公告区域 - 简洁风格 */
.announcement-section {
    background: #fff;
    margin: 10px;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.announcement-header {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.announcement-icon {
    font-size: 16px;
    margin-right: 6px;
}
.announcement-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.announcement-more {
    margin-left: auto;
    font-size: 12px;
    color: #999;
    text-decoration: none;
}
.announcement-list {
    padding-top: 8px;
}
.announcement-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.announcement-item:hover {
    color: #ff6b00;
}
.announcement-dot {
    width: 6px;
    height: 6px;
    background: #ff6b00;
    border-radius: 50%;
    margin-right: 10px;
}
.announcement-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 公告卡片列表样式 */
.ann-page-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    margin: 10px;
    border-radius: 12px;
}
.ann-page-icon { font-size: 24px; margin-right: 10px; }
.ann-page-title { font-size: 18px; color: #fff; margin: 0; font-weight: 600; }

.ann-card-list { padding: 10px; }
.ann-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    margin: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.ann-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); }
.ann-card-image { width: 100%; height: 150px; overflow: hidden; }
.ann-card-image img { width: 100%; height: 100%; object-fit: cover; }
.ann-card-body { padding: 16px; }
.ann-card-title { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 8px; }
.ann-card-preview { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 12px; }
.ann-card-footer { display: flex; justify-content: space-between; align-items: center; }
.ann-card-time { font-size: 12px; color: #999; }
.ann-card-arrow { font-size: 14px; color: #ff6b6b; }

/* 公告详情卡片 */
.ann-detail-card {
    background: #fff;
    border-radius: 12px;
    margin: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ann-detail-title { font-size: 20px; color: #333; margin-bottom: 16px; border-bottom: 2px solid #feca57; padding-bottom: 10px; }
.ann-detail-image { margin-bottom: 16px; }
.ann-detail-image img { width: 100%; border-radius: 8px; }
.ann-detail-content { font-size: 15px; line-height: 1.8; color: #444; }
.ann-detail-time { margin-top: 20px; font-size: 12px; color: #999; text-align: right; }

/* ========== 公告系统完整样式 ========== */

/* 返回按钮 */
.ann-back-btn {
    display: inline-block;
    padding: 10px 16px;
    margin: 12px;
    background: #fff;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ann-back-btn:hover { background: #f5f5f5; color: #333; }

/* === 公告列表页 === */
.ann-list-wrapper { background: #f8f9fa; min-height: 100vh; }

.ann-list-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10px;
    border-radius: 16px;
    color: #fff;
}
.ann-header-icon { font-size: 40px; margin-right: 16px; }
.ann-header-title { font-size: 22px; margin: 0; font-weight: 700; }
.ann-header-subtitle { font-size: 14px; margin: 4px 0 0; opacity: 0.8; }

/* 卡片网格 */
.ann-cards-grid { padding: 10px; }
.ann-card-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    margin: 10px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}
.ann-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.15);
}

/* 卡片缩略图 */
.ann-card-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.ann-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ann-card-thumb-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ann-card-thumb-placeholder span { font-size: 32px; color: #fff; }

/* 卡片信息 */
.ann-card-info { flex: 1; padding-left: 14px; display: flex; flex-direction: column; }
.ann-card-name { font-size: 16px; font-weight: 600; color: #333; margin: 0 0 8px; }
.ann-card-desc { font-size: 13px; color: #888; margin: 0 0 auto; line-height: 1.4; }
.ann-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ann-card-date { font-size: 12px; color: #aaa; }
.ann-card-action { font-size: 13px; color: #667eea; font-weight: 500; }

/* 空状态 */
.ann-empty-state { text-align: center; padding: 60px 20px; color: #999; }
.ann-empty-icon { font-size: 48px; display: block; margin-bottom: 16px; }

/* === 公告详情页 === */
.ann-detail-wrapper { background: #f8f9fa; min-height: 100vh; padding-bottom: 30px; }

.ann-detail-article {
    background: #fff;
    border-radius: 16px;
    margin: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 详情标题区 */
.ann-detail-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.ann-detail-title { font-size: 22px; margin: 0 0 12px; font-weight: 700; line-height: 1.4; }
.ann-detail-meta { display: flex; align-items: center; font-size: 14px; opacity: 0.9; }
.ann-meta-icon { margin-right: 6px; }

/* 详情封面 */
.ann-detail-cover { margin: 0; }
.ann-detail-cover img { width: 100%; display: block; }

/* 详情内容 */
.ann-detail-content { padding: 24px 20px; }
.ann-content-text { 
    font-size: 16px; 
    line-height: 1.8; 
    color: #444;
    white-space: pre-wrap;
}
.ann-content-text br { display: block; margin: 8px 0; }

/* HTML公告容器 */
.ann-html-container {
    background: #fff;
    border-radius: 16px;
    margin: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
