/* ============================================================================
   鸽子赛事平台 - 现代化UI设计
   主题：信鸽育种与赛事
   颜色系统：暖色系（棕色、金色、米白色）
   ============================================================================= */

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

:root {
    /* 主色系 - 信鸽主题 */
    --primary-color: #8b6f47;
    --primary-light: #a98859;
    --primary-dark: #6b5a3f;
    --secondary-color: #d4a574;
    --accent-color: #f5e6d3;
    
    /* 功能色 */
    --success-color: #50c878;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* 中性色 */
    --dark-color: #2c3e50;
    --dark-gray: #4a4a4a;
    --text-color: #3d3d3d;
    --light-color: #f9f7f4;
    --light-gray: #e8dcc8;
    --border-color: #d4c5b5;
    --divider-color: #e0d5c7;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 32px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(180deg, #f9f7f4 0%, #f1ede7 100%);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: 0.3px;
    min-height: 100vh;
}

/* ============================================================================
   基础元素样式
   ============================================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ============================================================================
   导航栏
   ============================================================================= */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1;
}

.nav-menu li {
    display: flex;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active::after {
    width: 100%;
}

#auth-buttons {
    display: flex !important;
    gap: 0.8rem !important;
    align-items: center !important;
    margin-left: auto;
}

#guest-menu {
    display: flex;
    gap: 0.8rem;
}

#user-info {
    align-items: center;
    gap: 1rem;
}

#username-display {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================================================
   用户下拉菜单
   ============================================================================= */

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.dropdown-item {
    padding: 0.75rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
    padding-left: 1rem;
}

.dropdown-item span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
}

.logout-item {
    color: #e74c3c;
}

.logout-item:hover {
    background-color: #ffe6e6;
    color: #c0392b;
    border-left-color: #e74c3c;
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}

.notification-item {
    padding: 0.9rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.notification-item.unread {
    border-color: #f4d7a1;
    background: #fff9f0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.notification-title {
    font-weight: 700;
    color: var(--dark-color);
}

.notification-meta {
    color: #777;
    font-size: 0.85rem;
    white-space: nowrap;
}

.notification-content {
    color: #444;
    line-height: 1.6;
}

/* 状态徽章 */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ============================================================================
   按钮样式
   ============================================================================= */

.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

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

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-secondary {
    background: #f5f6f8;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.3rem;
}

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

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

.btn-success:hover {
    background: #45b76f;
}

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

.btn-danger:hover {
    background: #d43f30;
}

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

.btn-info:hover {
    background: #2980b9;
}

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

.btn-warning:hover {
    background: #e67e22;
}

.btn-small, .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================================
   主内容区域
   ============================================================================= */

.main-content {
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
}

.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f9f7f4 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
}

.section-header h2 {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 #f5e6d3;
}

/* ============================================================================
   首页 - 英雄区
   ============================================================================= */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
    animation: slideUp 0.6s ease;
}

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

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.hero p {
    font-size: 1.15rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* 统计卡片 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.stat-card p {
    color: var(--dark-gray);
    font-size: 1.05rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* ============================================================================
   表格样式
   ============================================================================= */

.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
        table-layout: fixed;
    }

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    /* 为不同列设置合适的宽度 */
    .data-table th:nth-child(1) { width: 12%; } /* 脚环号 */
    .data-table th:nth-child(2) { width: 14%; } /* 本站编号 */
    .data-table th:nth-child(3) { width: 10%; } /* 名称 */
    .data-table th:nth-child(4) { width: 6%; } /* 性别 */
    .data-table th:nth-child(5) { width: 6%; } /* 羽色 */
    .data-table th:nth-child(6) { width: 11%; } /* 出生日期 */
    .data-table th:nth-child(7) { width: 10%; } /* 培育者 */
    .data-table th:nth-child(8) { width: 9%; text-align: center; } /* 可见性 */
    .data-table th:nth-child(9) { width: 22%; text-align: center; } /* 操作 */

    .data-table td:nth-child(8),
    .data-table td:nth-child(9) {
        text-align: center;
}

.data-table thead {
    background: linear-gradient(135deg, #8b6f47 0%, #6b5a3f 100%);
    color: white;
}

.data-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.8px;
    white-space: nowrap;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 3px solid var(--secondary-color);
}

.data-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #f0ebe3;
    color: var(--text-color);
    vertical-align: middle;
    font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 操作列允许换行 */
    .data-table td:nth-child(9) {
        white-space: normal;
        line-height: 1.8;
}

.data-table tbody tr {
    transition: all 0.3s ease;
    background: white;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #faf9f8 0%, #f5f1e8 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .loading {
    text-align: center;
    color: var(--dark-gray);
    padding: 2rem !important;
    font-weight: 500;
}

/* 表格中的按钮组 */
.data-table .btn-small {
    margin: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    font-weight: 600;
}

.data-table .btn-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.data-table .btn-small:not(:last-child) {
    margin-right: 0.3rem;
}

/* ============================================================================
   搜索栏
   ============================================================================= */

.search-bar {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow-sm);
}

