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

:root {
    --primary-color: #20B2AA;
    --primary-dark: #1a9993;
    --primary-light: #73d8d3;
    --secondary-color: #FF6B6B;
    --success-color: #51CF66;
    --warning-color: #FFC107;
    --danger-color: #FF4757;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-bottom: 60px;
}

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

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.register-btn, .logout-btn {
    background: var(--white);
    color: var(--primary-color) !important;
    font-weight: bold;
}

.admin-link {
    background: rgba(255, 255, 255, 0.2);
}

/* 消息提示 */
.flash-messages {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 2000;
    max-width: 350px;
}

.flash-message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

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

.flash-error {
    background: var(--danger-color);
}

.flash-warning {
    background: var(--warning-color);
    color: var(--text-color);
}

.close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

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

/* 底部导航（移动端） */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    gap: 5px;
}

.mobile-nav-item i {
    font-size: 20px;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-color);
}

/* 主页 */
.home-page {
    padding-bottom: 20px;
}

.search-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px 0;
    color: var(--white);
}

.page-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
}

.search-btn {
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

/* 板块标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 22px;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

/* 拍卖卡片网格 */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.auction-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.auction-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--bg-color);
}

.auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 48px;
}

.no-image.large {
    height: 300px;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
}

.status-ongoing {
    background: var(--success-color);
}

.status-upcoming {
    background: var(--warning-color);
    color: var(--text-color);
}

.status-ended {
    background: var(--text-lighter);
}

.auction-info {
    padding: 15px;
}

.auction-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.price-label {
    color: var(--text-light);
    font-size: 14px;
}

.price-value {
    color: var(--secondary-color);
    font-size: 22px;
    font-weight: bold;
}

.auction-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.bid-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.bid-btn:hover {
    background: var(--primary-dark);
}

/* 快速入口 */
.quick-access-section {
    margin-top: 30px;
}

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

.quick-access-item {
    background: var(--white);
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.quick-access-item:hover {
    transform: translateY(-3px);
}

.quick-access-item i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-lighter);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

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

/* 认证页面 */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
}

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

.auth-header i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
}

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

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 个人中心 */
.profile-page {
    padding: 20px 0;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 40px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.profile-info h2 {
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

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

.badge-warning {
    background: var(--warning-color);
    color: var(--text-color);
}

.profile-menu {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.menu-section {
    margin-bottom: 30px;
}

.menu-section h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s;
}

.menu-item:hover {
    transform: scale(1.05);
}

.menu-item i {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.menu-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s;
}

.menu-list-item:hover {
    background: var(--bg-color);
}

.menu-list-item i:first-child {
    margin-right: 15px;
    color: var(--primary-color);
}

.menu-list-item span {
    flex: 1;
}

.menu-list-item i:last-child {
    color: var(--text-lighter);
}

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

.settings-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.settings-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 拍卖详情 */
.auction-detail-page {
    padding: 20px 0;
}

.auction-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.auction-detail-image img {
    width: 100%;
    border-radius: 10px;
}

.auction-detail-info h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.current-price-box,
.start-price-box {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.current-price-box {
    background: linear-gradient(135deg, #fff5f5, #ffe0e0);
}

.start-price-box {
    background: var(--bg-color);
}

.current-price-box .label,
.start-price-box .label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.current-price-box .price {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
}

.start-price-box .price {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
}

.auction-meta {
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.winner-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.auction-description,
.bid-history {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.auction-description h2,
.bid-history h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.description-content {
    line-height: 1.8;
    color: var(--text-light);
}

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

.bid-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.bid-item:hover {
    background: var(--bg-color);
}

.bid-item.winner {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid var(--warning-color);
}

.bid-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bid-user i {
    color: var(--primary-color);
}

.winner-badge {
    background: var(--warning-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.bid-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.bid-amount {
    font-size: 18px;
    font-weight: bold;
    color: var(--secondary-color);
}

.bid-time {
    color: var(--text-lighter);
    font-size: 14px;
}

.bid-message {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 5px;
}

/* 报价表单 */
.bid-page {
    padding: 40px 0;
}

.bid-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.bid-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auction-summary {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.auction-summary h3 {
    margin-bottom: 10px;
}

.auction-summary .price-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
}

.bid-form .form-group {
    margin-bottom: 25px;
}

.bid-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.bid-form input,
.bid-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.bid-form input:focus,
.bid-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 按钮样式 */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

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

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 12px 30px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

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

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* 我的报价/中标列表 */
.my-bids-page,
.my-wins-page {
    padding: 20px 0;
}

.my-bids-page h2,
.my-wins-page h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.bids-list,
.wins-list {
    display: grid;
    gap: 20px;
}

.bid-card,
.win-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.win-card {
    border-left: 4px solid var(--warning-color);
}

.winner-card {
    border-left: 4px solid var(--success-color);
}

.bid-card-header,
.win-info h3 {
    margin-bottom: 15px;
}

.bid-card-body {
    margin-bottom: 15px;
}

.bid-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bid-detail .label {
    color: var(--text-light);
}

.bid-detail .value {
    font-weight: bold;
}

.bid-detail .price {
    color: var(--secondary-color);
    font-size: 18px;
}

.bid-card-footer,
.win-actions {
    display: flex;
    justify-content: flex-end;
}

.win-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #856404;
}

.win-badge i {
    font-size: 24px;
}

.win-details {
    margin-top: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .auction-detail {
        grid-template-columns: 1fr;
    }
    
    .price-section {
        flex-direction: column;
    }
    
    .auction-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* 选项卡 */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tab:hover {
    color: var(--primary-color);
}

/* 拍卖列表 */
.auction-page {
    padding: 20px 0;
}

.auction-list {
    display: grid;
    gap: 20px;
}

.auction-list-item {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.auction-list-item:hover {
    transform: translateX(5px);
}

.auction-list-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.auction-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auction-list-info {
    flex: 1;
    padding: 20px;
}

.auction-list-info h3 {
    margin-bottom: 10px;
}

.description {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.price-info {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
}

.start-price {
    color: var(--text-light);
    align-self: flex-end;
}

@media (max-width: 768px) {
    .auction-list-item {
        flex-direction: column;
    }
    
    .auction-list-image {
        width: 100%;
        height: 200px;
    }
}
