/* --- 1. 基础布局与容器 --- */
body { 
    background: #f5f7fa; 
}

.jc-wrapper {
    max-width: 1000px; /* 限制内容最大宽度，阅读体验更好 */
    margin: 40px auto;
    padding: 0 15px;
}

.jc-main {
    background: #fff; 
    padding: 40px;
    border-radius: 4px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 600px;
}

.jc-article-title {
    font-size: 28px; 
    margin-bottom: 20px; 
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; 
    color: #333;
    text-align: center; /* 标题居中 */
}

.jc-content { 
    font-size: 16px; 
    line-height: 1.8; 
    color: #444; 
}

.jc-content img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 15px auto; 
}

/* --- 2. 产品列表行样式 --- */
.product-row { 
    display: flex; 
    flex-wrap: nowrap; 
    align-items: center; 
    justify-content: space-between; 
    background: #fff; 
    border: 1px solid #e1e1e1; 
    border-radius: 4px; 
    padding: 6px 8px; 
    margin-bottom: 10px; 
    font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.03); 
}

.product-left { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0; 
    margin-right: 10px; 
}

.product-logo { 
    height: 24px !important; 
    width: auto; 
    margin-right: 2px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block; 
}

.product-name { 
    color: #2c3e50; 
    font-weight: 600; 
    font-size: 15px; 
    letter-spacing: 0.5px; 
    line-height: 1; 
    white-space: nowrap; 
}

.product-btns { 
    display: flex; 
    flex-wrap: nowrap; 
    align-items: center; 
    gap: 3px; 
}

/* --- 3. 按钮基础样式与配色 --- */
.btn { 
    padding: 3px 7px; 
    border-radius: 3px; 
    font-size: 12px; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    white-space: nowrap; 
    transition: opacity 0.2s; 
}

.btn:hover { 
    opacity: 0.9; 
    text-decoration: none; 
}

.btn i, .btn em { 
    margin-right: 3px; 
    font-size: 11px; 
}

/* 按钮颜色配置 */
.btn-purple { background: #9c27b0; color: #fff !important; }
.btn-green { background: #4caf50; color: #fff !important; }
.btn-darkgreen { background: #2e7d32; color: #fff !important; }
.btn-orange { background: #ff9800; color: #fff !important; }
.btn-blue { background: #004494; color: #fff !important; }
.btn-info { background: #17a2b8; color: #fff !important; } /* 教程常用色 */
.btn-white { 
    background: #fff; 
    color: #0056b3 !important; 
    border: 1px solid #0056b3; 
    padding: 2px 6px; 
}

/* --- 4. 搜索组件样式 --- */
.search-container {
    margin-bottom: 25px;
    position: relative;
}

#productSearch {
    width: 100%;
    padding: 12px 20px 12px 45px;
    font-size: 16px;
    border: 2px solid #e1e1e1;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

#productSearch:focus {
    border-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0,86,179,0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

#noResult {
    display: none;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* --- 5. 响应式适配 --- */
@media (max-width: 768px) {
    .jc-main { padding: 20px; }
    .jc-article-title { font-size: 22px; }
    
    .product-row { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 10px; 
        gap: 10px; 
    }
    
    .product-btns { 
        flex-wrap: wrap; 
        gap: 5px; 
    }

    /* 移动端搜索框微调 */
    #productSearch {
        padding: 10px 15px 10px 40px;
        font-size: 14px;
    }
}

/* 搜索组件容器 */
.search-container {
    margin: 0 auto 30px;
    max-width: 100%;
    position: relative;
    z-index: 10;
}

/* 搜索输入框主体 */
#productSearch {
    width: 100%;
    height: 54px;
    padding: 10px 20px 10px 50px;
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 12px; /* 现代感大圆角 */
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 输入框获取焦点时的状态 */
#productSearch:focus {
    border-color: #004494; /* 匹配你用户中心按钮的蓝色 */
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 68, 148, 0.15);
    transform: translateY(-1px);
}

/* 搜索图标样式 */
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* 当输入框聚焦时，图标变色 */
#productSearch:focus + .search-icon {
    color: #004494;
}

/* 搜索无结果提示框 */
#noResult {
    display: none;
    text-align: center;
    padding: 50px 20px;
    background: #fdfdfd;
    border: 1px dashed #ddd;
    border-radius: 8px;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 15px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .search-container {
        margin-bottom: 20px;
    }
    #productSearch {
        height: 48px;
        font-size: 14px;
        padding-left: 45px;
    }
    .search-icon {
        font-size: 16px;
        left: 15px;
    }
}