/* 自定义样式 */
/*.pinyin-tool-container {
    max-width: 1000px;
    margin: 0 auto;
}*/
.input-area textarea {
    min-height: 160px;
    font-size: 1.1rem;
    resize: vertical;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.input-area textarea:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.option-card {
    background: #f8f9fa;
    border-radius: 12px;
    /*padding: 1.25rem 1.5rem;*/
    padding: .6rem .8rem;
    border: 1px solid #e9ecef;
}

.option-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.option-group .btn-group .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.9rem;
}

.option-group .btn-group .btn.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.option-group .btn-group .btn:not(.active) {
    background-color: #fff;
    border-color: #ced4da;
    color: #495057;
}

.option-group .btn-group .btn:not(.active):hover {
    background-color: #e9ecef;
}

.result-area {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    min-height: 120px;
    padding: 1.25rem;
    position: relative;
    transition: all 0.2s;
}

.result-area .result-text {
    font-size: 1.15rem;
    line-height: 2rem;
    word-break: break-all;
    white-space: pre-wrap;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.result-area .result-placeholder {
    color: #adb5bd;
    font-size: 1rem;
    text-align: center;
    padding: 1.5rem 0;
    user-select: none;
}

.result-area .copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 0.85rem;
}

.result-area .copy-btn:hover {
    opacity: 1;
}

/* 注音样式 */
.pinyin-note-container {
    margin-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

.pinyin-note-container .note-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.pinyin-note-content {
    line-height: 2.2;
    font-size: 1rem;
}

.pinyin-note-line {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 0.15rem;
}

.pinyin-char-unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1px;
}

.pinyin-char-unit .pinyin-syllable {
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

.pinyin-char-unit .char-glyph {
    font-size: 1.1rem;
    line-height: 1.4;
}

.pinyin-char-unit .char-glyph.non-cjk {
    font-size: 1rem;
    color: #212529;
}

/* 占位透明字符 */
.pinyin-char-unit .placeholder {
    visibility: hidden;
    font-size: 0.7rem;
}

.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stats-bar .stat-item .stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.action-buttons .btn {
    min-width: 100px;
    font-weight: 500;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.action-buttons .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.action-buttons .btn-primary:active {
    transform: translateY(0);
}

.action-buttons .btn-outline-secondary:hover {
    background-color: #f1f3f5;
}

.help-text {
    font-size: 0.85rem;
    color: #6c757d;
    border-top: 1px dashed #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.help-text code {
    background: #f1f3f5;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.custom-separator-input {
    width: 70px;
    display: inline-block;
    margin-left: 0.25rem;
}

.custom-separator-input input {
    height: 32px;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 6px;
}

.toast-container {
    z-index: 1060;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .option-group {
        gap: 0.3rem 0.6rem;
    }
    .option-group .btn-group .btn {
        font-size: 0.78rem;
        padding: 0.2rem 0.6rem;
    }
    .option-card {
        padding: 1rem;
    }
    .action-buttons .btn {
        min-width: 70px;
        font-size: 0.9rem;
    }
    .result-area .result-text {
        font-size: 1rem;
        line-height: 1.8rem;
    }
}

/* 切换开关美化 */
.form-switch .form-check-input {
    width: 2.6rem;
    height: 1.4rem;
    cursor: pointer;
}
.form-switch .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.form-switch .form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

/* 示例按钮 */
.btn-example {
    color: #6c757d;
    border-color: #dee2e6;
}
.btn-example:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

/* 动画 */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 功能说明样式 */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
    padding: 0;
    list-style: none;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #495057;
}
.feature-list li .badge {
    font-size: 0.75rem;
    background: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* 复制成功提示 */
#copyToast {
    transition: opacity 0.3s;
}
