/* ========== 前台样式 - 鞋类企业品牌展示网站 ========== */

/* 基础变量 */
:root {
    --brand-color: #2E7D32;
    --brand-dark: #1B5E20;
    --brand-light: #e8f5e9;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-color);
}

a {
    color: var(--brand-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-color);
    letter-spacing: 1px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu > li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    padding: 8px 18px;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--brand-color);
    background: var(--brand-light);
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown > a i {
    font-size: 10px;
    transition: transform 0.3s;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 200px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: var(--brand-light);
    color: var(--brand-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== Hero轮播 ========== */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 70px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
}

.hero-overlay .container {
    color: #fff;
}

.hero-overlay h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-overlay p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

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

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--brand-color);
    color: #fff;
    border-color: var(--brand-color);
}

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

.btn-outline {
    background: transparent;
    color: var(--brand-color);
    border-color: var(--brand-color);
}

.btn-outline:hover {
    background: var(--brand-color);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--brand-color);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--brand-light);
    border-color: var(--brand-light);
    color: var(--brand-dark);
}

/* ========== 核心数据 ========== */
.stats-section {
    background: var(--brand-color);
    padding: 50px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

/* ========== 通用区块 ========== */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ========== 分类卡片 ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.category-image {
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-info {
    padding: 20px;
    text-align: center;
}

.category-info h3 {
    font-size: 20px;
    color: var(--text-color);
}

.category-info p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========== 服务卡片 ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius);
    background: var(--bg-gray);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.service-icon {
    font-size: 40px;
    color: var(--brand-color);
    margin-bottom: 20px;
}

.service-image {
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========== 视频模块 ========== */
.video-section {
    background: var(--bg-gray);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== CTA区域 ========== */
.cta-section {
    background: var(--brand-color);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

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

/* ========== 页面头部 ========== */
.page-header {
    background: linear-gradient(135deg, var(--brand-color), var(--brand-dark));
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ========== 关于我们 ========== */
.about-section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-section-reverse .about-grid {
    direction: rtl;
}

.about-section-reverse .about-grid > * {
    direction: ltr;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--brand-color);
}

.about-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
    white-space: pre-line;
}

/* ========== 画廊 ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 14px;
}

/* ========== 产品页 ========== */
.product-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 30px;
    background: var(--bg-gray);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand-color);
    color: #fff;
}

.sub-filter {
    margin-left: 10px;
    padding: 6px 18px;
    font-size: 13px;
    opacity: 0.8;
}

.sub-filter.active {
    opacity: 1;
}

.category-description {
    text-align: center;
    margin-bottom: 40px;
}

.category-description h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.category-description p {
    color: var(--text-light);
}

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

.product-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-image {
    height: 280px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-category {
    font-size: 13px;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: var(--border-color);
}

/* ========== 服务详情 ========== */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-detail-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-3px);
}

.service-detail-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-detail-content {
    padding: 30px;
}

.service-detail-icon {
    font-size: 36px;
    color: var(--brand-color);
    margin-bottom: 15px;
}

.service-detail-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-detail-content h3 small {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 8px;
}

.service-detail-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== 联系页面 ========== */
.contact-section {
    padding: 80px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card-item {
    padding: 25px 20px;
    background: var(--bg-gray);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-card-item .card-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    color: var(--brand-color);
}

.contact-card-item h4 {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-card-item p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-card-item p a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-card-item p a:hover {
    color: var(--brand-color);
    text-decoration: underline;
}

.contact-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-form-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.contact-form-card > p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-color);
    background: var(--bg-gray);
    transition: all 0.3s;
    outline: none;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: var(--brand-color);
    background: #fff;
    box-shadow: 0 0 0 4px var(--brand-light);
}

.contact-form .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-submit {
    padding: 14px 40px;
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.contact-form .btn-submit:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.contact-map-section {
    margin-top: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map-section iframe {
    width: 100%;
    height: 350px;
    border: none;
}

.form-message {
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #e8f5e9;
    color: #2d7a3a;
    border: 1px solid #c8e6c9;
}

.form-message.error {
    display: block;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ========== 页脚 ========== */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 25px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 8px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.5;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 4px;
    font-size: 13px;
}

.footer-col ul li i {
    margin-right: 6px;
    color: var(--brand-color);
}

.footer-col ul li a {
    color: #ccc;
}

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

.footer-bottom {
    text-align: center;
    padding: 12px 0;
    font-size: 12px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-grid,
    .services-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-section-reverse .about-grid {
        direction: ltr;
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .nav-menu.show {
        display: flex;
    }
    .hero-overlay h1 {
        font-size: 28px;
    }
    .hero-overlay p {
        font-size: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stat-number {
        font-size: 30px;
    }
    .categories-grid,
    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 50px 0;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .page-header h1 {
        font-size: 30px;
    }
    /* 移动端下拉菜单 */
    .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 15px;
    display: none;
}

.nav-dropdown.show .dropdown-menu {
    display: block;
}
    /* 联系页面响应式 */
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-card {
        padding: 25px;
    }
}
