/* 全局变量 */
:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-rgb: 231, 76, 60;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
}

/* 全局样式 */
body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 6px;
    padding: 5px 10px;
}

.search-box input {
    border: none;
    background: none;
    padding: 5px;
    width: 200px;
    outline: none;
}

.search-box button {
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    color: var(--primary-color);
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-cart {
    position: relative;
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.btn-login {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.8);
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .nav-right {
        margin-top: 15px;
        width: 100%;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .nav-btns {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
} 