/* MishaCloud - Base Styles */

:root {
    --primary-color: #2D5AF0;
    --secondary-color: #7B68EE;
    --text-color: #333;
    --bg-color: #f0f2f5;
    --white: #fff;
    --dark-bg: #0f0f1a;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader-center {
    text-align: center;
}

.loader-box {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ══════════════════════════════════════
   Navbar — 浮动胶囊导航栏
   ══════════════════════════════════════ */
.navbar-section {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    background: linear-gradient(135deg, #0d1b4b 0%, #1a0d3b 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    min-height: 48px;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.nav-brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45,90,240,0.3);
}

.nav-brand-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.nav-brand-text {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Nav Pills */
.nav-pills-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 4px;
}

.nav-pills-wrap .nav-link {
    color: rgba(255,255,255,0.65) !important;
    font-weight: 500;
    padding: 7px 18px !important;
    font-size: 0.84rem;
    transition: all 0.25s;
    border-radius: var(--radius-md);
    text-decoration: none;
    white-space: nowrap;
}

.nav-pills-wrap .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.nav-pills-wrap .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(45,90,240,0.35);
    font-weight: 600;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: #fff;
    cursor: pointer;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

/* ══════════════════════════════════════
   Go Top Button
   ══════════════════════════════════════ */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(45,90,240,0.3);
}

.go-top.active {
    opacity: 1;
    visibility: visible;
}

.go-top i {
    color: var(--white);
    font-size: 14px;
}

/* ══════════════════════════════════════
   Content Area
   ══════════════════════════════════════ */
.content-wrapper {
    min-height: calc(100vh - 200px);
    padding: clamp(30px, 5vw, 50px) 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d1b4b 0%, #1a0d3b 50%, #0d1b4b 100%);
    padding: clamp(60px, 7vw, 100px) 0;
    color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255,255,255,0.7);
    margin-bottom: clamp(20px, 3vw, 32px);
}

/* ══════════════════════════════════════
   Cards — 统一圆角
   ══════════════════════════════════════ */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: clamp(18px, 2.5vw, 26px);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0,0,0,0.06);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* ══════════════════════════════════════
   Buttons — 圆角统一
   ══════════════════════════════════════ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(45,90,240,0.25);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45,90,240,0.35);
}

/* ══════════════════════════════════════
   Product Showcase — 主页产品卡片
   ══════════════════════════════════════ */
.products-section {
    background: #f8fafc;
    padding: clamp(40px, 5vw, 64px) 0;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    padding: clamp(18px, 2.5vw, 24px);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(45,90,240,0.12);
    transform: translateY(-4px);
    border-color: #c7d2fe;
}

.product-badge {
    display: inline-block;
    background: rgba(45,90,240,0.1);
    color: #2D5AF0;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 14px;
    width: fit-content;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card .tagline {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.6;
}

.product-card .card-footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.product-card .btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #2D5AF0, #7B68EE);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(45,90,240,0.2);
}

.product-card .btn-detail:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(45,90,240,0.35);
}

.product-card .btn-try {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}

.product-card .btn-try:hover {
    border-color: #c7d2fe;
    color: #2D5AF0;
    background: #f8faff;
}

/* ══════════════════════════════════════
   Counter Section — 服务数据
   ══════════════════════════════════════ */
.counter-area {
    background: linear-gradient(135deg, #0d1b4b 0%, #1a0d3b 50%, #0d1b4b 100%);
    padding: clamp(48px, 6vw, 72px) 0;
    color: #fff;
}

.counter-area .section-title {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.counter-area .section-title .sub-title {
    display: inline-block;
    background: rgba(45,90,240,0.2);
    border: 1px solid rgba(45,90,240,0.3);
    color: #93c5fd;
    padding: 6px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.counter-area .section-title h2 {
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.single-counter {
    text-align: center;
    padding: clamp(20px, 3vw, 32px) clamp(12px, 2vw, 20px);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.single-counter:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}

.counter-contents h2 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--counter-value-color, #60a5fa);
    margin-bottom: 10px;
}

.counter-contents h2 span {
    font-size: 2rem;
}

.counter-heading {
    font-size: 0.95rem;
    color: var(--counter-label-color, rgba(255,255,255,0.7));
    font-weight: 500;
    margin: 0;
}

.counter-item {
    margin-bottom: 30px;
}

/* ══════════════════════════════════════
   Section Title (通用)
   ══════════════════════════════════════ */
.section-title {
    margin-bottom: clamp(24px, 4vw, 40px);
}

.section-title .sub-title {
    display: inline-block;
    color: #2D5AF0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    background: rgba(45,90,240,0.08);
    padding: 5px 14px;
    border-radius: var(--radius-lg);
}

.section-title h2 {
    font-size: clamp(1.5rem, 2.8vw, 1.9rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Section Padding */
.section-padding {
    padding: clamp(48px, 6vw, 72px) 0;
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-pills-wrap {
        display: none;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        flex-direction: column;
        background: rgba(13,27,75,0.97);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: var(--radius-md);
        padding: 8px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.3);
        backdrop-filter: blur(16px);
    }
    .nav-pills-wrap.open {
        display: flex;
    }
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .navbar-section {
        position: relative;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-section {
        padding: 50px 0;
    }
    .counter-area {
        padding: 40px 0;
    }
    .counter-contents h2 {
        font-size: 1.8rem;
    }
    .section-title h2 {
        font-size: 1.4rem;
    }
    .section-padding {
        padding: 40px 0;
    }
    .single-counter {
        padding: 16px 12px;
    }
    .counter-item {
        margin-bottom: 16px;
    }
}

@media (max-width: 1200px) {
    .nav-pills-wrap .nav-link {
        padding: 6px 14px !important;
    }
}
