/* ============================================
   SPORT READY 狮跑锐得 - 主样式表
   配色：深蓝科技风 (#0a2540 主色 / #1e5fa8 辅助)
   设计参考：泰山体育官网
   ============================================ */

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
        sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- 颜色变量 ---------- */
:root {
    --primary-dark: #0a2540;
    --primary-blue: #1e5fa8;
    --primary-light: #2e7cc7;
    --accent: #4a90d9;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --mid-gray: #666;
    --dark-gray: #222;
    --shadow: 0 4px 20px rgba(10, 37, 64, 0.15);
}

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

/* ---------- 顶部导航 ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 37, 64, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-link:hover::after {
    width: 24px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn {
    padding: 2px 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--accent);
}

.lang-btn.active {
    color: var(--white);
    background: var(--accent);
}

.lang-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ---------- 主视觉轮播 ---------- */
main#home {
    padding-top: 72px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 72px);
    min-height: 560px;
    max-height: 780px;
    overflow: hidden;
    background: var(--primary-dark);
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(10, 37, 64, 0.88) 0%,
        rgba(10, 37, 64, 0.65) 40%,
        rgba(10, 37, 64, 0.35) 70%,
        rgba(10, 37, 64, 0.15) 100%
    );
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: 8%;
    padding: 32px 40px;
    color: var(--white);
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-brand {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.slide-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.slide-subtitle {
    font-size: clamp(18px, 2.2vw, 26px);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.slide-subtitle2 {
    font-size: clamp(14px, 1.4vw, 18px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.slide-list {
    margin-top: 12px;
}

.slide-list li {
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.95);
    padding-left: 22px;
    position: relative;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.slide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(74, 144, 217, 0.7);
}

/* 轮播控制器 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 28px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev {
    left: 24px;
}

.carousel-next {
    right: 24px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.carousel-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(74, 144, 217, 0.8);
    transform: scale(1.15);
}

/* ---------- 通用内容区 ---------- */
.seo-section {
    padding: 80px 0;
    background: var(--white);
}

.seo-section.alt-bg {
    background: var(--light-gray);
}

.section-heading {
    text-align: center;
    font-size: clamp(24px, 2.8vw, 36px);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 48px;
    position: relative;
    padding-bottom: 16px;
}

.section-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent));
    border-radius: 2px;
}

.seo-content p {
    font-size: 16px;
    line-height: 2;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.seo-content strong {
    color: var(--primary-blue);
}

.seo-content em {
    color: var(--primary-light);
    font-style: normal;
    border-bottom: 1px dashed var(--accent);
    padding-bottom: 1px;
}

/* ---------- 产品网格 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: 10px;
    border: 1px solid #e8edf3;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(10, 37, 64, 0.15);
    border-color: var(--primary-blue);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 14px;
    line-height: 1.4;
}

.product-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* ---------- 案例区 ---------- */
.case-section {
    padding: 80px 0;
    background: var(--white);
}

.case-block {
    margin-bottom: 48px;
}

.case-block:last-child {
    margin-bottom: 0;
}

.case-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.case-subtitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.08);
}

.case-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    color: #444;
    background: var(--white);
    border-bottom: 1px solid #e0e6ed;
    border-right: 1px solid #e0e6ed;
    transition: all 0.25s ease;
    position: relative;
}

.case-item:nth-child(3n) {
    border-right: none;
}

.case-item:hover {
    background: linear-gradient(135deg, rgba(30, 95, 168, 0.08), rgba(74, 144, 217, 0.05));
    color: var(--primary-blue);
    padding-left: 28px;
}

.case-item:hover::before {
    content: "✓";
    position: absolute;
    left: 8px;
    color: var(--accent);
    font-weight: bold;
    font-size: 12px;
}

/* ---------- 新闻区 ---------- */
.news-wechat {
    text-align: center;
    padding: 30px 0;
}

.news-qr-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.12);
}

.news-wechat-text {
    font-size: 18px;
    color: var(--primary-dark);
    font-weight: 500;
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-loading {
    text-align: center;
    color: var(--mid-gray);
    padding: 40px 0;
    font-size: 16px;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.06);
}

.news-item:hover {
    box-shadow: 0 4px 16px rgba(10, 37, 64, 0.12);
    transform: translateX(4px);
}

.news-item-main {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 6px 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item:hover .news-item-title {
    color: var(--primary-blue);
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--mid-gray);
}

.news-author {
    color: var(--primary-blue);
}

.news-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    margin-left: 16px;
    flex-shrink: 0;
}

/* 分页 */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.news-page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: var(--primary-dark);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.news-page-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.news-page-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
}