.search-bar input::placeholder {
    color: #b8a98a;
    font-style: italic;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 111, 71, 0.15), var(--shadow);
    transform: translateY(-2px);
}

/* ============================================================================
   表单样式
   ============================================================================= */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    margin-top: -0.5rem;
    color: #777;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--dark-color);
}

.checkbox-label input {
    width: auto;
    accent-color: var(--primary-color);
}

.pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--primary-color-light, rgba(33, 150, 243, 0.12));
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

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

.pill-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.08) 100%);
    color: #1976d2;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.pill-public {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(46, 204, 113, 0.08) 100%);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.pill-private {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.08) 100%);
    color: #f57c00;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.pill-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.08) 100%);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.pill-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #f57f17;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.pill-secondary {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.15) 0%, rgba(139, 111, 71, 0.08) 100%);
    color: var(--primary-dark);
    border: 1px solid rgba(139, 111, 71, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* ============================================================================
   卡片样式
   ============================================================================= */

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--divider-color);
}

.card-header h3 {
    margin-bottom: 0;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--divider-color);
}

/* ============================================================================
   模态框
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-content.form {
    max-width: 500px;
}

.modal-header {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.modal-header h2 {
    margin: 0;
    padding-right: 3rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

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

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    color: var(--danger-color);
}

/* ============================================================================
   成功提示弹窗
   ============================================================================= */

.success-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.success-modal-overlay.active {
    display: flex;
}

.success-modal-content {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #50c878 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 25px rgba(80, 200, 120, 0.3);
}

.success-modal-content h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.success-modal-content p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-details {
    background: #f9f7f4;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border-left: 4px solid #50c878;
}

.success-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.success-detail-item:not(:last-child) {
    border-bottom: 1px solid #e8dcc8;
    margin-bottom: 0.5rem;
}

.success-detail-label {
    color: var(--dark-gray);
    font-weight: 600;
}

.success-detail-value {
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: white;
    border-radius: 6px;
    margin-left: 1rem;
}

.success-btn {
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.25);
}

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

/* 动画 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* 移动端响应式 */
@media (max-width: 768px) {
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .success-modal-content {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 3rem;
    }
    
    .success-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .success-modal-content p {
        font-size: 1rem;
    }
    
    .success-details {
        padding: 1rem;
    }
    
    .success-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .success-detail-value {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .success-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================================================
   首页样式 - 现代化设计
   ============================================================================= */

/* Hero 大横幅 */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* 现代化统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
}

.stat-info p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
}

/* 首页内容区块 */
.home-section {
    margin: 4rem 0;
}

.section-header-modern {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header-modern h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.section-header-modern p {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
}

/* 首页卡片网格 */
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* 竞拍卡片 */
.home-auction-card,
.home-race-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.home-auction-card:hover,
.home-race-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.price-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e74c3c;
}

.price-value-small {
    font-size: 1.2rem;
    font-weight: 600;
    color: #95a5a6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.time-left {
    color: #e67e22;
    font-weight: 600;
}

.bid-count {
    color: #3498db;
    font-weight: 600;
}

.race-location {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0.5rem 0 1rem 0;
}

.registration-info {
    color: #27ae60;
    font-weight: 600;
}

