/* 合同管理页面样式 */

/* 合同管理头部 */
.contracts-hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0f1419 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.contracts-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 20%, rgba(0, 234, 255, 0.1) 0%, transparent 70%);
}

.contracts-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #e8f4fd;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: #b0c4de;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00eaff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0c4de;
}

/* 合同仪表板 */
.contract-dashboard {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.1);
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e8f4fd;
    font-weight: 600;
}

.dashboard-title i {
    color: #00eaff;
    font-size: 20px;
}

.dashboard-actions {
    display: flex;
    gap: 12px;
}

.dashboard-actions i {
    color: #b0c4de;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dashboard-actions i:hover {
    color: #00eaff;
    background: rgba(0, 234, 255, 0.1);
}

.dashboard-content {
    display: flex;
    gap: 24px;
    align-items: center;
}

.chart-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.chart-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.chart-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.chart-circle path:first-child {
    fill: none;
    stroke: rgba(0, 234, 255, 0.2);
    stroke-width: 3;
}

.chart-circle path:last-child {
    fill: none;
    stroke: #00eaff;
    stroke-width: 3;
    stroke-dasharray: 100;
    stroke-dashoffset: 25;
    animation: progress 2s ease-in-out;
}

@keyframes progress {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 25; }
}

.chart-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #00eaff;
}

.chart-label {
    font-size: 12px;
    color: #b0c4de;
}

.stats-list {
    flex: 1;
}

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

.stat-row:last-child {
    border-bottom: none;
}

.stat-name {
    color: #b0c4de;
    font-size: 14px;
}

.stat-value {
    color: #e8f4fd;
    font-weight: 600;
    font-size: 16px;
}

/* 工具栏 */
.contracts-toolbar {
    background: #0f1419;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 234, 255, 0.1);
}

.toolbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.toolbar-left {
    display: flex;
    gap: 16px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #b0c4de;
    font-size: 14px;
}

.search-box input {
    padding: 10px 12px 10px 36px;
    background: #1a1f2e;
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    color: #e8f4fd;
    font-size: 14px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #00eaff;
    box-shadow: 0 0 0 2px rgba(0, 234, 255, 0.1);
}

.search-box input::placeholder {
    color: #b0c4de;
}

.filter-dropdown select {
    padding: 10px 12px;
    background: #1a1f2e;
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 8px;
    color: #e8f4fd;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: #00eaff;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #1a1f2e;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

.view-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #b0c4de;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: rgba(0, 234, 255, 0.1);
    color: #00eaff;
}

/* 合同列表 */
.contracts-list {
    padding: 60px 0;
    background: #0a0e1a;
}

.contracts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.contract-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.contract-item.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    display: none;
}

.contract-card {
    background: #1a1f2e;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contract-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 234, 255, 0.1);
    border-color: rgba(0, 234, 255, 0.3);
}

.contract-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.contract-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00eaff, #0099cc);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contract-icon i {
    font-size: 20px;
    color: #0a0e1a;
}

.contract-info {
    flex: 1;
}

.contract-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e8f4fd;
    margin-bottom: 8px;
}

.contract-info p {
    font-size: 14px;
    color: #b0c4de;
    line-height: 1.4;
}

.contract-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.completed {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.status-badge.in-progress {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.status-badge.draft {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.status-badge.expired {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.contract-details {
    margin-bottom: 20px;
    flex: 1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-label {
    font-size: 14px;
    color: #b0c4de;
}

.detail-value {
    font-size: 14px;
    color: #e8f4fd;
    font-weight: 500;
}

.contract-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-info span:first-child {
    font-size: 14px;
    color: #b0c4de;
}

.progress-percent {
    font-size: 14px;
    color: #00eaff;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 234, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00eaff, #0099cc);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.contract-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-action {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #00eaff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-action:hover {
    background: rgba(0, 234, 255, 0.1);
    border-color: #00eaff;
    transform: translateY(-2px);
}

.btn-action i {
    font-size: 12px;
}

/* 分页 */
.pagination-section {
    padding: 40px 0;
    background: #0a0e1a;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 8px 12px;
    background: #1a1f2e;
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #b0c4de;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: rgba(0, 234, 255, 0.1);
    border-color: #00eaff;
    color: #00eaff;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    color: #b0c4de;
    padding: 8px 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contracts-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .toolbar-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }
    
    .search-box input {
        width: 100%;
        max-width: 300px;
    }
    
    .contracts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contract-actions {
        flex-wrap: wrap;
    }
    
    .btn-action {
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .contract-card {
        padding: 20px;
    }
    
    .contract-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .contract-status {
        align-self: flex-end;
    }
    
    .contract-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
} 