/* ===================================
   易缆通 CablePro - 电缆MRO平台样式
   设计风格：工业科技感 + 专业可靠
   =================================== */

/* === CSS Variables === */
:root {
    /* 主色调 - 工业蓝 */
    --primary-900: #0a1628;
    --primary-800: #12263f;
    --primary-700: #1a365d;
    --primary-600: #234e7e;
    --primary-500: #2d679f;
    --primary-400: #4a90c9;
    --primary-300: #7fb3dc;
    --primary-200: #b3d4eb;
    --primary-100: #e6f0f8;

    /* 强调色 - 电力橙 */
    --accent-600: #c43d00;
    --accent-500: #e84d0e;
    --accent-400: #ff6b35;
    --accent-300: #ff8f66;
    --accent-200: #ffb399;
    --accent-100: #ffe6db;

    /* 成功/警告/错误 */
    --success-500: #10b981;
    --success-100: #d1fae5;
    --warning-500: #f59e0b;
    --warning-100: #fef3c7;
    --error-500: #ef4444;
    --error-100: #fee2e2;

    /* 中性色 */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    /* 背景色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;

    /* 文字色 */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;

    /* 边框 */
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.08);

    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* 字体 */
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* 容器宽度 */
    --container-max: 1400px;
    --container-padding: 24px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* === Utilities === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* === 公告栏 === */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary-800), var(--primary-700));
    color: var(--text-inverse);
    padding: 10px 0;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.announcement-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    position: relative;
}

.announcement-text {
    opacity: 0.95;
}

.announcement-link {
    color: var(--accent-300);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.announcement-link:hover {
    color: var(--accent-200);
    text-decoration: underline;
}

/* === Header === */
.header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-md) var(--container-padding);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-600);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-800);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 4px;
    align-self: flex-end;
    margin-bottom: 4px;
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 600px;
    display: flex;
    align-items: stretch;
    background: var(--gray-50);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary-500);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(45, 103, 159, 0.1);
}

.search-category {
    position: relative;
    border-right: 1px solid var(--border-color);
}

.search-category select {
    height: 100%;
    padding: 0 var(--space-lg) 0 var(--space-md);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.search-category select:focus {
    outline: none;
}

.search-input {
    flex: 1;
    padding: 12px var(--space-md);
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 0 var(--space-lg);
    background: var(--primary-600);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-700);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link svg {
    width: 22px;
    height: 22px;
}

.nav-link .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--accent-500);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Navigation */
.category-nav {
    background: var(--primary-800);
    color: var(--text-inverse);
}

.category-nav .container {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.category-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px var(--space-lg);
    background: var(--primary-600);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
    min-width: 200px;
}

.category-trigger:hover {
    background: var(--primary-500);
}

.quick-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.quick-nav a {
    padding: 14px var(--space-md);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-fast);
    position: relative;
}

.quick-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-400);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.quick-nav a:hover {
    color: white;
}

.quick-nav a:hover::after {
    width: 60%;
}

.quick-nav a.highlight {
    color: var(--accent-300);
    font-weight: 500;
}

/* === Hero Section === */
.hero-section {
    padding: var(--space-lg) 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    gap: var(--space-md);
}