/* 平台特色 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.loading-card {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
    color: #999;
    background: white;
    border-radius: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* ============================================================================
   页脚样式 - 与导航栏相呼应
   ============================================================================= */

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    border-top: none;
    font-size: 0.95rem;
    line-height: 1.8;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

footer a {
    color: #d4a574;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #f5d89f;
    text-decoration: none;
    transform: translateX(3px);
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(236, 240, 241, 0.1);
}

.footer-section {
    animation: fadeInUp 0.6s ease;
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.footer-section:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section h3::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.footer-about .site-info {
    margin-bottom: 1.5rem;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    color: #d4a574;
    font-style: italic;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info li:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.contact-icon {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-social {
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(228, 220, 200, 0.15);
    border-radius: 50%;
    color: #f5e6d3;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(228, 220, 200, 0.3);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: #6b5a3f;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(228, 220, 200, 0.2);
    font-size: 0.9rem;
    color: #d4c5b5;
}

.footer-copyright {
    flex: 1;
    min-width: 200px;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #d4c5b5;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #f5e6d3;
}

.footer-admin-link {
    display: none;
}

.footer-admin-link a {
    padding: 0.4rem 0.8rem;
    background: rgba(228, 220, 200, 0.15);
    border-radius: 4px;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-admin-link a:hover {
    background: var(--secondary-color);
    color: #6b5a3f;
}

.icp-link {
    color: #d4c5b5;
    text-decoration: none;
    font-size: 0.85rem;
}

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

/* ============================================================================
   响应式设计
   ============================================================================= */

@media (max-width: 768px) {
    .navbar .container {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-menu {
        gap: 0.25rem;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .hero {
        padding: 2.5rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .auctions-grid,
    .breeding-grid,
    .races-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-tabs {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-bottom-links {
        gap: 1rem;
        width: 100%;
    }

    .modal-content {
        width: 95%;
    }

    .admin-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .navbar {
        padding: 0.5rem 0.2rem;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 0.3rem;
        padding: 0 10px;
        justify-content: center;
    }

    .logo {
        font-size: 1.05rem;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .nav-menu {
        width: 100%;
        order: 3;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.25rem;
        justify-items: center;
        padding: 0.2rem 0;
    }

    #auth-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    #guest-menu {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    .nav-link {
        padding: 0.45rem 0.55rem;
        font-size: 0.82rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1rem; }

    .main-content {
        padding: 1.5rem 0;
    }

    .hero {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 0.95rem;
    }

    .data-table {
        font-size: 0.82rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 10px;
        table-layout: auto;
    }

    .data-table thead,
    .data-table tbody,
    .data-table tr {
        display: table;
        width: 100%;
    }

    .data-table th,
    .data-table td {
        padding: 0.65rem 0.45rem;
        font-size: 0.82rem;
        min-width: 70px;
    }

    .data-table th:nth-child(1),
    .data-table th:nth-child(2) { min-width: 110px; }
    .data-table th:nth-child(3) { min-width: 85px; }
    .data-table th:nth-child(4),
    .data-table th:nth-child(5) { min-width: 55px; }
    .data-table th:nth-child(6) { min-width: 90px; }
    .data-table th:nth-child(7) { min-width: 85px; }
    .data-table th:nth-child(8) { min-width: 70px; }
    .data-table th:nth-child(9) { min-width: 170px; }

    .data-table th {
        font-size: 0.78rem;
    }

    .data-table .btn-small {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
        margin: 0.12rem;
    }

    .search-bar {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .search-bar input {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .search-bar input {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-header {
        padding: 1rem 1.2rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .modal-content {
        width: 94%;
        padding: 1rem;
        max-height: 85vh;
    }

    .admin-container {
        padding: 1.5rem;
    }

    /* 鸽子详情弹窗优化 */
    .pigeon-detail-header {
        margin: -1rem -1rem 0.8rem -1rem;
        padding: 1rem 0.9rem;
        border-radius: 10px 10px 0 0;
    }

    .pigeon-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.7rem;
    }

    .pigeon-photo-card {
        width: 110px;
        height: 110px;
    }

    .pigeon-headings h2 {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .pigeon-headings .meta {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .pigeon-detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0;
    }

    .pedigree-tree-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.6rem;
    }

    /* 压缩卡片内部间距，避免纵向过长 */
    .pigeon-section .info-card {
        padding: 1rem;
    }

    .info-item {
        padding: 0.35rem 0;
    }

    .info-label {
        font-size: 0.9rem;
    }

    .info-value {
        font-size: 1.05rem;
    }

    footer {
        padding: 1.5rem 0 1rem;
        margin-top: 2rem;
        font-size: 0.85rem;
    }

    .footer-main {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin-bottom: 1.2rem;
        padding-bottom: 1.2rem;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section h3::before {
        width: 30px;
        height: 2px;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .contact-info li {
        margin-bottom: 0.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        border-top: none;
        padding-top: 0;
        font-size: 0.75rem;
    }

    .footer-bottom-links {
        gap: 0.8rem;
        width: 100%;
        font-size: 0.75rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    .auctions-grid,
    .breeding-grid,
    .races-grid,
    .profile-container,
    .wallet-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .auction-item,
    .breeding-item,
    .race-card {
        margin-bottom: 0;
    }

    .race-card {
        padding: 1.5rem;
    }

    .race-card h3 {
        font-size: 1rem;
    }

    .race-info {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    .race-status {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .filter-tabs {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ============================================================================
   实用工具类
   ============================================================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-center { justify-content: center; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================================================
   网站公告样式
   ============================================================================= */

.announcements-container {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.announcement-item {
    background: white;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.announcement-item h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1em;
}

.announcement-item p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

.announcement-item .announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.9em;
    color: #999;
}

/* ============================================================================
   管理员卡片样式
   ============================================================================= */

.admin-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5em;
}

.admin-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-card table thead th {
    background: #f5f5f5;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #333;
}

.admin-card table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.admin-card table tbody tr:hover {
    background: #fafafa;
}

/* ============================================================================
   表单样式
   ============================================================================= */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #999;
}

/* ============================================================================
   现代化钱包设计
   ============================================================================= */

/* 余额卡片组 */
.wallet-balance-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.balance-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--divider-color);
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--light-gray), var(--border-color));
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.balance-card:hover::before {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 6px;
}

.balance-card.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-color: transparent;
}

.balance-card.primary::before {
    display: none;
}

.balance-card.primary .card-label {
    color: rgba(255,255,255,0.9);
}

.balance-card.primary .card-value {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.balance-card.primary:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(139, 111, 71, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    word-break: break-word;
}

/* 快速操作栏 */
.wallet-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    background: white;
    border: 2px solid var(--divider-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-family: inherit;
    color: var(--text-color);
}

.action-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.05), rgba(212, 165, 116, 0.05));
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.action-btn:active {
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.8rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.action-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* 统计信息 */
.wallet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.05), rgba(212, 165, 116, 0.05));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--divider-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.stat-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 交易记录部分 */
.wallet-transactions-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.wallet-transactions-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--divider-color);
}

/* 交易列表 */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(249, 247, 244, 0.5), white);
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    gap: 1rem;
}

.transaction-item:hover {
    background: white;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.transaction-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.transaction-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: rgba(139, 111, 71, 0.1);
}

.transaction-icon.deposit {
    background: rgba(80, 200, 120, 0.1);
}

.transaction-icon.withdraw {
    background: rgba(227, 85, 85, 0.1);
}

.transaction-icon.refund {
    background: rgba(52, 152, 219, 0.1);
}

.transaction-icon.freeze {
    background: rgba(155, 89, 182, 0.1);
}

.transaction-icon.unfreeze {
    background: rgba(230, 126, 34, 0.1);
}

.transaction-icon.payment {
    background: rgba(108, 52, 131, 0.1);
}

.transaction-info {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.transaction-time {
    font-size: 0.85rem;
    color: var(--dark-gray);
    opacity: 0.7;
}

.transaction-desc {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-top: 0.25rem;
    opacity: 0.6;
    word-break: break-word;
}

.transaction-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.transaction-amount {
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

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

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

.transaction-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.transaction-status.success {
    background: rgba(80, 200, 120, 0.15);
    color: var(--success-color);
}

.transaction-status.pending {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning-color);
    animation: pulse 2s infinite;
}

.transaction-status.failed {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger-color);
}

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

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-sub {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 首页样式 - 现代化设计
   ============================================================================= */

/* Hero 大横幅 */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* 现代化统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
}

.stat-info p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
}

/* 首页内容区块 */
.home-section {
    margin: 4rem 0;
}

.section-header-modern {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header-modern h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.section-header-modern p {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
}

/* 首页卡片网格 */
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* 竞拍卡片 */
.home-auction-card,
.home-race-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.home-auction-card:hover,
.home-race-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.price-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e74c3c;
}

.price-value-small {
    font-size: 1.2rem;
    font-weight: 600;
    color: #95a5a6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.time-left {
    color: #e67e22;
    font-weight: 600;
}

.bid-count {
    color: #3498db;
    font-weight: 600;
}

.race-location {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0.5rem 0 1rem 0;
}

.registration-info {
    color: #27ae60;
    font-weight: 600;
}

/* 平台特色 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.loading-card {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
    color: #999;
    background: white;
    border-radius: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* ============================================================================
   鸽子赛事平台 - 现代化UI设计
   主题：信鸽育种与赛事
   颜色系统：暖色系（棕色、金色、米白色）
   ============================================================================= */

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

:root {
    /* 主色系 - 信鸽主题 */
    --primary-color: #8b6f47;
    --primary-light: #a98859;
    --primary-dark: #6b5a3f;
    --secondary-color: #d4a574;
    --accent-color: #f5e6d3;
    
    /* 功能色 */
    --success-color: #50c878;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* 中性色 */
    --dark-color: #2c3e50;
    --dark-gray: #4a4a4a;
    --text-color: #3d3d3d;
    --light-color: #f9f7f4;
    --light-gray: #e8dcc8;
    --border-color: #d4c5b5;
    --divider-color: #e0d5c7;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 32px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(180deg, #f9f7f4 0%, #f1ede7 100%);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: 0.3px;
    min-height: 100vh;
}

/* ============================================================================
   基础元素样式
   ============================================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ============================================================================
   导航栏
   ============================================================================= */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1;
}

.nav-menu li {
    display: flex;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active::after {
    width: 100%;
}

#auth-buttons {
    display: flex !important;
    gap: 0.8rem !important;
    align-items: center !important;
    margin-left: auto;
}

#guest-menu {
    display: flex;
    gap: 0.8rem;
}

#user-info {
    align-items: center;
    gap: 1rem;
}

#username-display {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================================================
   用户下拉菜单
   ============================================================================= */

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.dropdown-item {
    padding: 0.75rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
    padding-left: 1rem;
}

.dropdown-item span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
}

.logout-item {
    color: #e74c3c;
}

.logout-item:hover {
    background-color: #ffe6e6;
    color: #c0392b;
    border-left-color: #e74c3c;
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}

.notification-item {
    padding: 0.9rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.notification-item.unread {
    border-color: #f4d7a1;
    background: #fff9f0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.notification-title {
    font-weight: 700;
    color: var(--dark-color);
}

.notification-meta {
    color: #777;
    font-size: 0.85rem;
    white-space: nowrap;
}

.notification-content {
    color: #444;
    line-height: 1.6;
}

/* 状态徽章 */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ============================================================================
   按钮样式
   ============================================================================= */

.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

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

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-secondary {
    background: #f5f6f8;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.3rem;
}

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

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

.btn-success:hover {
    background: #45b76f;
}

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

.btn-danger:hover {
    background: #d43f30;
}

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

.btn-info:hover {
    background: #2980b9;
}

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

.btn-warning:hover {
    background: #e67e22;
}

.btn-small, .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================================
   主内容区域
   ============================================================================= */

.main-content {
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
}

.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f9f7f4 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
}

.section-header h2 {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 #f5e6d3;
}

/* ============================================================================
   首页 - 英雄区
   ============================================================================= */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
    animation: slideUp 0.6s ease;
}

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

.hero h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.hero p {
    font-size: 1.15rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* 统计卡片 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    opacity: 0.05;
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.stat-card p {
    color: var(--dark-gray);
    font-size: 1.05rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* ============================================================================
   表格样式
   ============================================================================= */

.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
        table-layout: fixed;
    }

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    /* 为不同列设置合适的宽度 */
    .data-table th:nth-child(1) { width: 12%; } /* 脚环号 */
    .data-table th:nth-child(2) { width: 14%; } /* 本站编号 */
    .data-table th:nth-child(3) { width: 10%; } /* 名称 */
    .data-table th:nth-child(4) { width: 6%; } /* 性别 */
    .data-table th:nth-child(5) { width: 6%; } /* 羽色 */
    .data-table th:nth-child(6) { width: 11%; } /* 出生日期 */
    .data-table th:nth-child(7) { width: 10%; } /* 培育者 */
    .data-table th:nth-child(8) { width: 9%; text-align: center; } /* 可见性 */
    .data-table th:nth-child(9) { width: 22%; text-align: center; } /* 操作 */

    .data-table td:nth-child(8),
    .data-table td:nth-child(9) {
        text-align: center;
}

.data-table thead {
    background: linear-gradient(135deg, #8b6f47 0%, #6b5a3f 100%);
    color: white;
}

.data-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.8px;
    white-space: nowrap;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 3px solid var(--secondary-color);
}

.data-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid #f0ebe3;
    color: var(--text-color);
    vertical-align: middle;
    font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 操作列允许换行 */
    .data-table td:nth-child(9) {
        white-space: normal;
        line-height: 1.8;
}

.data-table tbody tr {
    transition: all 0.3s ease;
    background: white;
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #faf9f8 0%, #f5f1e8 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .loading {
    text-align: center;
    color: var(--dark-gray);
    padding: 2rem !important;
    font-weight: 500;
}

/* 表格中的按钮组 */
.data-table .btn-small {
    margin: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    font-weight: 600;
}

.data-table .btn-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.data-table .btn-small:not(:last-child) {
    margin-right: 0.3rem;
}

/* ============================================================================
   搜索栏
   ============================================================================= */

.search-bar {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow-sm);
}

.search-bar input::placeholder {
    color: #b8a98a;
    font-style: italic;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 111, 71, 0.15), var(--shadow);
    transform: translateY(-2px);
}

