/* KMTC.CN 网站样式文件 */

:root {
    --primary: #1a3a8e;
    --secondary: #00a8e8;
    --accent: #ff6b35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    line-height: 1.6;
}

/* 首屏样式 */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    height: 80px;
    margin-bottom: 1rem;
}

.site-title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.data-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    min-width: 200px;
}

.cta-button {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
}

/* 优势服务区 */
.services {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* 船期查询 */
.schedule-section {
    padding: 4rem 2rem;
}

.schedule-form {
    max-width: 1000px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    padding: 1rem;
}

.schedule-form > * {
    flex-shrink: 0;
    min-width: 150px;
}

/* 确保在小屏幕上也能正常显示 */
@media (max-width: 768px) {
    .schedule-form {
        justify-content: flex-start;
        padding: 0.5rem;
    }
}

.sort-container {
    max-width: 800px;
    margin: 1rem auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

select, input, button {
    padding: 0.8rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 14px;
}

.schedule-table {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--primary);
    color: white;
    font-weight: bold;
    white-space: nowrap;
    min-width: 100px;
}

tr:hover {
    background: #f8f9fa;
}

/* 分页样式 */
.pagination-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-controls button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-controls button:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    padding: 0.5rem 0.8rem;
    margin: 0 0.2rem;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-number:hover {
    background: var(--primary);
    color: white;
}

.page-number.active {
    background: var(--primary);
    color: white;
}

/* 流程图 */
.process {
    background: #f0f4f8;
    padding: 4rem 2rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1400px;
    margin: 2rem auto;
    overflow-x: auto;
}

.step {
    text-align: center;
    position: relative;
    padding: 1rem;
    flex: 1;
    min-width: 200px;
    flex-shrink: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .data-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        min-width: auto;
    }
}