/* Category Menu */
.category-menu {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.category-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background: var(--primary-50, #f0f7ff);
}

.category-item:hover .category-name {
    color: var(--primary-600);
}

.category-item:hover .arrow {
    transform: translateX(4px);
    color: var(--primary-500);
}

.category-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon.power-icon {
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
}

.category-icon.control-icon {
    background: linear-gradient(135deg, #dbeafe, #60a5fa);
}

.category-icon.comm-icon {
    background: linear-gradient(135deg, #d1fae5, #34d399);
}

.category-icon.special-icon {
    background: linear-gradient(135deg, #fee2e2, #f87171);
}

.category-icon.accessory-icon {
    background: linear-gradient(135deg, #e0e7ff, #818cf8);
}

.category-icon.tools-icon {
    background: linear-gradient(135deg, #fce7f3, #f472b6);
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.category-desc {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-item .arrow {
    color: var(--gray-400);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 380px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Cable pattern overlay */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 50 0, 100 50 T 200 50' stroke='rgba(255,255,255,0.08)' stroke-width='3' fill='none'/%3E%3Cpath d='M0 100 Q 50 50, 100 100 T 200 100' stroke='rgba(255,255,255,0.06)' stroke-width='3' fill='none'/%3E%3Cpath d='M0 150 Q 50 100, 100 150 T 200 150' stroke='rgba(255,255,255,0.04)' stroke-width='3' fill='none'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.banner-slider {
    height: 100%;
}

.banner-slide {
    display: flex;
    height: 100%;
    padding: var(--space-2xl);
}

.banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.banner-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-200);
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
    width: fit-content;
}

.banner-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
}

.banner-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
}

.banner-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.banner-stats .stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.banner-actions {
    display: flex;
    gap: var(--space-md);
}

.banner-visual {
    width: 280px;
    position: relative;
}

.cable-illustration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.banner-dots {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.banner-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: white;
}

/* Quick Actions Sidebar */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.user-panel {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.user-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.user-panel p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 14px;
}

.user-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.quick-links {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.quick-link-item:hover {
    background: var(--gray-50);
}

.quick-link-item:hover .quick-link-icon {
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.quick-link-icon.smart-icon {
    background: linear-gradient(135deg, #dbeafe, #3b82f6);
    color: white;
}

.quick-link-icon.quote-icon {
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    color: white;
}

.quick-link-icon.download-icon {
    background: linear-gradient(135deg, #d1fae5, #10b981);
    color: white;
}

.quick-link-icon.support-icon {
    background: linear-gradient(135deg, #e0e7ff, #6366f1);
    color: white;
}

.quick-link-item span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.notice-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
    font-weight: 500;
    font-size: 13px;
}

.notice-list {
    padding: var(--space-sm) 0;
}

.notice-list li {
    padding: var(--space-sm) var(--space-md);
}

.notice-list a {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-list a:hover {
    color: var(--primary-600);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--gray-50);
    border-color: var(--border-hover);
}

/* === Service Bar === */
.service-bar {
    background: var(--bg-primary);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

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

.service-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-lg);
    border-right: 1px solid var(--gray-200);
}

.service-item:last-child {
    border-right: none;
}

.service-item svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

.service-info {
    display: flex;
    flex-direction: column;
}

.service-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.service-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* === Products Section === */
.products-section {
    padding: var(--space-2xl) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.title-icon {
    font-size: 24px;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.title-badge {
    padding: 4px 10px;
    background: var(--accent-100);
    color: var(--accent-500);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.section-tabs {
    display: flex;
    gap: var(--space-xs);
}

.section-tabs .tab {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--gray-100);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.section-tabs .tab:hover {
    background: var(--gray-200);
}

.section-tabs .tab.active {
    background: var(--primary-600);
    color: white;
}

.view-all {
    color: var(--primary-600);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.view-all:hover {
    color: var(--primary-700);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-badges {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    gap: 4px;
    z-index: 1;
}

.product-badges span {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-hot {
    background: var(--accent-500);
    color: white;
}

.badge-new {
    background: var(--success-500);
    color: white;
}

.badge-stock {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-fire {
    background: var(--error-500);
    color: white;
}

.product-image {
    height: 140px;
    background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cable-visual {
    width: 80%;
    height: 60%;
    border-radius: var(--radius-md);
    position: relative;
}

.cable-visual.yjv-cable {
    background: linear-gradient(90deg, #1a1a1a 0%, #333 20%, #1a1a1a 40%, #333 60%, #1a1a1a 80%, #333 100%);
    border-radius: 50px;
}

.cable-visual.kvv-cable {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 25%, #2563eb 50%, #1d4ed8 75%, #2563eb 100%);
    border-radius: 50px;
}

.cable-visual.yjv22-cable {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 25%, #dc2626 50%, #b91c1c 75%, #dc2626 100%);
    border-radius: 50px;
}

.cable-visual.sywv-cable {
    background: linear-gradient(90deg, #f8f8f8 0%, #e5e5e5 50%, #f8f8f8 100%);
    border-radius: 50px;
    border: 2px solid #ddd;
}

.cable-visual.zr-yjv-cable {
    background: linear-gradient(90deg, #f97316 0%, #ea580c 25%, #f97316 50%, #ea580c 75%, #f97316 100%);
    border-radius: 50px;
}

.cable-visual.terminal-accessory {
    width: 60%;
    height: 80%;
    background: linear-gradient(180deg, #4a5568 0%, #2d3748 100%);
    border-radius: var(--radius-md);
}

.product-info {
    padding: var(--space-md);
}

.product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.product-specs span {
    font-size: 11px;
    color: var(--text-tertiary);
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-size: 11px;
}

.product-rating {
    color: var(--warning-500);
}

.product-sold {
    color: var(--text-tertiary);
}

.product-price {
    margin-bottom: var(--space-md);
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-500);
    font-family: var(--font-mono);
}

.price-unit {
    font-size: 12px;
    color: var(--text-tertiary);
}

.price-original {
    font-size: 12px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: var(--space-sm);
}

.product-actions {
    display: flex;
    gap: var(--space-sm);
}

.product-actions .btn {
    flex: 1;
    padding: 8px;
    font-size: 12px;
}

/* === Solutions Section === */
.solutions-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: var(--space-sm);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.solution-card {
    position: relative;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    min-height: 320px;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.solution-card:hover .solution-bg {
    transform: scale(1.1);
}

.solution-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    transition: transform var(--transition-slow);
}

.solution-card[data-industry="power"] .solution-bg {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.solution-card[data-industry="industrial"] .solution-bg {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.solution-card[data-industry="building"] .solution-bg {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}

.solution-card[data-industry="newenergy"] .solution-bg {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.solution-content {
    position: relative;
    padding: var(--space-xl);
    padding-top: 80px;
}

.solution-icon {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-lg);
}

.solution-card[data-industry="power"] .solution-icon {
    color: #f59e0b;
}

.solution-card[data-industry="industrial"] .solution-icon {
    color: #3b82f6;
}

.solution-card[data-industry="building"] .solution-icon {
    color: #7c3aed;
}

.solution-card[data-industry="newenergy"] .solution-icon {
    color: #10b981;
}

.solution-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.solution-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.solution-features {
    margin-bottom: var(--space-lg);
}

.solution-features li {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.solution-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-400);
    border-radius: 50%;
}

.solution-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-600);
    transition: color var(--transition-fast);
}

.solution-link:hover {
    color: var(--primary-700);
}

/* === Brands Section === */
.brands-section {
    padding: var(--space-2xl) 0;
}

.brands-slider {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-md);
}

.brand-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-fast);
    position: relative;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.brand-tag {
    font-size: 10px;
    color: var(--primary-600);
    background: var(--primary-100);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* === Stats Section === */
.stats-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
    position: relative;
}

.stat-block {
    padding: var(--space-lg);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    font-family: var(--font-mono);
    display: inline;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.stat-block .stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-sm);
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-icon {
    color: var(--primary-400);
}

.footer-brand .logo-text {
    color: white;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: var(--space-sm);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: white;
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-qr h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: white;
}

.qr-codes {
    display: flex;
    gap: var(--space-lg);
}

.qr-item {
    text-align: center;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.qr-item span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* === Floating Actions === */
.floating-actions {
    position: fixed;
    right: var(--space-lg);
    bottom: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 1000;
}

.float-btn {
    width: 52px;
    height: 52px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
}

.float-btn:hover {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
    transform: translateY(-2px);
}


/* === Toast Notification === */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    min-width: 300px;
}

.toast-success {
    background: rgba(16, 185, 129, 0.95);
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.toast.hiding {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* === Gallery Interaction === */
.thumb-item {
    transition: all 0.2s ease;
}

.thumb-item:hover {
    border-color: var(--primary-300);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.float-btn.customer-service {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.float-btn.customer-service:hover {
    background: var(--primary-700);
}

#backToTop {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .brands-slider {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 200px 1fr;
    }

    .quick-actions {
        display: none;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brands-slider {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: var(--space-md);
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .category-menu {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .brands-slider {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-items {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .service-item {
        flex: 1 1 45%;
        border-right: none;
        padding: var(--space-md);
        background: var(--gray-50);
        border-radius: var(--radius-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.solution-card,
.brand-card {
    animation: fadeInUp 0.5s ease-out;
}

.product-card:nth-child(2) {
    animation-delay: 0.05s;
}

.product-card:nth-child(3) {
    animation-delay: 0.1s;
}

.product-card:nth-child(4) {
    animation-delay: 0.15s;
}

.product-card:nth-child(5) {
    animation-delay: 0.2s;
}

.product-card:nth-child(6) {
    animation-delay: 0.25s;
}