/* ============================================================================
   表单样式
   ============================================================================= */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    margin-top: -0.5rem;
    color: #777;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: var(--dark-color);
}

.checkbox-label input {
    width: auto;
    accent-color: var(--primary-color);
}

.pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--primary-color-light, rgba(33, 150, 243, 0.12));
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

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

.pill-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.08) 100%);
    color: #1976d2;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.pill-public {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(46, 204, 113, 0.08) 100%);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.pill-private {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.08) 100%);
    color: #f57c00;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.pill-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.08) 100%);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.pill-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #f57f17;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.pill-secondary {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.15) 0%, rgba(139, 111, 71, 0.08) 100%);
    color: var(--primary-dark);
    border: 1px solid rgba(139, 111, 71, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* ============================================================================
   卡片样式
   ============================================================================= */

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--divider-color);
}

.card-header h3 {
    margin-bottom: 0;
}

.card-body {
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--divider-color);
}

/* ============================================================================
   模态框
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-content.form {
    max-width: 500px;
}

.modal-header {
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.modal-header h2 {
    margin: 0;
    padding-right: 3rem;
}

.modal-body {
    margin-bottom: 1.5rem;
}

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

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    color: var(--danger-color);
}

/* ============================================================================
   成功提示弹窗
   ============================================================================= */

