* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

:root {
    --primary-color: #e1251b;
    --secondary-color: #f6f6f6;
    --dark-color: #333;
    --light-color: #fff;
    --border-color: #e4e4e4;
    --accent-color: #ff9000;
    --success-color: #00b46e;
    --campus-green: #1a5d1a;
}

body {
    background-color: #f4f4f4;
    color: #333;
    min-width: 1200px;
    background-image: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)), 
                     url('https://ts1.tc.mm.bing.net/th/id/R-C.e3b2aeb46279fbb21266a7dafdbf9e0c?rik=ASvGqohfqetRXw&riu=http%3a%2f%2fstatic-data.gaokao.cn%2fupload%2fschool%2f202004%2f1607046659_7069_thumb.jpg&ehk=mDtpYukWiTehiPVPABrmrTAOOFieLHtrNG5yugJXYQI%3d&risl=&pid=ImgRaw&r=0');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 顶部导航 */
.top-bar {
    height: 35px;
    background: linear-gradient(90deg, var(--campus-green), #2c7a2c);
    color: #e0e0e0;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-links a {
    margin-left: 15px;
    transition: color 0.3s;
    padding: 2px 5px;
    border-radius: 2px;
}

.top-links a:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

/* 主头部 */
.main-header {
    height: 120px;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 15px 0;
    position: relative;
    z-index: 2;
}

.logo {
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, var(--success-color), var(--campus-green));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin-right: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent, rgba(255,255,255,0.2) 70%);
    transform: rotate(45deg);
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo span {
    font-size: 14px;
    margin-top: 5px;
    letter-spacing: 1px;
}

.search-box {
    flex: 1;
    display: flex;
    height: 45px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: 2px solid var(--primary-color);
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #c11d15;
    box-shadow: 0 0 8px rgba(225, 37, 27, 0.3);
}

.search-box button {
    width: 90px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #c11d15;
}

.hot-words {
    display: flex;
    margin-top: 5px;
    font-size: 12px;
}

.hot-words a {
    margin-right: 15px;
    color: #666;
    transition: color 0.3s;
    padding: 2px 5px;
    border-radius: 3px;
}

.hot-words a:hover {
    color: var(--primary-color);
    background-color: #f9f9f9;
}

.cart-box {
    width: 140px;
    height: 40px;
    background-color: #f7f7f7;
    border: 1px solid #e3e3e3;
    margin-left: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-box:hover {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.cart-box i {
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 5px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    border-radius: 10px;
    padding: 0 6px;
    height: 18px;
    line-height: 18px;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}

/* 主导航 */
.main-nav {
    height: 45px;
    background: linear-gradient(90deg, var(--primary-color), #ff5e52);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nav-container {
    display: flex;
    height: 100%;
}

.all-categories {
    width: 210px;
    height: 100%;
    background-color: rgba(0,0,0,0.15);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 0 0 6px 0;
}

.all-categories:hover {
    background-color: rgba(0,0,0,0.25);
}

.all-categories i {
    margin-right: 10px;
}

.nav-links {
    flex: 1;
    display: flex;
}

.nav-links a {
    color: rgba(255,255,255,0.95);
    padding: 0 25px;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    color: white;
}

/* 轮播图 */
.banner-section {
    height: 420px;
    background-color: #f5f5f5;
    padding-top: 15px;
    margin-top: 15px;
}

.banner-container {
    display: flex;
    height: 100%;
}

.categories-menu {
    width: 210px;
    background-color: rgba(255,255,255,0.95);
    padding: 10px 0;
    height: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.category-item {
    height: 40px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.category-item:hover {
    background-color: #fff6f6;
    color: var(--primary-color);
    padding-left: 25px;
}

.category-item::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 5px;
    height: 5px;
    background-color: var(--success-color);
    border-radius: 50%;
}

.category-item i {
    margin-right: 10px;
    color: #777;
    width: 20px;
    text-align: center;
}

.banner-slider {
    flex: 1;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.banner-slider:hover img {
    transform: scale(1.05);
}

.banner-ads {
    width: 300px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-box {
    height: 48%;
    background-color: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transition: all 0.3s;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.ad-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff5e52);
}

.ad-box:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.ad-box h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.ad-box h3 i {
    margin-right: 8px;
    font-size: 20px;
}

.ad-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 特色区域 */
.feature-section {
    margin-top: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 22px;
    background-color: var(--primary-color);
    margin-right: 10px;
    border-radius: 2px;
}

.section-more {
    color: #999;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.section-more:hover {
    color: var(--primary-color);
}

.section-more i {
    margin-left: 5px;
    font-size: 12px;
}

.feature-content {
    display: flex;
    margin-top: 20px;
}

.feature-left {
    width: 230px;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-left h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.feature-left h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.feature-left p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.feature-right {
    flex: 1;
    margin-left: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.product-img img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-name {
    font-size: 14px;
    height: 40px;
    overflow: hidden;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.product-price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    margin-top: auto;
    display: flex;
    align-items: center;
}

.product-price span {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
}

/* 校园特色服务 */
.campus-feature {
    background-color: white;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.campus-card {
    height: 120px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.campus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.campus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
    transition: all 0.3s;
}

.campus-card:hover::before {
    background: rgba(0,0,0,0.1);
}

.campus-card span {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 10px;
}

.campus-card i {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.card-1 { background: linear-gradient(135deg, #00b46e, #1a5d1a); }
.card-2 { background: linear-gradient(135deg, #ff9000, #e67a00); }
.card-3 { background: linear-gradient(135deg, #e1251b, #b32017); }
.card-4 { background: linear-gradient(135deg, #4a6fc8, #2e4e9e); }

/* 分类区域 */
.category-section {
    margin-top: 20px;
}

.category-header {
    height: 50px;
    background: linear-gradient(to right, var(--campus-green), #2c7a2c);
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.category-header i {
    margin-right: 10px;
    font-size: 24px;
}

.category-content {
    background-color: white;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* 页脚 */
.footer {
    margin-top: 40px;
    background-color: #fff;
    border-top: 2px solid var(--campus-green);
    padding: 30px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-links {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.footer-column h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #444;
    position: relative;
    padding-bottom: 8px;
    font-weight: bold;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--campus-green);
}

.footer-column ul li {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    transition: color 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.footer-column ul li::before {
    content: '•';
    margin-right: 5px;
    color: var(--campus-green);
}

.footer-column ul li:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    color: #666;
    font-size: 12px;
    line-height: 1.8;
}

.copyright p:first-child {
    font-weight: bold;
    font-size: 14px;
    color: var(--campus-green);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}