/* 基础布局样式 */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* 首页简洁报价样式 */
.home-price-indicator {
    transition: all 0.3s ease;
}
.home-price-indicator:hover {
    background-color: rgba(248, 249, 250, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 页面加载优化样式 */
.loading-query #queryResultsArea {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

body.loaded #queryResultsArea {
    opacity: 1;
}

/* 欢迎页报价卡片样式 */
.price-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.badge.bg-success, .badge.bg-danger, .badge.bg-primary {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 交易卡片样式 */
.transaction-card {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 表格样式 */
.table {
    margin-top: 20px;
    font-size: 14px;
}

.table th, .table td {
    vertical-align: middle;
}

.table td {
    word-break: break-all;
    max-width: 200px;
    padding: 8px;
    vertical-align: middle;
    font-size: 13px;
}

.table th {
    white-space: nowrap;
    padding: 10px 8px;
}

.table a {
    text-decoration: none;
    color: #0d6efd;
}

.table a:hover {
    text-decoration: underline;
}

/* 文本截断样式 */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* 表单控件样式 */
.form-select {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.form-select:required:invalid {
    color: #6c757d;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    margin-left: 0;
}

input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: #6c757d;
}

/* 网站公告样式 */
.site-announcement {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.site-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0d6efd;
    border-radius: 4px 0 0 4px;
}

.announcement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    margin-right: 12px;
}

.announcement-icon svg {
    color: #0d6efd;
    width: 16px;
    height: 16px;
}

.announcement-content {
    color: #495057;
    font-size: 14px;
    flex: 1;
}

.announcement-countdown {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.announcement-close {
    background: none;
    border: none;
    padding: 4px;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.announcement-close:hover {
    color: #0d6efd;
}

.announcement-close i {
    font-size: 1rem;
}

.site-announcement.hiding {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .table {
        display: block;
        overflow-x: auto;
    }
    
    .table td, .table th {
        min-width: 100px;
        max-width: 200px;
    }
} 