.success-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2001;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.success-modal-overlay.active {
    display: flex;
}

.success-modal-content {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #50c878 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 25px rgba(80, 200, 120, 0.3);
}

.success-modal-content h2 {
    margin: 1rem 0 0.5rem;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.success-modal-content p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-details {
    background: #f9f7f4;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border-left: 4px solid #50c878;
}

.success-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
}

.success-detail-item:not(:last-child) {
    border-bottom: 1px solid #e8dcc8;
    margin-bottom: 0.5rem;
}

.success-detail-label {
    color: var(--dark-gray);
    font-weight: 600;
}

.success-detail-value {
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: white;
    border-radius: 6px;
    margin-left: 1rem;
}

.success-btn {
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.25);
}

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

/* 动画 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* 移动端响应式 */
@media (max-width: 768px) {
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .success-modal-content {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 3rem;
    }
    
    .success-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .success-modal-content p {
        font-size: 1rem;
    }
    
    .success-details {
        padding: 1rem;
    }
    
    .success-detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .success-detail-value {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
    
    .success-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ============================================================================
   首页样式 - 现代化设计
   ============================================================================= */

/* Hero 大横幅 */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* 现代化统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
}

.stat-info p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
}

/* 首页内容区块 */
.home-section {
    margin: 4rem 0;
}

