.nbnhhsh-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* 输入区 */
.nbnhhsh-input-area {
    margin-bottom: 20px;
}
.nbnhhsh-input-area textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #fff;
}
.nbnhhsh-input-area textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* 结果区 */
.nbnhhsh-result-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
    margin-bottom: 20px;
}
.nbnhhsh-empty {
    color: #a0aec0;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}
.nbnhhsh-loading {
    text-align: center;
    padding: 30px 0;
    color: #667eea;
    font-size: 14px;
}
.spin {
    display: inline-block;
    animation: nbnhhsh-spin 1s linear infinite;
    margin-right: 6px;
}
@keyframes nbnhhsh-spin {
    to { transform: rotate(360deg); }
}

/* 标签列表 */
.nbnhhsh-tag-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.nbnhhsh-tag-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 18px;
    position: relative;
}
.nbnhhsh-tag-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    display: inline-block;
}
.nbnhhsh-add-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.nbnhhsh-add-btn:hover {
    transform: scale(1.1);
    background: #5a67d8;
}
.nbnhhsh-add-btn::before,
.nbnhhsh-add-btn::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 1px;
}
.nbnhhsh-add-btn::before { width: 10px; height: 2px; }
.nbnhhsh-add-btn::after { width: 2px; height: 10px; }

/* 翻译结果 */
.nbnhhsh-tran-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nbnhhsh-tran-item {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.15s;
}
.nbnhhsh-tran-item:hover {
    transform: translateY(-1px);
}
.nbnhhsh-tran-item sub {
    font-size: 11px;
    opacity: 0.8;
    margin-left: 2px;
}

/* 无结果 */
.nbnhhsh-notran-box {
    color: #a0aec0;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}
.nbnhhsh-notran-box:hover {
    color: #667eea;
}
.nbnhhsh-no-match {
    color: #a0aec0;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

/* 输入中提示 */
.nbnhhsh-inputting-list {
    margin-top: 6px;
}
.nbnhhsh-inputting-list h5 {
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 6px;
    font-weight: 500;
}
.nbnhhsh-inputting-item {
    display: inline-block;
    padding: 4px 10px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 12px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 4px;
}

/* 底部说明 */
.nbnhhsh-tips {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.nbnhhsh-tips h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}
.nbnhhsh-tips p {
    font-size: 13px;
    color: #718096;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* 示例按钮 */
.nbnhhsh-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nbnhhsh-example-btn {
    padding: 6px 14px;
    background: #f0f4ff;
    border: 1px solid #c7d2fe;
    color: #667eea;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.nbnhhsh-example-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .nbnhhsh-container { padding: 12px; }
    .nbnhhsh-input-area textarea { font-size: 15px; padding: 12px 14px; }
    .nbnhhsh-result-box { padding: 14px; }
    .nbnhhsh-tag-item { padding: 12px 14px; }
}
