/* Base CSS for frontend */
* {
    padding: 0;
    margin: 0;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
}

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

a:hover {
    color: #ff6600;
}

.w {
    width: 1200px;
    margin: 0 auto;
}

.w-full {
    width: 100%;
}

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Top Navigation */
.com-top-nav {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
}

.wcp-wrap {
    display: flex;
    justify-content: space-between;
}

.top-left a, .top-right a {
    margin: 0 5px;
    color: #666;
    font-size: 12px;
}

.top-right {
    display: flex;
    align-items: center;
}

.cart-link {
    color: #ff6600 !important;
}

.cart-num {
    color: #ff6600;
    font-weight: bold;
}

/* Header */
.header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #ff6600;
}

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

.logo img {
    height: 40px;
}

.search-box {
    display: flex;
}

.search-input {
    width: 300px;
    height: 36px;
    border: 2px solid #ff6600;
    padding: 0 10px;
    outline: none;
}

.search-btn {
    width: 80px;
    height: 40px;
    background: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Main Navigation */
.main-nav {
    background: #fff;
    margin-top: 10px;
    border-bottom: 1px solid #e5e5e5;
}

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

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    color: #333;
}

.nav-list li a:hover {
    color: #ff6600;
    background: #f9f9f9;
}

.nav-list li.first-item a {
    color: #ff6600;
    font-weight: bold;
}

/* Main Content */
.main-content {
    min-height: 500px;
    padding: 20px 0;
}

/* Footer */
.footer {
    background: #333;
    color: #999;
    padding: 30px 0;
    margin-top: 30px;
}

.footer-content {
    text-align: center;
}

.footer-links a {
    color: #999;
    margin: 0 10px;
}

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

.footer-copyright {
    margin-top: 15px;
    font-size: 12px;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 10px 15px;
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #ff6600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
}

.btn:hover {
    background: #e55b00;
    color: #fff;
}

.btn-secondary {
    background: #666;
}

.btn-secondary:hover {
    background: #555;
}