.section-header-modern {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header-modern h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.section-header-modern p {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
}

/* 首页卡片网格 */
.home-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* 竞拍卡片 */
.home-auction-card,
.home-race-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.home-auction-card:hover,
.home-race-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.price-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-item {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e74c3c;
}

.price-value-small {
    font-size: 1.2rem;
    font-weight: 600;
    color: #95a5a6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.time-left {
    color: #e67e22;
    font-weight: 600;
}

.bid-count {
    color: #3498db;
    font-weight: 600;
}

.race-location {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0.5rem 0 1rem 0;
}

.registration-info {
    color: #27ae60;
    font-weight: 600;
}

/* 平台特色 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

.loading-card {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
    color: #999;
    background: white;
    border-radius: 16px;
}

.btn-link {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* ============================================================================
   鸽子赛事平台 - 现代化UI设计
   主题：信鸽育种与赛事
   颜色系统：暖色系（棕色、金色、米白色）
   ============================================================================= */

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

:root {
    /* 主色系 - 信鸽主题 */
    --primary-color: #8b6f47;
    --primary-light: #a98859;
    --primary-dark: #6b5a3f;
    --secondary-color: #d4a574;
    --accent-color: #f5e6d3;
    
    /* 功能色 */
    --success-color: #50c878;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* 中性色 */
    --dark-color: #2c3e50;
    --dark-gray: #4a4a4a;
    --text-color: #3d3d3d;
    --light-color: #f9f7f4;
    --light-gray: #e8dcc8;
    --border-color: #d4c5b5;
    --divider-color: #e0d5c7;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 32px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(180deg, #f9f7f4 0%, #f1ede7 100%);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: 0.3px;
    min-height: 100vh;
}

/* ============================================================================
   基础元素样式
   ============================================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.1rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ============================================================================
   导航栏
   ============================================================================= */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1;
}

