 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #4a6fa5;
            --primary-dark: #3a5a8c;
            --primary-light: #eef3fc;
            --accent: #c9a03d;
            --accent-light: #fef6e6;
            --bg-body: #f8fafc;
            --bg-card: #ffffff;
            --bg-soft: #f9fbfd;
            --text-dark: #1f2a44;
            --text-mid: #4a5b7a;
            --text-light: #8a9bb5;
            --border: #e9edf4;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
            --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.04);
            --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
            --radius-lg: 28px;
            --radius-md: 20px;
            --radius-sm: 14px;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-body);
            color: var(--text-dark);
            line-height: 1.5;
        }



        /* 分类栏图标悬停效果可选 */
        .category-item:hover i {
            opacity: 0.8;
        }

        /* 顶部栏 */
        .top-bar {
            background: var(--primary-dark);
            color: white;
            padding: 8px 20px;
            text-align: center;
            font-size: 13px;
        }
        .top-bar span {
            margin: 0 16px;
        }

        /* 导航栏 */
        .navbar {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .nav-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 12px 28px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
        }
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }
        .logo-icon {
            font-size: 30px;
        }
        .logo-text {
            font-size: 24px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .nav-links {
            display: flex;
            gap: 28px;
            align-items: center;
        }
        .nav-links a {
            text-decoration: none;
            color: var(--text-mid);
            font-weight: 500;
            transition: 0.2s;
            font-size: 15px;
        }
        .nav-links a:hover {
            color: var(--primary);
        }
        .order-query {
            background: var(--primary-light);
            padding: 6px 16px;
            border-radius: 40px;
            color: var(--primary-dark) !important;
        }
        .cart-icon {
            background: white;
            width: 38px;
            height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 40px;
            box-shadow: var(--shadow-sm);
            font-size: 18px;
        }

        @media (max-width: 768px) {
            .nav-container {
                flex-direction: column;
                padding: 12px 20px;
            }
            .nav-links {
                gap: 18px;
                flex-wrap: wrap;
                justify-content: center;
            }
        }

        /* 主布局 */
        .main-layout {
            max-width: 1600px;
            margin: 32px auto;
            padding: 0 28px;
            display: flex;
            gap: 32px;
        }

        /* 左侧分类栏 */
        .sidebar {
            width: 300px;
            flex-shrink: 0;
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
            height: fit-content;
            position: sticky;
            top: 100px;
            overflow: hidden;
        }
        .sidebar-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border);
            font-weight: 700;
            font-size: 18px;
            background: var(--bg-soft);
            color: var(--primary-dark);
        }
        .category-list {
            list-style: none;
            /* max-height: 560px; */
            overflow-y: auto;
            padding: 12px 0;
        }
        .category-list::-webkit-scrollbar {
            width: 4px;
        }
        .category-item {
            padding: 12px 24px;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 2px 0;
        }
        .category-item:hover {
            background: var(--primary-light);
        }
        .category-item.active {
            background: linear-gradient(90deg, var(--primary-light) 0%, transparent 100%);
            border-left: 3px solid var(--primary);
        }
        .cat-name {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 500;
        }
        .cat-name i {
            font-size: 1.2rem;
            width: 1.4em;
            text-align: center;
        }
        .cat-count {
            font-size: 12px;
            background: #eef2f8;
            padding: 2px 10px;
            border-radius: 30px;
            color: var(--text-mid);
        }

        @media (max-width: 900px) {
            .main-layout {
                flex-direction: column;
            }
            .sidebar {
                width: 100%;
                position: static;
                background: transparent;
                border: none;
                box-shadow: none;
            }
            .sidebar-header {
                display: none;
            }
            .category-list {
                display: flex;
                flex-direction: row;
                overflow-x: auto;
                gap: 12px;
                padding: 8px 0 12px;
                white-space: nowrap;
            }
            .category-item {
                display: inline-flex;
                padding: 8px 18px;
                background: white;
                border-radius: 60px;
                border: 1px solid var(--border);
                margin: 0;
            }
            .category-item.active {
                background: var(--primary-light);
                border-color: var(--primary);
            }
            .cat-name i {
                font-size: 1rem;
            }
        }

        /* 右侧内容区 */
        .content-area {
            flex: 1;
            min-width: 0;
        }

        /* 公告板块 */
        .notice-card {
            background: var(--accent-light);
            border-radius: var(--radius-md);
            padding: 20px 24px;
            margin-bottom: 28px;
            border: 1px solid rgba(201, 160, 61, 0.3);
            box-shadow: var(--shadow-sm);
        }
        .notice-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px dashed rgba(201, 160, 61, 0.4);
            padding-bottom: 10px;
        }
        .notice-title span {
            font-size: 22px;
        }
        .notice-content {
            font-size: 14px;
            color: var(--text-mid);
            line-height: 1.6;
            margin-bottom: 16px;
        }
        .notice-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 13px;
        }
        .notice-link:hover {
            color: var(--primary-dark);
            gap: 8px;
        }

        /* 商品列表区 */
        .product-panel {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            margin-bottom: 32px;
        }
        .product-header {
            padding: 20px 28px;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            background: var(--bg-soft);
        }
        .product-header h2 {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-dark);
        }
        .product-stats {
            font-size: 13px;
            background: #eef2f8;
            padding: 5px 14px;
            border-radius: 40px;
            color: var(--text-mid);
        }
        .product-list {
            max-height: 555px;
            overflow-y: auto;
        }
        .product-list::-webkit-scrollbar {
            width: 6px;
        }
        .product-list::-webkit-scrollbar-track {
            background: #f0f2f5;
            border-radius: 10px;
        }
        .product-list::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }
        .product-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 28px;
            border-bottom: 1px solid var(--border);
            transition: 0.2s;
            gap: 16px;
            flex-wrap: wrap;
        }
        .product-row:hover {
            background: var(--primary-light);
        }
        .product-info {
            flex: 2;
            min-width: 180px;
        }
        .product-title {
            font-weight: 500;
            font-size: 16px;
            color: var(--text-dark);
        }
        .product-sub {
            font-size: 12px;
            color: var(--text-light);
            margin-top: 4px;
        }
        .product-meta {
            display: flex;
            align-items: center;
            gap: 28px;
            flex-wrap: wrap;
        }
        .price {
            font-size: 22px;
            /* font-weight: 800; */
            color: var(--primary-dark);
        }
        .stock {
            font-size: 13px;
            background: var(--primary-light);
            padding: 4px 14px;
            border-radius: 60px;
            color: var(--primary-dark);
        }
        .buy-btn {
            background: var(--primary);
            border: none;
            padding: 10px 28px;
            border-radius: 60px;
            color: white;
            font-weight: 700;
            cursor: pointer;
            transition: 0.2s;
            font-size: 14px;
            box-shadow: 0 2px 6px rgba(74, 111, 165, 0.3);
        }
        .buy-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        /* 购买流程 */
        .process-section {
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            padding: 24px 28px;
            margin-bottom: 32px;
            box-shadow: var(--shadow-sm);
        }
        .process-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--primary-dark);
        }
        .steps {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            flex-wrap: wrap;
        }
        .step-item {
            flex: 1;
            text-align: center;
            min-width: 140px;
            padding: 16px 12px;
            background: var(--bg-soft);
            border-radius: var(--radius-sm);
            transition: 0.2s;
        }
        .step-number {
            width: 44px;
            height: 44px;
            background: var(--primary);
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 60px;
            font-weight: 800;
            font-size: 20px;
            margin-bottom: 14px;
        }
        .step-title {
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-dark);
        }
        .step-desc {
            font-size: 12px;
            color: var(--text-mid);
        }
        @media (max-width: 800px) {
            .steps {
                flex-direction: column;
            }
            .step-item {
                display: flex;
                align-items: center;
                gap: 20px;
                text-align: left;
            }
            .step-number {
                margin-bottom: 0;
            }
        }

        /* 文章板块 */
        .articles-section {
            margin-top: 8px;
        }
        .section-head {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 24px;
        }
        .section-head h3 {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-dark);
        }
        .more-link {
            font-size: 13px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
        .article-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }
        .article-card {
            background: var(--bg-card);
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            padding: 22px;
            transition: 0.25s;
        }
        .article-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-md);
            border-color: var(--primary-light);
        }
        .article-title {
            font-weight: 700;
            font-size: 17px;
            margin-bottom: 12px;
        }
        .article-title a {
            text-decoration: none;
            color: var(--text-dark);
        }
        .article-meta {
            font-size: 12px;
            color: var(--text-light);
            margin-bottom: 14px;
        }
        .article-excerpt {
            font-size: 13px;
            color: var(--text-mid);
            line-height: 1.5;
            margin-bottom: 20px;
        }
        .read-more {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }
        @media (max-width: 900px) {
            .article-grid {
                grid-template-columns: 1fr;
            }
            .product-row {
                flex-direction: column;
                align-items: stretch;
            }
            .product-meta {
                justify-content: space-between;
            }
            .buy-btn {
                width: 100%;
                text-align: center;
            }
        }

        /* 分页 */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin-top: 32px;
        }
        .page-btn {
            background: white;
            border: 1px solid var(--border);
            padding: 7px 16px;
            border-radius: 40px;
            cursor: pointer;
            font-size: 13px;
            transition: 0.2s;
        }
        .page-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* 悬浮购物车 */
        .floating-cart {
            position: fixed;
            bottom: 28px;
            right: 28px;
            background: var(--primary);
            width: 56px;
            height: 56px;
            border-radius: 56px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            box-shadow: 0 8px 20px rgba(74, 111, 165, 0.4);
            cursor: pointer;
            z-index: 99;
            transition: 0.2s;
        }
        .cart-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--accent);
            width: 22px;
            height: 22px;
            border-radius: 22px;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        @media (max-width: 768px) {
            .floating-cart {
                bottom: 20px;
                right: 20px;
                width: 48px;
                height: 48px;
                font-size: 20px;
            }
        }

         /* ========= 友情链接专用样式 (底部独立模块) ========= */
        .friend-link-wrapper {
            max-width: 1600px;
            margin: 0 auto 32px auto;
            padding: 0 28px;
        }
        .friend-link-card {
            background: var(--bg-card);
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
            padding: 20px 28px;
            transition: box-shadow 0.2s;
        }
        .friend-link-card:hover {
            box-shadow: var(--shadow-md);
        }
        .friend-link-header {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-dark);
            border-bottom: 2px solid var(--primary-light);
            padding-bottom: 12px;
            margin-bottom: 20px;
        }
        .friend-link-header i {
            font-size: 22px;
            color: var(--primary);
        }
        .friend-link-items {
            display: flex;
            flex-wrap: wrap;
            gap: 18px 28px;
            align-items: center;
        }
        .friend-link-items a {
            color: var(--text-mid);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 0;
            border-bottom: 1px dotted transparent;
        }
        .friend-link-items a i {
            font-size: 14px;
            opacity: 0.7;
        }
        .friend-link-items a:hover {
            color: var(--primary);
            border-bottom-color: var(--primary);
            transform: translateX(2px);
        }
        @media (max-width: 768px) {
            .friend-link-wrapper {
                padding: 0 20px;
                margin-bottom: 24px;
            }
            .friend-link-card {
                padding: 18px 20px;
            }
            .friend-link-items {
                gap: 14px 20px;
            }
            .friend-link-items a {
                font-size: 13px;
            }
        }