/* 正好不锈钢网站重设计 - 样式文件 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 顶部栏样式 */
.top-bar {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info i {
    margin-right: 5px;
    color: #3498db;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    width:250px;
    height:60px;
    align-items: center;
    gap: 15px;
    background:url("../images/logo.png");
}
.logo p {
    margin-top:40px;
    text-align:right;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 14px;
    color: #7f8c8d;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
	padding:0 15px;
    position: relative;
	border-bottom:4px solid #fff;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}


.nav-menu li:hover {
	border-bottom:4px solid #3498db;
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
}

/* 轮播图样式 */
.hero-slider {
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.slide-content {
//    position: absolute;
    bottom: 60px;
    left: 60px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 600px;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #3498db;
}

/* 产品分类样式 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

.section-title p {
    color: #7f8c8d;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.category-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 30px 20px;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-icon span {
    display:block;
    width:48px;
    height:48px;
    margin:0 auto;
}
.category-icon span.i1 {
    background:url("../images/item-icon01.svg") no-repeat 0 0;
    background-size:100%;
}
.category-icon span.i2 {
    background:url("../images/item-icon02.svg") no-repeat 0 0;
    background-size:100%;
}
.category-icon span.i3 {
    background:url("../images/item-icon03.svg") no-repeat 0 0;
    background-size:100%;
}
.category-icon span.i4 {
    background:url("../images/item-icon04.svg") no-repeat 0 0;
    background-size:100%;
}
.category-icon span.i5 {
    background:url("../images/item-icon05.svg") no-repeat 0 0;
    background-size:100%;
}
.category-icon span.i6 {
    background:url("../images/item-icon06.svg") no-repeat 0 0;
    background-size:100%;
}
.category-icon span.i7 {
    background:url("../images/item-icon07.svg") no-repeat 0 0;
    background-size:100%;
}
.category-icon span.i8 {
    background:url("../images/item-icon08.svg") no-repeat 0 0;
    background-size:100%;
}

.category-card h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.category-card p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 产品展示样式 */
.products {
    margin-bottom: 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 关于我们样式 */
.about-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.about-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><path fill="rgba(255,255,255,0.05)" d="M0,0L1000,0L1000,1000L0,1000Z"/></svg>');
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 新闻动态样式 */
.news-section {
    margin-bottom: 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    background: #3498db;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 16px;
}
.news-date a {
	color:#fff;
	font-weight:bold;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 联系方式样式 */
.contact-section {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0;
    margin-bottom: 0;
}

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

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #3498db;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-details i {
    color: #3498db;
    margin-top: 3px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

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

/* 页脚样式 */
.footer {
    background-color: #1a252f;
    color: #bdc3c7;
    padding: 40px 0;
    text-align: center;
}

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

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.copyright {
    font-size: 14px;
    margin-top: 20px;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content {
        left: 30px;
        bottom: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 10px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-content {
        left: 20px;
        bottom: 20px;
    }

    .slide-content h2 {
        font-size: 20px;
    }

    .categories,
    .product-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
}