/* Optimized CSS - 合并优化版本 */
/* 移除@import，直接合并所有CSS内容以提升加载速度 */

/* === 基础变量 === */
:root {
    /* 颜色变量 */
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --text-primary: #333;
    --text-muted: #666;
    --background-light: #f8f9fa;
    --background-white: #fff;
    --border-color: #ddd;
    
    /* 间距变量 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 20px;
    --spacing-xl: 24px;
    --spacing-xxl: 30px;
    --spacing-xxxl: 40px;
    
    /* 字体大小变量 */
    --font-size-sm: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-xxl: 20px;
    
    /* 边框半径变量 */
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    
    /* 阴影变量 */
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

/* === CSS重置 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* === 布局样式 === */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.site-main {
    padding: 0;
    background: var(--background-white);
    min-height: calc(100vh - 100px);
}

/* === 按钮组件 === */
.btn {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    font-size: var(--font-size-sm);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.btn-success { background: #28a745; }
.btn-primary { background: var(--primary-color); }
.btn-info { background: #17a2b8; }

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: var(--spacing-xl);
    margin-bottom: 0;
    width: 100%;
}

/* === 关键的Fastener Product样式 === */
.fastener-product-container {
    max-width: 1440px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.fastener-section {
    margin-bottom: 30px;
    background: #ffffff;
    border-radius: 8px;
}

.fastener-product-section-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #ddd;
}

.fastener-product-content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* FAQ样式 */
.fastener-product-faq-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fastener-product-faq-item:hover {
    background: #e9ecef;
}

.fastener-faq-answer {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 5px 5px;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* === 响应式样式 === */
@media (max-width: 768px) {
    .container { padding: 0 var(--spacing-sm); }
    .site-main { min-height: calc(100vh - 80px); }
    .action-buttons { flex-direction: column; gap: 10px; }
    .btn { flex: none; width: 100%; }
    .fastener-product-section-title { font-size: 20px; }
    .fastener-product-faq-item { padding: 12px; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--spacing-xs); }
    .site-main { min-height: calc(100vh - 60px); }
    .fastener-product-section-title { font-size: 18px; }
    .fastener-product-content-text { font-size: 14px; }
}
