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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn--primary {
    background-color: #000;
    color: #fff;
}

.btn--primary:hover {
    background-color: #333;
}

.btn--secondary {
    background-color: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn--secondary:hover {
    background-color: #000;
    color: #fff;
}

.btn--product {
    background-color: #f5f5f5;
    color: #000;
    font-size: 12px;
    padding: 8px 16px;
}

.btn--product:hover {
    background-color: #e0e0e0;
}

/* 部分标题 */
.section__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #000;
}

/* 头部导航 */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo img {
    max-height: 40px;
}

/* 导航菜单 */
.nav__list {
    display: flex;
    list-style: none;
}

.nav__item {
    margin-left: 30px;
}

.nav__link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link--active {
    color: #000;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn__icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000;
    position: relative;
}

.mobile-menu-btn__icon::before,
.mobile-menu-btn__icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #000;
    left: 0;
}

.mobile-menu-btn__icon::before {
    top: -8px;
}

.mobile-menu-btn__icon::after {
    bottom: -8px;
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 999;
}

.mobile-nav__list {
    list-style: none;
}

.mobile-nav__item {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav__link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link--active {
    background-color: #f5f5f5;
    color: #000;
}

/* 主视觉 */
.hero {
    padding: 120px 0 80px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
}

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

.hero__content {
    flex: 1;
    max-width: 500px;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.hero__subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
}

.hero__content .btn {
    margin-right: 15px;
    margin-bottom: 15px;
}

.hero__image {
    flex: 1;
    max-width: 600px;
}

.hero__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 核心优势 */
.features {
    padding: 80px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature__icon {
    font-size: 40px;
    color: #000;
    margin-bottom: 20px;
}

.feature__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.feature__description {
    color: #666;
    font-size: 14px;
}

/* 产品精选 */
.products {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product__image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product:hover .product__image img {
    transform: scale(1.05);
}

.product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px;
    color: #000;
}

.product__price {
    font-size: 18px;
    font-weight: 700;
    margin: 0 15px 15px;
    color: #000;
}

.product__actions {
    padding: 0 15px 15px;
}

.products__more {
    text-align: center;
}

/* 客户评价 */
.testimonials {
    padding: 80px 0;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 4px;
}

.testimonial__rating {
    color: #f1c40f;
    margin-bottom: 20px;
}

.testimonial__content {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial__author-name {
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.testimonial__author-company {
    font-size: 12px;
    color: #999;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.contact__list {
    list-style: none;
}

.contact__item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
}

.contact__item i {
    margin-right: 15px;
    color: #000;
    font-size: 18px;
}

/* 表单样式 */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #000;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #000;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo img {
    max-height: 40px;
    margin-bottom: 20px;
}

.footer__description {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    margin-right: 10px;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer__social-link:hover {
    background-color: #666;
}

.footer__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer__links {
    list-style: none;
}

.footer__link-item {
    margin-bottom: 10px;
}

.footer__link {
    text-decoration: none;
    color: #999;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer__link:hover {
    color: #fff;
}

.footer__contact {
    list-style: none;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #999;
    font-size: 14px;
}

.footer__contact-item i {
    margin-right: 15px;
    color: #999;
    font-size: 18px;
}

.footer__subscribe-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.footer__subscribe-form {
    display: flex;
}

.footer__subscribe-input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.footer__subscribe-btn {
    background-color: #fff;
    color: #000;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer__subscribe-btn:hover {
    background-color: #e0e0e0;
}

.footer__bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.footer__legal-link {
    text-decoration: none;
    color: #999;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer__legal-link:hover {
    color: #fff;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    margin-top: 80px;
}

.breadcrumb__link {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

.breadcrumb__separator {
    margin: 0 10px;
    color: #999;
    font-size: 14px;
}

.breadcrumb__current {
    color: #999;
    font-size: 14px;
}

/* 产品页面 */
.products-page {
    padding: 40px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.page-header__description {
    font-size: 16px;
    color: #666;
}

/* 筛选和排序 */
.filter-sort {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.filter__title,
.sort__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.filter__group {
    margin-bottom: 10px;
}

.filter__label {
    margin-left: 10px;
    cursor: pointer;
    color: #666;
}

.sort__select {
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

/* 产品列表 */
.products-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card__image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card__content {
    padding: 20px;
}

.product-card__category {
    font-size: 12px;
    margin-bottom: 10px;
}

.product-card__category-link {
    text-decoration: none;
    color: #999;
    transition: color 0.3s ease;
}

.product-card__category-link:hover {
    color: #000;
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card__title-link {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.product-card__title-link:hover {
    color: #666;
}

.product-card__description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-card__price {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

/* 分页 */
.pagination {
    text-align: center;
}

.pagination__list {
    display: inline-flex;
    list-style: none;
}

.pagination__item {
    margin: 0 5px;
}

.pagination__link {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-decoration: none;
    color: #666;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination__link:hover,
.pagination__link--active {
    background-color: #000;
    color: #fff;
}

/* 懒加载图片 */
.lazyload {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazyload.loaded {
    opacity: 1;
}

/* 定制服务页面 */
.custom-page {
    padding: 40px 0;
}

/* 企业实力页面 */
.about-page {
    padding: 40px 0;
}

/* 联系我们页面 */
.contact-page {
    padding: 40px 0;
}

/* 404页面 */
.error-page {
    padding: 80px 0;
    text-align: center;
}

.error-page__title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}

.error-page__subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    color: #666;
}

.error-page__description {
    font-size: 16px;
    color: #999;
    margin-bottom: 40px;
}

/* 管理页面样式 */
.admin-page {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-header__title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
}

.admin-header__actions {
    display: flex;
    gap: 10px;
}

/* 数据统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card__title {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.stat-card__value {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 5px;
}

.stat-card__change {
    font-size: 12px;
    color: #27ae60;
}

/* 表格样式 */
.table-container {
    overflow-x: auto;
    margin-bottom: 40px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.admin-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #000;
}

.admin-table tr:hover {
    background-color: #f5f5f5;
}

/* 表单样式 */
.admin-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.admin-form__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #000;
}

/* 登录页面 */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.login-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-form__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #000;
}

.login-form__error {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-form__success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 图片上传 */
.image-upload {
    margin-bottom: 20px;
}

.image-upload__label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #000;
}

.image-upload__input {
    margin-bottom: 10px;
}

.image-preview {
    margin-top: 10px;
    max-width: 200px;
}

.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}