
/* 备案信息样式 */
.beian-container {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    padding: 15px 0;
    text-align: center;
    position: relative;
    z-index: 10; /* 调整为较低值 */
}

.beian-container a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block; /* 确保链接显示 */
    padding: 5px;
}

.beian-container a:hover {
    color: #3498db;
    text-decoration: underline;
}
:root {
    --primary: #3498db;
    --secondary: #6a11cb;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
}

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

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 70px;
}

.page.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-actions a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
}

.user-actions a i {
    margin-right: 5px;
}

.page-title {
    margin: 30px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-title p {
    color: #7f8c8d;
    font-size: 16px;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
}

.role-selection {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.role-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    width: 300px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.role-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--primary);
}

.role-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.role-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #5a0fb5;
}

.search-filter {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

input,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.order-content {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s;
}

.order-info {
    flex: 1;
}

.order-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.order-details {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.order-detail {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 14px;
}

.order-detail i {
    margin-right: 5px;
    color: var(--primary);
}

.order-reward {
    font-size: 20px;
    font-weight: 600;
    color: var(--warning);
    margin-right: 20px;
}

.order-actions {
    position: absolute;
    right: -100px;
    top: 0;
    bottom: 0;
    width: 100px;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s;
}

.order-item.swiped .order-actions {
    right: 0;
}

.order-item.swiped .order-content {
    transform: translateX(-100px);
}

/* 鼠标悬停效果 */
.order-item:hover .order-actions {
    right: 0;
}

.order-item:hover .order-content {
    transform: translateX(-100px);
}

.accept-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accept-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.tab-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e1e5eb;
}

.tab {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 500;
    color: #7f8c8d;
    transition: all 0.3s;
    position: relative;
}

.tab.active {
    color: var(--primary);
}

.tab.active:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.tab-content {
    padding: 30px;
    display: none;
}

.tab-content.active {
    display: block;
}

.orders-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.order-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.order-card.taken {
    border-left-color: var(--success);
}

.order-card.cancelled {
    border-left-color: var(--gray);
    opacity: 0.7;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f3f8;
}

.order-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #fff8e1;
    color: var(--warning);
}

.status-taken {
    background: #e8f5e9;
    color: var(--success);
}

.status-cancelled {
    background: #f5f5f5;
    color: var(--gray);
}

.status-in-progress {
    background: #e3f2fd;
    color: var(--primary);
}

.status-delivered {
    background: #e8f5e9;
    color: var(--success);
}

.status-completed {
    background: #f1f8e9;
    color: #689f38;
}

.order-details {
    margin-bottom: 15px;
}

.order-detail {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    width: 80px;
    color: #7f8c8d;
    font-size: 14px;
}

.detail-value {
    flex: 1;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-secondary {
    background: #e1e5eb;
    color: #495057;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.form-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f3f8;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary);
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.required:after {
    content: " *";
    color: var(--danger);
}

textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    min-height: 120px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.reward-input {
    position: relative;
}

.reward-input:before {
    content: "¥";
    position: absolute;
    left: 15px;
    top: 12px;
    font-size: 16px;
    color: #7f8c8d;
}

.reward-input input {
    padding-left: 30px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #7f8c8d;
    font-size: 14px;
    border-top: 1px solid #e1e5eb;
    margin-top: 40px;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: var(--success);
}

.notification.error {
    background-color: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #e1e5eb;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #495057;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #7f8c8d;
    font-size: 12px;
    transition: all 0.3s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.login-container {
    max-width: 400px;
    margin: 50px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

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

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-links a {
    color: var(--primary);
    text-decoration: none;
}

.courier-info {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.courier-info h4 {
    margin-bottom: 10px;
    color: #2e7d32;
}

.courier-detail {
    display: flex;
    margin-bottom: 8px;
}

.courier-label {
    width: 80px;
    color: #7f8c8d;
}

.courier-value {
    flex: 1;
    font-weight: 500;
}

.rating-section {
    margin-top: 20px;
}

.rating-item {
    margin-bottom: 15px;
}

.rating-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.stars {
    display: flex;
    gap: 5px;
}

.star {
    color: #ddd;
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
}

.star.active {
    color: #ffc107;
}

.comment-box {
    margin-top: 20px;
}

.comment-count {
    text-align: right;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .user-actions {
        margin-top: 15px;
    }

    .orders-container {
        grid-template-columns: 1fr;
    }

    .role-selection {
        flex-direction: column;
        align-items: center;
    }

    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
}