/* CloudERP - 电商ERP系统样式表 */

:root {
    --primary-color: #8B4513;
    --primary-dark: #A0522D;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.home-wrapper {
    min-height: 100vh;
}

.menu-background {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.menu {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.menu-left .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.menu-left .logo:hover {
    color: rgba(255, 255, 255, 0.8);
}

.menu-left .logo i {
    font-size: 28px;
}

.menu-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menus {
    display: flex;
    list-style: none;
    gap: 5px;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 5px;
}

.menu-item > a:hover,
.menu-item.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.menu-item > a i {
    font-size: 12px;
    transition: transform 0.3s;
}

.menu-item:hover > a i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    list-style: none;
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.submenu li a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.btn-box {
    display: flex;
    gap: 10px;
}

.btn-login,
.btn-free-use {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-free-use {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-free-use:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.swiper-container {
    margin-top: 70px;
    width: 100%;
    height: 500px;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.platform-auth-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.platform-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.platform-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.platform-item span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.stats-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-number .number {
    font-size: 56px;
}

.stat-number .unit {
    font-size: 24px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

.features-section {
    padding: 80px 0;
}

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

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 28px;
    color: #fff;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.feature-link:hover {
    gap: 10px;
}

.pricing-preview-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.pricing-tab {
    padding: 12px 30px;
    background: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pricing-tab.active,
.pricing-tab:hover {
    background: var(--primary-color);
    color: #fff;
}

.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 5px 40px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price .amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.price .period {
    font-size: 16px;
    color: #666;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: var(--success-color);
}

.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-top {
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: #fff;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #aaa;
    margin: 0;
}

.footer-bottom a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #fff;
}

.right-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.sidebar-item:hover {
    background: var(--primary-color);
    color: #fff;
}

.sidebar-item i {
    font-size: 20px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.sidebar-item:hover i {
    color: #fff;
}

.sidebar-tooltip {
    position: absolute;
    right: 60px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s;
}

.sidebar-item:hover .sidebar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sidebar-tooltip img {
    width: 120px;
    height: 120px;
    display: block;
    margin-bottom: 10px;
}

.sidebar-tooltip p {
    font-size: 12px;
    color: #333;
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        z-index: 1002;
    }

    .menu-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(139, 69, 19, 0.98);
        transition: right 0.3s ease;
        z-index: 1001;
        flex-direction: column;
        padding: 70px 20px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    }

    .menu-right.open {
        right: 0;
    }

    .menus {
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
    }

    .menu-item > a {
        padding: 15px;
        border-radius: 8px;
        color: #fff;
    }

    .menu-item > a:hover,
    .menu-item.active > a {
        background: rgba(255, 255, 255, 0.2);
    }

    .btn-box {
        flex-direction: column;
        gap: 10px;
    }

    .menu-background::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 1000;
    }

    .menu-background.open::after {
        opacity: 1;
        visibility: visible;
    }

    .swiper-container {
        height: 400px;
        margin-top: 120px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .right-sidebar {
        display: none;
    }

    .hero-section {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .stat-card {
        margin-bottom: 20px;
    }
}
