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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.4;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.site-header {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 16px 0;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.icon {
    width: 25px;
    height: 25px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #1a1a1a;
    transition: opacity 0.2s;
}

.logo a:hover {
    opacity: 0.7;
    color: #6542B8;
}

.nav-area {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;

    list-style: none;
    display: inline-block;
}

.nav-item > a {
    color: #000000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: transparent;
}

.nav-item > a.active {
    font-weight: bold;
    color: #FFB600;
}

.nav-item > a:hover {
    color: #000000;
    background-color: #6542B8;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 150px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    border: 1px solid #efefef;
    padding: 8px 0;
    list-style: none;
    display: none;
}

/* 鼠标悬停在一级菜单时显示二级菜单 */
.nav-item.has-dropdown:hover .dropdown-menu {
    display: block;
}

/* 二级菜单项样式 */
.dropdown-menu li {
    position: relative; /* 为三级菜单提供定位参考 */
    border-bottom: 1px solid #ffffff;
}

.dropdown-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #6542B8;
    color: #ffffff;
    padding-left: 24px;
}

/* 三级菜单（子菜单） */
.submenu {
    position: absolute;
    top: 0;
    left: 100%; /* 出现在父项的右侧 */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    min-width: 120px;
    list-style: none;
    display: none; /* 默认隐藏 */
    z-index: 1001;
}

/* 鼠标悬停在带有子菜单的二级菜单项时，显示三级菜单 */
.dropdown-submenu:hover .submenu {
    display: block;
}

/* 为有子菜单的项添加右箭头图标（FontAwesome） */
.dropdown-submenu > a::after {
    font-weight: 900;
    margin-left: 8px;
}

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

.user-area {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 8px;
}

.user-area:hover {
    background-color: #6542B8;
}

.user-icon {
    width: 40px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    color: #1a1a1a;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #000000;
}

.user-status {
    font-size: 0.7rem;
    color: #6c6c6c;
}

.user-area:hover .user-icon {
    background: #543a9e;
    color: white;
}

.user-area:hover .user-name {
    color: #ffffff;
}

.user-area:hover .user-status {
    color: #e0e0e0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 460px;
    padding: 40px 36px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #6542B8;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.modal-subtitle {
    color: #6c6c6c;
    margin-bottom: 28px;
    font-size: 0.9rem;
}

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

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #2c2c2c;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e2e2;
    border-radius: 16px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #6542B8;
    box-shadow: 0 0 0 3px rgba(101, 66, 184, 0.1);
}

.login-btn {
    width: 100%;
    background: #6542B8;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
    font-family: inherit;
}

.login-btn:hover {
    background: #543a9e;
    transform: translateY(-1px);
}

.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #6c6c6c;
}

.form-footer a {
    color: #6542B8;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.error-msg {
    color: #c5232c;
    font-size: 0.8rem;
    margin-top: 6px;
    display: none;
}

.error-msg.show {
    display: block;
}

/* 返回顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 52px;
    height: 52px;
    background-color: #6542B8;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(101, 66, 184, 0.3);
    transition: all 0.3s ease;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #543a9e;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(101, 66, 184, 0.4);
}

.back-to-top:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 24px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav-area {
        order: 3;
        width: 100%;
        justify-content: space-between;
        margin-top: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .modal-content {
        padding: 32px 24px;
    }
}

.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #1a1a1a;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 560px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeUp 0.6s ease-out;
}

.slide-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 28px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.slide-btn {
    display: inline-block;
    background-color: #6542B8;
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.slide-btn:hover {
    background-color: #543a9e;
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: rgba(101, 66, 184, 0.8);
    color: white;
}

.btn-prev {
    left: 24px;
}

.btn-next {
    right: 24px;
}

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background-color: #6542B8;
    transform: scale(1.2);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 460px;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
}

/* 运动产品展示区域 */
.products-showcase {
    margin: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: #6542B8;
}

.product-img {
    background-color: #ffffff;
    border-radius: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card:hover .product-img {
    background-color: #6542B8;
    color: white;
}

.product-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6542B8;
    margin-bottom: 12px;
}

.product-description {
    font-size: 0.9rem;
    color: #6c6c6c;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 0 8px;
}

.product-features {
    font-size: 0.8rem;
    color: #999;
    list-style: none;
    padding: 0;
    margin-top: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.product-features li {
    display: inline-block;
    margin: 0 6px;
    font-size: 0.75rem;
}

.product-features i {
    color: #6542B8;
    margin-right: 4px;
}

/* 其他内容样式 */
.message-card {
    background-color: #f9f9f9;
    border-left: 6px solid #6542B8;
    padding: 32px 40px;
    margin: 48px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin: 70px 0;
}

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

.feature-icon {
    font-size: 2.8rem;
    color: #6542B8;
    margin-bottom: 20px;
}

.testimonials {
    background-color: #fafafc;
    padding: 70px 0;
    margin: 60px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.testimonial {
    background: white;
    padding: 28px 24px;
    border-radius: 20px;
    border: 1px solid #efefef;
}

.testimonial p::before {
    content: "“";
    font-size: 1.5rem;
    color: #6542B8;
}

.site-footer {
    background-color: #ffffff;
    color: #2c2c2c;
    padding: 32px 0;
    margin-top: 60px;
    border-top: 1px solid #eaeaea;
    font-size: 0.85rem;
}

.footer-content {
    text-align: center;
    line-height: 1.6;
}

.footer-links {
    display: inline-block;
    margin: 0 12px;
}

.footer-links a {
    color: #3a3a3a;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #6542B8;
}

.footer-copyright {
    display: inline-block;
    color: #6c6c6c;
}

.footer-copyright a {
    text-decoration: none;

    color: inherit;
}

.footer-copyright a:hover {
    text-decoration: underline;

    color: inherit;
}

.footer-separator {
    display: inline-block;
    margin: 0 8px;
    color: #ddd;
}

@media (max-width: 768px) {
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links {
        display: block;
        margin: 8px 0;
    }

    .footer-copyright {
        display: block;
    }

    .footer-separator {
        display: none;
    }
}
