/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.header p {
    font-size: 16px;
    color: #6e6e73;
}

/* 主要内容样式 */
.main {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

/* 介绍部分 */
.intro {
    margin-bottom: 40px;
}

.intro h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.intro p {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.6;
}

/* 选项卡片 */
.options {
    margin-bottom: 40px;
}

.options h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.option-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #0071e3;
}

.card-icon {
    height: 20px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.card .price {
    font-size: 24px;
    font-weight: 600;
    color: #0071e3;
    margin-bottom: 10px;
}

.card .home-price {
    display: none;
}

.card p {
    font-size: 14px;
    color: #6e6e73;
}

/* 查询部分 */
.query-section {
    margin-bottom: 40px;
}

.query-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.query-section p {
    font-size: 16px;
    color: #6e6e73;
    margin-bottom: 20px;
}

.query-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.query-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

.query-form button {
    padding: 12px 24px;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.query-form button:hover {
    background-color: #0077ed;
}

/* 表单部分 */
.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.form-section p {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 15px;
}

.form-section input[type="text"],
.form-section textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    font-family: inherit;
}

.form-section textarea {
    resize: vertical;
    min-height: 100px;
}

/* 上传部分 */
.upload-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.upload-item {
    flex: 1;
    min-width: 200px;
}

.upload-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
}

.upload-item input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f8f8;
}

/* 时长选项 */
.duration-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.duration-option {
    padding: 10px 20px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duration-option:hover {
    background-color: #e8e8e8;
}

.duration-option.active {
    background-color: #0071e3;
    color: white;
    border-color: #0071e3;
}

.form-section input[type="number"] {
    width: 100px;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}

/* 类型选项 */
.type-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.type-option {
    padding: 10px 20px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-option:hover {
    background-color: #e8e8e8;
}

.type-option.active {
    background-color: #0071e3;
    color: white;
    border-color: #0071e3;
}

/* 悬浮底栏 */
.floating-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.price-info {
    font-size: 18px;
    font-weight: 600;
}

.price-info span:first-child {
    color: #6e6e73;
}

.price-info span:last-child {
    color: #0071e3;
    margin-left: 10px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-actions label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-actions button {
    padding: 12px 24px;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-actions button:hover:not(:disabled) {
    background-color: #0077ed;
}

.footer-actions button:disabled {
    background-color: #c7c7cc;
    cursor: not-allowed;
}

/* 纸质报关闭状态 */
.closed-message {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f8f8;
    border-radius: 12px;
}

.closed-message h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.closed-message p {
    font-size: 16px;
    color: #6e6e73;
}

.closed-message span {
    color: #0071e3;
    font-weight: 500;
}

/* 查询结果 */
.results-section {
    margin-top: 30px;
}

.results-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.result-item {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.result-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.result-item p {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 5px;
}

.result-item .status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

.status.pending {
    background-color: #ffcc00;
    color: #000;
}

.status.approved {
    background-color: #34c759;
    color: white;
}

.status.rejected {
    background-color: #ff3b30;
    color: white;
}

.status.waiting {
    background-color: #0071e3;
    color: white;
}

.status.running {
    background-color: #5856d6;
    color: white;
}

.status.completed {
    background-color: #8e8e93;
    color: white;
}

.result-item .action-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.result-item .action-btn:hover {
    background-color: #0077ed;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer p {
    font-size: 14px;
    color: #8e8e93;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 30px 15px;
    }
    
    .main {
        padding: 20px;
    }
    
    .option-cards {
        flex-direction: column;
    }
    
    .card {
        min-width: 100%;
    }
    
    .floating-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .footer-actions {
        justify-content: space-between;
    }
    
    .upload-section {
        flex-direction: column;
    }
    
    .upload-item {
        min-width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main {
    animation: fadeIn 0.5s ease-out;
}

.card {
    animation: fadeIn 0.5s ease-out;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}