.news-page-dots {
    color: var(--mid-gray);
    padding: 0 4px;
}

/* 新闻弹窗 */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.news-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 40px;
    z-index: 1;
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary-dark);
    transition: all 0.2s ease;
}

.news-modal-close:hover {
    background: #e0e0e0;
}

.news-article-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.news-article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--mid-gray);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.news-article-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px 0;
}

.news-article-content p {
    margin: 12px 0;
}

.news-article-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
}

.news-article-link:hover {
    text-decoration: underline;
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 60px 0 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.footer-logo {
    height: 56px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-brand {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.contact-list li {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-all;
}

.contact-list li a {
    color: var(--accent);
    transition: color 0.2s ease;
}

.contact-list li a:hover {
    color: var(--white);
    text-decoration: underline;
}

.contact-label {
    color: rgba(255, 255, 255, 0.7);
}

.qr-wrap {
    text-align: center;
}

.qr-img {
    width: 140px;
    height: 140px;
    margin: 0 auto 12px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.qr-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-bottom {
    padding: 20px 32px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--white);
}

.beian-icon {
    width: 20px;
    height: 20px;
    vertical-align: -4px;
    margin-right: 4px;
    display: inline-block;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-qr-col {
        grid-column: 1 / -1;
    }
    .qr-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }
    .qr-img {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }
    .logo-img {
        height: 38px;
    }
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 37, 64, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        z-index: 999;
    }
    .main-nav.open {
        transform: translateY(0);
    }
    .nav-list {
        flex-direction: column;
        padding: 16px 0;
    }
    .nav-link {
        padding: 14px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-link::after {
        display: none;
    }
    .lang-switch {
        padding: 4px 10px;
        font-size: 12px;
    }
    .lang-btn {
        padding: 2px 4px;
        font-size: 12px;
    }
    .mobile-menu-btn {
        display: flex;
    }

    .hero-carousel {
        height: auto;
        min-height: auto;
        max-height: none;
    }
    .carousel-container {
        height: auto;
    }
    .carousel-slide {
        display: none;
        position: relative;
        height: auto;
        min-height: 420px;
    }
    .carousel-slide.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        position: relative;
    }
    .slide-overlay {
        background: linear-gradient(
            180deg,
            rgba(10, 37, 64, 0.82) 0%,
            rgba(10, 37, 64, 0.88) 50%,
            rgba(10, 37, 64, 0.82) 100%
        );
    }
    .slide-content {
        margin: 0 auto;
        padding: 28px 20px;
        max-width: 100%;
    }
    .slide-brand {
        font-size: 17px;
        letter-spacing: 1.5px;
        margin-bottom: 6px;
    }
    .slide-title {
        font-size: 22px;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
    }
    .slide-subtitle {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .slide-list {
        margin-top: 10px;
    }
    .slide-list li {
        font-size: 13px;
        line-height: 1.7;
        padding-left: 18px;
    }
    .slide-list li::before {
        width: 6px;
        height: 6px;
        top: 9px;
    }

    .carousel-prev {
        left: 8px;
    }
    .carousel-next {
        right: 8px;
    }
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .carousel-dots {
        bottom: 14px;
        gap: 8px;
    }
    .carousel-dots .dot {
        width: 8px;
        height: 8px;
    }

    .seo-section,
    .case-section {
        padding: 48px 0;
    }

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

    .case-item:nth-child(3n) {
        border-right: 1px solid #e0e6ed;
    }

    .case-item:nth-child(2n) {
        border-right: none;
    }

    .case-item {
        padding: 12px 14px;
        font-size: 13px;
    }

    .case-subtitle {
        font-size: 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px 32px;
    }
    .qr-wrap {
        flex-direction: column;
        gap: 12px;
    }
    .footer-bottom {
        padding: 16px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-item {
        border-right: none !important;
    }
    .carousel-slide {
        min-height: 380px;
    }
    .slide-content {
        padding: 24px 16px;
    }
    .slide-brand {
        font-size: 15px;
        margin-bottom: 4px;
    }
    .slide-title {
        font-size: 19px;
        margin-bottom: 10px;
    }
    .slide-subtitle {
        font-size: 14px;
    }
    .slide-list {
        margin-top: 8px;
    }
    .slide-list li {
        font-size: 12px;
        line-height: 1.6;
        padding-left: 16px;
        margin-bottom: 2px;
    }
    .slide-list li::before {
        width: 5px;
        height: 5px;
        top: 8px;
    }
    .carousel-prev,
    .carousel-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .carousel-dots .dot {
        width: 7px;
        height: 7px;
    }
}
