/* --- 变量定义 --- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #00a8cc;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
}

/* --- 全局样式 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 顶部栏 --- */
.top-bar {
    background-color: #f1f1f1;
    color: #666;
    font-size: 14px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

/* --- 导航栏 --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #ddd;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.header-btn-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-login:hover {
    color: var(--primary-color);
}

.header-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn:hover {
    background-color: #004494;
    color: var(--white);
}

/* --- Hero Section (Carousel) --- */
.hero {
    min-height: 500px;
    height: auto;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 100px 0;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 86, 179, 0.6), rgba(0, 168, 204, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-hero {
    padding: 12px 30px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #008bad;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Work Order Section Top (左右分栏) --- */
.wo-section-top {
    padding: 50px 0 60px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.wo-main-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 左侧介绍区域 */
.wo-intro {
    flex: 1;
    max-width: 55%;
}

.wo-intro h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.wo-intro-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 35px;
}

.wo-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.wo-feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wo-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wo-feature-item i {
    font-size: 28px;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.wo-feature-item h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.wo-feature-item p {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}

.wo-stats {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
}

.wo-stat-item {
    text-align: center;
}

.wo-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.wo-stat-label {
    font-size: 14px;
    color: #666;
}

/* 右侧工单展示区域 */
.wo-display {
    width: 500px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.wo-column {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}

.wo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.wo-header i {
    font-size: 14px;
}

.wo-header h3 {
    font-size: 14px;
    color: var(--primary-color);
    margin: 0;
}

.wo-list-wrapper {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.wo-card {
    background: #fff;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 3px solid var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.wo-card.finished {
    border-left-color: #28a745;
}

.wo-info {
    flex: 1;
}

.wo-school {
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 3px;
    font-size: 12px;
}

.wo-device {
    color: var(--text-light);
    font-size: 10px;
}

.wo-status {
    text-align: right;
    font-size: 10px;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 8px;
    color: #fff;
    font-size: 10px;
    margin-bottom: 3px;
}

.status-processing {
    background-color: var(--secondary-color);
}

.status-finished {
    background-color: #28a745;
}

.wo-time {
    color: #999;
    font-size: 10px;
}

/* --- 通用 Section --- */
.section {
    padding: 80px 0;
}

.bg-gray {
    background-color: #f1f4f6;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* --- 服务网格 --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 168, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--secondary-color);
    font-size: 30px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* --- 特色功能区 --- */
.features-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
}

.feature-img {
    flex: 1;
}

.feature-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-text p {
    color: var(--text-light);
    font-size: 14px;
}

/* --- 流程步骤 --- */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    background-color: var(--bg-light);
    text-align: center;
    width: 18%;
}

.step-num {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    line-height: 46px;
    font-weight: bold;
    font-size: 18px;
    margin: 0 auto 15px;
}

.step:hover .step-num {
    background-color: var(--primary-color);
    color: var(--white);
}

.step h4 {
    margin-bottom: 10px;
}

.step p {
    font-size: 13px;
    color: var(--text-light);
}

/* --- 合作伙伴 --- */
.partners {
    padding: 40px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.partner-grid {
    display: flex;
    justify-content: space-around;
    color: #999;
    font-size: 20px;
    font-weight: bold;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- 底部 --- */
footer {
    background-color: #222;
    color: #bbb;
    padding-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.beian-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.beian-item {
    color: #939393;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.beian-item:hover {
    color: var(--white);
}

.beian-icon {
    font-size: 16px;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 350px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    border-radius: 8px;
}

/* --- Toast Notification --- */
.toast-notification {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 3000;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
}

.toast-notification.show {
    visibility: visible;
    opacity: 1;
    top: 50px;
}

/* --- About Page Styles --- */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .navbar {
        height: auto;
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        padding: 5px 0;
    }

    .header-btn-group {
        margin-top: 10px;
        flex-direction: column;
        width: 100%;
    }

    .header-btn {
        width: 100%;
        justify-content: center;
    }

    .hero {
        height: auto;
        padding: 60px 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-group {
        flex-direction: column;
    }

    .wo-main-container {
        flex-direction: column;
    }

    .wo-intro {
        max-width: 100%;
    }

    .wo-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .wo-stats {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .wo-display {
        width: 100%;
        flex-direction: column;
    }

    .features-wrapper {
        flex-direction: column;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-content {
        flex-direction: column;
    }

    .process-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .process-steps::before {
        display: none;
    }

    .step {
        width: 100%;
    }

    .partner-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .partner-item {
        width: 45%;
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .logo {
        justify-content: center;
    }
}
