/* 同城配送系统样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* 手机端优化 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        width: 100%;
    }
    
    .card {
        padding: 15px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-links a {
        flex: 1;
        min-width: calc(50% - 4px);
        text-align: center;
        padding: 10px;
        font-size: 13px;
    }
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px;
    margin-bottom: 20px;
}

h1, h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

h1 {
    font-size: 24px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

h2 {
    font-size: 20px;
    color: #667eea;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

select {
    cursor: pointer;
    background: white;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    box-shadow: 0 5px 20px rgba(108, 117, 125, 0.4);
}

.fee-display {
    background: #f8f9fa;
    border: 2px dashed #667eea;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.fee-amount {
    font-size: 36px;
    color: #667eea;
    font-weight: bold;
}

.fee-label {
    color: #666;
    font-size: 14px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-1 { background: #fff3cd; color: #856404; }
.status-2 { background: #cce5ff; color: #004085; }
.status-3 { background: #d4edda; color: #155724; }

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nav-links {
    text-align: center;
    margin-bottom: 20px;
}

.nav-links a {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.3);
}

.rule-box {
    background: #e7f3ff;
    border-left: 4px solid #667eea;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.rule-box h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 16px;
}

.rule-box ul {
    margin-left: 20px;
    color: #555;
}

.rule-box li {
    margin-bottom: 5px;
}