.nav-menu li {
    display: flex;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active::after {
    width: 100%;
}

#auth-buttons {
    display: flex !important;
    gap: 0.8rem !important;
    align-items: center !important;
    margin-left: auto;
}

#guest-menu {
    display: flex;
    gap: 0.8rem;
}

#user-info {
    align-items: center;
    gap: 1rem;
}

#username-display {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================================================
   用户下拉菜单
   ============================================================================= */

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid var(--accent-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.dropdown-item {
    padding: 0.75rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    cursor: pointer;
    border-left: 4px solid transparent;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
    border-left-color: var(--secondary-color);
    padding-left: 1rem;
}

.dropdown-item span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
}

.logout-item {
    color: #e74c3c;
}

.logout-item:hover {
    background-color: #ffe6e6;
    color: #c0392b;
    border-left-color: #e74c3c;
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}

.notification-item {
    padding: 0.9rem 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.notification-item.unread {
    border-color: #f4d7a1;
    background: #fff9f0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
}

.notification-title {
    font-weight: 700;
    color: var(--dark-color);
}

.notification-meta {
    color: #777;
    font-size: 0.85rem;
    white-space: nowrap;
}

.notification-content {
    color: #444;
    line-height: 1.6;
}

/* 状态徽章 */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ============================================================================
   按钮样式
   ============================================================================= */

.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

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

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

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-secondary {
    background: #f5f6f8;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.3rem;
}

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

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

.btn-success:hover {
    background: #45b76f;
}

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

.btn-danger:hover {
    background: #d43f30;
}

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

.btn-info:hover {
    background: #2980b9;
}

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

.btn-warning:hover {
    background: #e67e22;
}

.btn-small, .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================================
   主内容区域
   ============================================================================= */

.main-content {
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
}

.section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.section.active {
    display: block;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f9f7f4 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
}

.section-header h2 {
    margin-bottom: 0;
   