/* ========================================
   清机侠 - 全局样式
   CleanTech Pro - Global Stylesheet
   ======================================== */

/* ================= Fonts & Reset ================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f7f9fc;
    color: #2d3748;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ================= Layout ================= */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content { flex: 1; }

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

/* ================= Header ================= */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo-area { display: flex; align-items: center; gap: 10px; }

.site-logo {
    color: #1a202c;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-logo span { color: #3182ce; }

.brand-logo { height: 36px; width: auto; }

.nav { display: flex; gap: 32px; }

.nav a {
    color: #4a5568;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3182ce;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after { width: 100%; }

.nav a:hover, .nav a.active { color: #3182ce; }

.user-area { display: flex; gap: 12px; align-items: center; }

/* ================= Buttons ================= */
.btn {
    padding: 10px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    color: #fff;
    box-shadow: 0 4px 14px rgba(49,130,206,0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49,130,206,0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #4a5568;
}

.btn-outline:hover {
    border-color: #3182ce;
    color: #3182ce;
    background: rgba(49,130,206,0.06);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

.btn-danger {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    box-shadow: 0 4px 14px rgba(229,62,62,0.3);
}

.btn-success {
    background: linear-gradient(135deg, #38a169, #2f855a);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #d69e2e, #b7791f);
    color: #fff;
}

/* ================= Hero ================= */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(49,130,206,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99,102,241,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text { flex: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(49,130,206,0.15);
    border: 1px solid rgba(49,130,206,0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: #63b3ed;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #63b3ed, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat h3 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.hero-stat p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

.hero-visual { flex: 1; }

.hero-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.hero-card h4 { color: #fff; font-size: 16px; font-weight: 600; }
.hero-card p { color: rgba(255,255,255,0.5); font-size: 13px; }

.hero-card-steps { display: flex; flex-direction: column; gap: 16px; }

/* ================= Steps ================= */
.steps-section {
    background: #fff;
    border-radius: 24px;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 48px 32px;
}

.step { text-align: center; padding: 24px; position: relative; }

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #cbd5e0;
    font-weight: 300;
}

.step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(49,130,206,0.2);
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1a202c; }
.step p { font-size: 14px; color: #718096; line-height: 1.6; }

/* ================= Section ================= */
.section { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(49,130,206,0.08);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #3182ce;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= Tabs ================= */
.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 24px;
    border-radius: 100px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.3s ease;
    font-family: inherit;
}

.tab:hover { border-color: #3182ce; color: #3182ce; }

.tab.active {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
    box-shadow: 0 4px 14px rgba(49,130,206,0.25);
}

/* ================= Service Cards ================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.06);
}

.service-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.service-img.cleaning { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.service-img.repair { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.service-img.default { background: linear-gradient(135deg, #e9d8fd, #d6bcfa); }

.service-body { padding: 20px; }

.service-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.service-desc {
    font-size: 14px;
    color: #718096;
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f7fafc;
}

.price {
    color: #e53e3e;
    font-size: 24px;
    font-weight: 800;
}

.price small {
    font-size: 13px;
    color: #a0aec0;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.duration {
    font-size: 13px;
    color: #a0aec0;
    background: #f7fafc;
    padding: 4px 12px;
    border-radius: 100px;
}

/* ================= CTA ================= */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 24px;
    text-align: center;
}

.cta-section h2 {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ================= Footer ================= */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 24px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer p { font-size: 14px; line-height: 2.2; color: #94a3b8; }
.footer a { color: #94a3b8; transition: color 0.3s; }
.footer a:hover { color: #fff; }

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo span { color: #63b3ed; }

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: #475569;
}

/* ================= Modal ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show { display: flex; }

.modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3182ce, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(49,130,206,0.3);
}

.modal h2 {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin-bottom: 28px;
}

.close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s;
    line-height: 1;
    background: none;
    border: none;
    padding: 4px;
}

.close:hover { color: #4a5568; }

/* ================= Forms ================= */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f7fafc;
    color: #2d3748;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.1);
    background: #fff;
}

.form-group input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}

.form-group .error-msg {
    font-size: 12px;
    color: #e53e3e;
    margin-top: 4px;
}

.sms-row { display: flex; gap: 8px; }
.sms-row input { flex: 1; }
.sms-row button { white-space: nowrap; }

/* ================= Cards ================= */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f7fafc;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

/* ================= Tables ================= */
.table-responsive { overflow-x: auto; }

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

table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
}

table tr:hover td { background: #f7fafc; }

/* ================= Status Badges ================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #c6f6d5; color: #22543d; }
.badge-warning { background: #fefcbf; color: #744210; }
.badge-danger { background: #fed7d7; color: #822727; }
.badge-info { background: #bee3f8; color: #2a4365; }
.badge-default { background: #edf2f7; color: #4a5568; }

/* ================= Order Details ================= */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item label {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-item .value {
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
}

/* ================= Loading ================= */
.loading {
    text-align: center;
    padding: 60px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e2e8f0;
    border-top-color: #3182ce;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading p { color: #a0aec0; font-size: 14px; }

.empty-state {
    text-align: center;
    padding: 60px;
    color: #a0aec0;
}

.empty-state .icon { font-size: 48px; margin-bottom: 16px; }

/* ================= Page Title ================= */
.page-title {
    padding: 32px 0;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
}

.page-title p {
    color: #718096;
    font-size: 15px;
    margin-top: 4px;
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
    .hero-inner { flex-direction: column; gap: 40px; }
    .hero h1 { font-size: 40px; }
    .hero-visual { width: 100%; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .header-inner { height: 64px; }
    .hero { padding: 60px 24px; }
    .hero h1 { font-size: 32px; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .steps { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }
    .step:not(:last-child)::after { display: none; }
    .section { padding: 48px 0; }
    .section-header h2 { font-size: 28px; }
    .service-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .modal-content { padding: 24px; }
    .order-detail-grid { grid-template-columns: 1fr; }
}