/* ==================== 全局样式 ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-lg { padding: 15px 40px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

.btn-inquiry {
    display: inline-block;
    padding: 8px 20px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-inquiry:hover { background: #5a67d8; }

/* ==================== 头部样式 ==================== */
.header {
    background: #1a365d;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.logo span { color: #63b3ed; }

.logo.logo--image {
    font-size: 0;
    line-height: 0;
}

.logo .logo__img {
    max-height: 40px;
    width: auto;
    display: block;
    vertical-align: middle;
}

/* 导航菜单 */
.nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav > a, .nav > .dropdown > a {
    color: rgba(255,255,255,0.9);
    padding: 20px 18px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.nav > a:hover, .nav > .dropdown:hover > a {
    color: #63b3ed;
}

.nav > a.active { color: #63b3ed; }

.nav .arrow {
    font-size: 10px;
    margin-left: 5px;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: white;
    min-width: 800px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px;
    padding: 30px;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mega-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.mega-column h4 a {
    color: #1a365d;
}

.mega-column h4 a:hover {
    color: #667eea;
}

.mega-column ul li {
    margin-bottom: 8px;
}

.mega-column ul li a {
    color: #4a5568;
    font-size: 13px;
    padding: 5px 0;
    display: block;
    transition: color 0.3s;
}

.mega-column ul li a:hover {
    color: #667eea;
    padding-left: 5px;
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-catalogue {
    background: #48bb78;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-catalogue:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.btn-admin {
    background: #ed8936;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-admin:hover { background: #dd6b20; }

/* ==================== Hero区域 ==================== */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 120px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255,255,255,0.85);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==================== 统计区域 ==================== */
.stats {
    background: #f7fafc;
    padding: 60px 0;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    color: #718096;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
}

/* ==================== 分类区域 ==================== */
.categories-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: #1a202c;
    margin-bottom: 15px;
}

.section-title p {
    color: #718096;
    font-size: 18px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.category-content {
    padding: 25px;
    text-align: left;
}

.category-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.category-card h3 {
    font-size: 19px;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.category-card p {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    letter-spacing: 0.01em;
}

.category-link {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 0.025em;
    text-decoration: none;
}

.category-link:hover {
    color: #5a67d8;
}

/* ==================== 产品展示 ==================== */
.featured-products {
    padding: 80px 0;
    background: #f7fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-image {
    height: 200px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-height: 160px;
    max-width: 80%;
    object-fit: contain;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.badge-hot { background: #e53e3e; }
.badge-new { background: #38a169; }
.badge-sale { background: #dd6b20; }

.product-info {
    padding: 25px;
}

.product-category {
    color: #667eea;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-name {
    font-size: 18px;
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-desc {
    color: #718096;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
}

/* ==================== Why Choose Us ==================== */
.why-choose {
    padding: 100px 0;
    background: white;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-choose h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #1a202c;
}

.why-choose .lead {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.7;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a202c;
}

.feature-text p {
    color: #718096;
    font-size: 15px;
    line-height: 1.5;
}

.why-choose-image {
    height: 500px;
    width: 600px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* ==================== Contact CTA ==================== */
.contact-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    text-align: center;
}

.contact-cta h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-cta > p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 50px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.contact-method {
    padding: 30px;
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-method h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-method p {
    opacity: 0.9;
}

/* ==================== Footer ==================== */
.footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span { color: #63b3ed; }

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #2d3748;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #667eea;
}

.footer-column h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #a0aec0;
    transition: color 0.3s;
    font-size: 15px;
}

.footer-column a:hover {
    color: #63b3ed;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

.footer-bottom a {
    color: #63b3ed;
    margin: 0 10px;
}

/* ==================== 面包屑导航 ==================== */
.breadcrumb {
    background: #f7fafc;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #667eea;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span { color: #718096; margin: 0 8px; }

.breadcrumb current {
    color: #4a5568;
    font-weight: 500;
}

/* ==================== 分类页面布局 ==================== */
.category-page {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.sidebar-left {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
    color: #1a202c;
}

.category-tree li {
    margin-bottom: 8px;
}

.category-tree > li > a {
    font-weight: 600;
    color: #1a365d;
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid #e2e8f0;
}

.category-tree ul {
    padding-left: 15px;
    margin-top: 8px;
}

.category-tree ul li a {
    color: #4a5568;
    font-size: 14px;
    padding: 6px 0;
    display: block;
}

.category-tree ul li a:hover,
.category-tree ul li a.active {
    color: #667eea;
}

.main-content {
    flex: 1;
}

.category-header {
    margin-bottom: 30px;
}

.category-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.category-header p {
    color: #718096;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.subcategory-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.subcategory-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.subcategory-card a {
    display: block;
    padding: 25px;
}

.subcategory-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a202c;
}

.subcategory-card p {
    color: #718096;
    font-size: 14px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .nav { display: none; }
    .sidebar-left { display: none; }
    .category-page { flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-choose-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-methods { flex-direction: column; gap: 20px; }
}
