/* Components CSS */

/* Reset and base styles */
* {
    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-color);
}

/* Navigation styles */
.themes_global_header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.wide {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav {
    flex: 1;
    margin: 0 40px;
}

.default_nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.default_nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.default_nav a:hover {
    color: var(--primary-color) !important;
}

.tool {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool a {
    color: var(--text-color);
    font-size: var(--font-size-xl);
    text-decoration: none;
}

.tool_inquiry {
    position: relative;
}

.list_numner {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    font-size: var(--font-size-sm);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool_inquiry_btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.tool_inquiry_btn:hover {
    background: var(--primary-hover) !important;
}

.user_avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
}

.user_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Aspect ratio utilities for image containers */
.aspect-w-16 {
    position: relative !important;
    padding-bottom: 66.67% !important; /* 3:2比例 (2/3=0.6667) */
    background-color: red !important; /* 调试：确认容器可见 */
}

.aspect-w-16 > img {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* 保持原图比例，不裁剪 */
    border: 2px solid blue !important; /* 调试：确认图片定位正确 */
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .tool {
        gap: 15px;
    }
    
    .tool_inquiry_btn {
        padding: 8px 14px;
        font-size: var(--font-size-sm);
    }
    
    .wide {
        padding: 0 20px;
    }
}