/* 全局样式定义 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* 基础样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Liberation Sans', 'PingFang SC', 'Hiragino Sans GB', 'Heiti SC', 'WenQuanYi Micro Hei', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
    background: #f5f6fa;
    margin: 0;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 0.25rem 0;
    margin: 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0.25rem 0;
}

.navbar .container {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar.navbar-fixed-top {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    margin: 0;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    padding-bottom: 100px;
    flex: 1;
    padding-top: 70px;
}

/* 查询区域样式 */
.express-search {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    padding: 1.5rem;
    margin: 1.5rem auto 0;
    max-width: 800px;
}

.express-search-title {
    font-size: 1.6rem;
    color: #222;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    border: none;
    background: none;
    padding: 0;
}

.express-search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.express-search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.express-search-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.express-search-btn {
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.express-search-btn:hover {
    background: #ff9000;
}

.express-company-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.express-company-item {
    background: #fafbfc;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 0.7rem 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.express-company-item:hover {
    background: #f0f4ff;
    border-color: #409eff;
}

/* 查询结果区域样式 */
.express-result {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    padding: 1.5rem;
    margin: 1.5rem auto;
}

.express-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.express-result-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0;
}

.express-result-actions {
    display: flex;
    gap: 1rem;
}

.express-result-actions button {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.express-result-actions button:hover {
    background-color: #e9ecef;
}

.express-timeline {
    position: relative;
    padding-left: 2rem;
}

.express-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.express-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.express-timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid #fff;
}

.express-timeline-time {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.express-timeline-content {
    color: var(--dark-color);
}

/* 历史记录区域样式 */
.history-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* 页脚样式 */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    background-color: var(--dark-color);
    color: var(--light-color);
    z-index: 1;
}

/* 卡片样式 */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin-bottom: 1rem;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* 表单样式 */
.form-control {
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-bottom: 80px;
    }
    
    .express-search {
        margin: 1rem auto 0;
        padding: 1rem;
    }
    
    .express-search-title {
        font-size: 1.3rem;
    }
    
    .express-result {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .express-timeline {
        max-height: 50vh;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .express-search-form {
        flex-direction: column;
    }
    
    .express-search-btn {
        width: 100%;
    }
    
    .express-company-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .history-section {
        margin-top: 1rem;
        padding: 1rem;
    }
}

.main-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem 2rem 1.5rem 2rem;
    margin: 2rem auto 0 auto;
    max-width: 900px;
}

.express-search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.express-search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.express-search-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.express-search-btn {
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.express-search-btn:hover {
    background: #ff9000;
}

.express-company-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.express-company-item {
    background: #fafbfc;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    padding: 0.7rem 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.express-company-item:hover {
    background: #f0f4ff;
    border-color: #409eff;
}

.express-search-btn {
    background: #ff6b00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.express-search-btn:hover {
    background: #ff9000;
}

.table {
    background: none;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}

.table th {
    background: #f5f6fa;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table td {
    text-align: center;
    vertical-align: middle;
}

/* 查询结果时间轴样式 */
.kd-timeline {
    margin: 2rem 0 1rem 0;
    padding-left: 20px;
    border-left: 3px solid #e8edff;
    position: relative;
}
.kd-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 20px;
}
.kd-timeline-item.active .kd-timeline-dot {
    background: #4a6bff;
    border-color: #4a6bff;
}
.kd-timeline-dot {
    position: absolute;
    left: -12px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid #e8edff;
    border-radius: 50%;
    z-index: 1;
    transition: background 0.3s, border-color 0.3s;
}
.kd-timeline-time {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.kd-timeline-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    word-break: break-all;
}
@media (max-width: 900px) {
    .kd-timeline {
        padding-left: 60px;
    }
    .kd-timeline-time {
        width: 45px;
        font-size: 0.85rem;
        padding-right: 4px;
    }
    .kd-timeline-dot {
        left: 45px;
    }
    .kd-timeline-item:not(:last-child)::after {
        left: 51px;
    }
    .kd-timeline-content {
        margin-left: 20px;
        font-size: 0.95rem;
        max-width: 90vw;
    }
}

.table th:nth-child(1), .table td:nth-child(1) { width: 12%; }
.table th:nth-child(2), .table td:nth-child(2) { width: 12%; }
.table th:nth-child(3), .table td:nth-child(3) { width: 44%; }
.table th:nth-child(4), .table td:nth-child(4) { width: 20%; }
.history-status {
    text-align: left !important;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    word-break: keep-all;
} 