/* 主样式文件 - 客户端 */
/* 仪表板样式 */
.application-status {
    margin-bottom: 40px;
}

.status-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.3); }
}

.status-card h3 {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.status-notes {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.status-notes h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
}

.status-notes p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.shipment-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.shipment-info h4 {
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.application-details {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.application-details h3 {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verification-required {
    text-align: center;
    padding: 50px 20px;
}

.verification-required .icon {
    color: #ff6b6b;
    margin-bottom: 20px;
}

.verification-required h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.verification-required p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.preview-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.preview-info h4 {
    color: #fff;
    margin-bottom: 15px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.preview-grid div {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.preview-grid strong {
    color: #ff6b6b;
    margin-right: 5px;
}

/* 管理端样式 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.logo {
    padding: 0 30px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.logo i {
    font-size: 2rem;
    color: #ff6b6b;
}

.logo h2 {
    color: #fff;
    font-size: 1.5rem;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu li.active a {
    background: rgba(255, 107, 107, 0.2);
    color: #fff;
    border-left: 4px solid #ff6b6b;
}

.nav-menu a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.badge {
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    position: absolute;
    right: 30px;
}

.sidebar-footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    padding: 0 30px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 107, 107, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.btn-logout:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar h1 {
    color: #fff;
    font-size: 2rem;
}

.user-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.total-users {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.total-applications {
    background: rgba(254, 202, 87, 0.2);
    color: #feca57;
}

.pending {
    background: rgba(46, 196, 182, 0.2);
    color: #2ec4b6;
}

.shipped {
    background: rgba(29, 209, 161, 0.2);
    color: #1dd1a1;
}

.stat-info h3 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-view-all {
    color: #ff6b6b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    color: #fff;
    transform: translateX(5px);
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #333;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.2);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 1);
}

.btn-action {
    padding: 8px 15px;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-action:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

.system-status {
    padding: 25px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.status-value {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-value.enabled i {
    color: #1dd1a1;
}

.status-value.disabled i {
    color: #ff6b6b;
}

.status-value .expired {
    color: #ff6b6b;
    font-size: 14px;
    font-weight: normal;
}

/* 页脚链接 */
.footer-links {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    color: #ff6b6b;
    text-decoration: none;
    margin: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar {
        width: 80px;
    }
    
    .sidebar .logo h2,
    .nav-menu a span,
    .badge,
    .btn-logout span {
        display: none;
    }
    
    .main-content {
        margin-left: 80px;
    }
    
    .logo {
        justify-content: center;
        padding: 0 15px 30px;
    }
    
    .nav-menu a {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar-footer {
        padding: 0 15px;
    }
    
    .btn-logout {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


/* ========== 弹窗内部结构样式 ========== */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3,
.modal-header h4 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 预览网格样式 */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.preview-grid div {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
}

.preview-grid strong {
    color: #ff6b6b;
    display: inline-block;
    min-width: 120px;
}

/* 详情弹窗样式 */
.detail-sections {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-section h4 {
    color: white;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 滚动锁定 */
body.modal-open {
    overflow: hidden !important;
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* 自定义滚动条 */
.modal-body::-webkit-scrollbar,
.detail-sections::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track,
.detail-sections::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb,
.detail-sections::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.detail-sections::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.8);
}
/* ========== 弹窗内部结构样式 ========== */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3,
.modal-header h4 {
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 预览网格样式 */
.preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.preview-grid div {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
}

.preview-grid strong {
    color: #ff6b6b;
    display: inline-block;
    min-width: 120px;
}

/* 详情弹窗样式 */
.detail-sections {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-section h4 {
    color: white;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notes-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 滚动锁定 */
body.modal-open {
    overflow: hidden !important;
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* 自定义滚动条 */
.modal-body::-webkit-scrollbar,
.detail-sections::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track,
.detail-sections::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb,
.detail-sections::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.detail-sections::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.8);
}