/* 
 * 腾虎运动器材官网样式
 * 借鉴苹果/华为简约风格，移动优先
 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #1d1d1f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 链接 */
a {
    color: #0071e3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 头部导航 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e7;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1d1d1f;
}

.logo span {
    color: #0071e3;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-size: 14px;
}

.contact-badge {
    background: #f5f5f7;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #0071e3;
    cursor: pointer;
}

/* 轮播大屏 */
.hero {
    margin: 32px 0 48px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    background: #fafafa;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 20px;
}

.carousel-content h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.carousel-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.carousel-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 40px;
    color: white;
    font-weight: 500;
    transition: background 0.2s;
}

.carousel-link:hover {
    background: rgba(255,255,255,0.3);
    text-decoration: none;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.5);
    transition: 0.3s;
    cursor: pointer;
}

.dot.active {
    background: white;
    width: 24px;
}

/* 实力数字卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 48px 0;
}

.stat-card {
    background: #f5f5f7;
    padding: 28px 16px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #0071e3;
    line-height: 1.2;
}

.stat-label {
    font-size: 16px;
    color: #6e6e73;
    margin-top: 8px;
}

/* 公告 + 公司简介区域 */
.info-row {
    display: flex;
    gap: 24px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.notice-board {
    flex: 1.2;
    background: #fbfbfd;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #e5e5e7;
}

.notice-board h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    margin-bottom: 20px;
}

.notice-list {
    list-style: none;
}

.notice-list li {
    padding: 12px 0;
    border-bottom: 1px solid #efeff1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notice-date {
    color: #8e8e93;
    font-size: 14px;
    min-width: 70px;
}

.notice-title {
    color: #1d1d1f;
    font-weight: 500;
}

.company-intro {
    flex: 2;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 28px;
    border: 1px solid #e5e5e7;
}

.company-intro h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.company-intro p {
    color: #424245;
    margin-bottom: 16px;
}

.highlight {
    color: #0071e3;
    font-weight: 500;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    margin: 40px 0 24px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f5f5f7;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: #0071e3;
    color: white;
}

.filter-btn:hover {
    background: #e8e8ed;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    margin: 32px 0 60px;
}

.product-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid #f0f0f2;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    transform: translateY(-4px);
    border-color: #d2d2d7;
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fafafa;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background-size: cover;
    background-position: center;
}

.product-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 6px;
}

.product-desc {
    color: #6e6e73;
    font-size: 14px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: 700;
    font-size: 22px;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.buy-actions {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 10px 16px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    background: #f5f5f7;
    color: #1d1d1f;
    flex: 1;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn-primary {
    background: #0071e3;
    color: white;
}

.btn-primary:hover {
    background: #005bb5;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d2d2d7;
}

.btn-outline:hover {
    background: #f5f5f7;
}

/* 联系区块 */
.contact-section {
    background: #1d1d1f;
    color: white;
    border-radius: 32px;
    padding: 48px 40px;
    margin: 60px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.contact-left h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-methods {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    padding: 14px 24px;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.2s;
}

.contact-item:hover {
    background: rgba(255,255,255,0.2);
}

/* 页脚 */
.footer {
    border-top: 1px solid #e5e5e7;
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    color: #6e6e73;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 16px;
}

.legal-links a {
    color: #6e6e73;
    text-decoration: none;
    margin-left: 24px;
}

.legal-links a:hover {
    color: #1d1d1f;
}

/* 产品详情页额外样式 */
.breadcrumb {
    margin: 20px 0;
}

.breadcrumb a {
    color: #6e6e73;
}

.product-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
}

.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
    border: 1px solid #e5e5e7;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.thumbnail.active {
    border-color: #0071e3;
}

.product-info {
    flex: 1;
    min-width: 300px;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-meta {
    color: #6e6e73;
    margin-bottom: 24px;
}

.product-price-large {
    font-size: 36px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.product-actions .btn {
    padding: 16px 32px;
    font-size: 18px;
}

.spec-list {
    border-top: 1px solid #e5e5e7;
    padding-top: 24px;
}

.spec-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f2;
}

.spec-label {
    width: 100px;
    color: #6e6e73;
}

.spec-value {
    flex: 1;
    color: #1d1d1f;
}

.detail-description {
    margin: 40px 0;
    line-height: 1.8;
}

.detail-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.detail-images-grid img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #e5e5e7;
}

/* 后台页面通用样式（admin 内已有单独样式，这里补充一些） */
.admin-body {
    background: #f5f5f7;
    padding: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
    }
    .nav-links {
        gap: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .carousel-content h2 {
        font-size: 1.8rem;
    }
    .info-row {
        flex-direction: column;
    }
    .contact-section {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .contact-methods {
        justify-content: center;
    }
    .footer {
        flex-direction: column;
        text-align: center;
    }
    .legal-links a {
        margin: 0 12px;
    }
    .product-detail-container {
        flex-direction: column;
    }
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
}