/* 设备报修系统样式表 */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #0d47a1;
    --primary-light: #e3f2fd;
    --secondary-color: #f1f3f4;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --success-color: #34a853;
    --error-color: #ea4335;
    --pagination-bg: #ffffff;
    --pagination-hover: #f8f9fa;
    --pagination-active: #1a73e8;
    --pagination-active-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    background-color: var(--primary-dark);
    color: white;
    padding: 2px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
}

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

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

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

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

.logout-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
    font-size: 16px;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 24px;
    margin-bottom: 24px;
}

h1, h2, h3 {
    color: var(--primary-dark);
    margin-bottom: 16px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
}

h3 {
    font-size: 20px;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

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

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

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.2);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

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

.btn-success:hover {
    background-color: #2d9249;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(234, 67, 53, 0.2);
    display: inline-block;
    text-align: center;
}

.btn-danger:hover {
    background-color: #c53225;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(234, 67, 53, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(234, 67, 53, 0.2);
}

.btn:active {
    transform: scale(0.98);
}

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

.table {
    width: 100%;
    border-collapse: collapse;
}

/* 英雄区域样式 */
.hero {
    background: 
        url('tech_background.svg') no-repeat center center/cover,
        linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

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

.hero h1 {
    color: white;
    font-size: 36px;
    margin-bottom: 16px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 24px;
}

.hero .btn-primary {
    background-color: white;
    color: var(--primary-color);
    font-size: 18px;
    padding: 12px 30px;
}

.hero .btn-primary:hover {
    background-color: var(--primary-light);
}

/* 功能介绍样式 */
.features {
    padding: 60px 0;
    background-color: white;
    margin-bottom: 40px;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--primary-light);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 12px;
}

/* 报修流程样式 */
.process {
    padding: 60px 0;
    margin-bottom: 40px;
}

.process h2 {
    text-align: center;
    margin-bottom: 40px;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    background-color: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
    position: relative;
}

.step-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.step p {
    font-size: 14px;
    text-align: center;
    margin-bottom: 0;
}

.step-arrow {
    font-size: 24px;
    color: var(--primary-color);
    display: none;
}

@media (min-width: 768px) {
    .step-arrow {
        display: block;
    }

    .process-steps {
        flex-wrap: nowrap;
    }
}

/* 统计信息样式 */
.stats {
    background-color: var(--primary-light);
    padding: 60px 0;
    margin-bottom: 40px;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

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

.stat-number {
    font-size: 40px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.table th, .table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

/* 增加表格行间距 */
.table tr {
    margin-bottom: 8px;
    display: table-row;
}

/* 为数据表格添加额外间距 */
.data-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    width: 100%;
}

.data-table tbody tr {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-table td, .data-table th {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.data-table th:first-child, .data-table td:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.data-table th:last-child, .data-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.table th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 500;
}

.table tr:hover {
    background-color: #f8f9fa;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.tab-content {
    display: none;
}

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

.info-item {
    margin-bottom: 12px;
}

.info-label {
    font-weight: 500;
    display: inline-block;
    width: 120px;
}

.info-value {
    color: var(--text-secondary);
}

.total-cost {
    font-size: 18px;
    font-weight: bold;
    color: var(--error-color);
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.footer {
    background-color: var(--secondary-color);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* 分页控件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    padding: 8px 12px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pagination-info {
    display: none;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.pagination-controls label {
    margin-right: 4px;
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination-controls select {
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    transition: all 0.2s ease;
    max-width: 80px;
}

.pagination-controls select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.pagination-controls .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
    font-size: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-controls .btn:hover:not([style*="opacity: 0.5"]) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-controls .btn[style*="opacity: 0.5"] {
    cursor: not-allowed;
    border-color: #e0e0e0;
    color: #9e9e9e;
}

.pagination-controls span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    margin: 0 2px;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* 首页和末页按钮样式 */
.pagination-controls a.btn[href*="page=1"]:not([href*="limit"]),
.pagination-controls a.btn[href*="page="]:not([href*="limit="]):not([href*="page=prev"]):not([href*="page=next"]) {
    display: none;
}

/* 上一页和下一页按钮样式 */
.pagination-controls a.btn[href*="page=prev"],
.pagination-controls a.btn[href*="page=next"] {
    min-width: 32px;
    padding: 0 8px;
}

/* 响应式分页样式 */
@media (max-width: 768px) {
    .pagination-controls {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination-controls .btn {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .pagination-controls span {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

/* 优化表格行悬停效果 */
.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

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

    nav ul li {
        margin: 5px 10px 5px 0;
    }

    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
}`