/**
 * RONLON Floor Scrubber - 自定义CSS样式
 * 艹，老王我把Tailwind CSS配置和自定义样式都整理好了！
 *
 * @author 老王
 * @created 2026-01-27
 */

/* ================================
   自定义颜色变量
   ================================ */
:root {
    --primary: #00d084;
    --secondary: #1a1a2e;
    --background: #ffffff;
    --foreground: #1a1a1a;
    --card: #f8f9fa;
    --muted: #e0e0e0;
    --border: #d0d0d0;
}

/* ================================
   基础样式
   ================================ */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ================================
   工具类
   ================================ */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
        max-width: 1280px;
    }
}

/* ================================
   组件样式
   ================================ */

/* 主按钮样式 */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px dashed var(--primary);
    transition: all 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 次要按钮样式 */
.btn-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.btn-secondary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card-industrial {
    background-color: white;
    border: 2px dashed var(--primary);
    border-radius: 0.375rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card-industrial:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 分割线样式 */
.divider-industrial {
    height: 0.25rem;
    background-color: var(--primary);
    border-radius: 9999px;
}

/* 导航链接样式 */
.nav-link {
    color: white;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Logo样式 */
.logo-ronlon {
    background-color: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 900;
    font-size: 1.125rem;
    letter-spacing: -0.05em;
}

/* ================================
   过滤按钮样式
   ================================ */
.filter-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid var(--border);
    transition: all 0.2s;
}

.filter-btn.active {
    background-color: var(--secondary);
    color: white;
    border-color: var(--border);
}

.filter-btn:not(.active) {
    background-color: transparent;
    color: #666666;
    border-color: var(--border);
}

.filter-btn:not(.active):hover {
    border-color: var(--border);
    color: var(--foreground);
}

/* ================================
   响应式调整
   ================================ */
@media (max-width: 768px) {
    .hero-section {
        height: 24rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   动画效果
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ================================
   表格样式
   ================================ */
.table-industrial {
    width: 100%;
    border-collapse: collapse;
}

.table-industrial th,
.table-industrial td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table-industrial th {
    background-color: var(--card);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.table-industrial tr:hover {
    background-color: var(--card);
}

/* ================================
   表单样式
   ================================ */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

/* ================================
   工具提示样式
   ================================ */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: var(--secondary);
    color: white;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}
