/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #e4393c;
}

ul, ol {
    list-style: none;
}

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

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e4393c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* 标题样式 */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e4393c;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: #e4393c;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar {
    background-color: #f1f1f1;
    padding: 5px 0;
    font-size: 12px;
}

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

.user-actions a {
    margin-left: 15px;
}

.main-header {
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 28px;
    color: #e4393c;
    margin: 0;
}

.search-box {
    display: flex;
    width: 50%;
}

.search-box form {
    display: flex;
    width: 100%;
}

.search-box input {
    width: 85%;
    padding: 10px 15px;
    border: 2px solid #e4393c;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-box button {
    width: 15%;
    padding: 10px 0;
    background-color: #e4393c;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cart {
    display: flex;
    align-items: center;
}

.cart .icon {
    margin-right: 5px;
}

/* 导航栏样式 */
.main-nav {
    background-color: #e4393c;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #c7222a;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    margin-right: 30px;
    min-width: 200px;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e4393c;
}

.footer-section.links ul li {
    margin-bottom: 8px;
}

.footer-section.links a,
.footer-section a {
    color: #f1f1f1;
}

.footer-section.links a:hover,
.footer-section a:hover {
    color: #e4393c;
}

.footer-section.contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #f1f1f1;
}

.footer-section.contact .icon {
    margin-right: 10px;
}

/* 新的页脚样式 */
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    margin-right: 30px;
    min-width: 200px;
}

.footer-column:last-child {
    margin-right: 0;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e4393c;
}

.footer-column p,
.footer-column ul li,
.footer-column address p {
    color: #f1f1f1;
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #f1f1f1;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #e4393c;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    font-size: 14px;
    color: #f1f1f1;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 15px;
    }

    .search-box form {
        width: 100%;
    }

    .footer-section {
        flex: 0 0 48%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
    }

    .footer-section {
        flex: 0 0 100%;
    }

    .footer-column {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
} 