/* xiyyuo 羽绒服品牌官网 - CSS样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #2C3E50;
    --accent-color: #E74C3C;
    --text-color: #333;
    --light-color: #95A5A6;
    --bg-light: #F5F5F5;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.logo img {
    height: 40px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-contact {
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #6B3410;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* 轮播图 */
.banner-section {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.banner-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.banner-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.banner-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-item .banner-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.banner-item h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.banner-item p {
    font-size: 18px;
}

.banner-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.banner-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.banner-nav button:hover {
    background: var(--white);
    transform: scale(1.1);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.banner-dots button.active {
    background: var(--white);
    transform: scale(1.2);
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--light-color);
    font-size: 16px;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
}

.product-badge.new {
    background: #27AE60;
}

.product-badge.hot {
    background: var(--accent-color);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--light-color);
    font-size: 13px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
}

.price-original {
    font-size: 14px;
    color: var(--light-color);
    text-decoration: line-through;
}

.new-arrival-section {
    background: var(--bg-light);
}

/* 品牌故事 */
.brand-section {
    background: linear-gradient(135deg, var(--primary-color), #6B3410);
    color: var(--white);
}

.brand-content {
    text-align: center;
    padding: 60px 40px;
}

.brand-content h2 {
    font-size: 42px;
    margin-bottom: 30px;
}

.brand-content p {
    font-size: 18px;
    line-height: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* 新闻资讯 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--light-color);
    font-size: 13px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-summary {
    color: var(--light-color);
    font-size: 14px;
    line-height: 1.6;
}

/* 页面标题区 */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: var(--bg-light);
}

.page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.title-line {
    width: 100px;
    height: 1px;
    background: var(--primary-color);
    margin: 0 auto 20px;
}

.page-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--light-color);
}

/* 联系我们 */
.contact-section {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-item-text {
    font-size: 16px;
    color: var(--text-color);
}

.contact-image {
    border-radius: 10px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: auto;
}

/* 页脚 */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.footer-nav h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-item-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 按钮样式 */
.btn-more {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--primary-color);
    color: var(--white);
}

.section-footer {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
    }

    .banner-container {
        height: 400px;
    }

    .banner-item h2 {
        font-size: 32px;
    }

    .banner-item p {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }
}
