.conversion-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.toolbar-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tip-item {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(55, 65, 81, 0.06);
    border: 1px dashed var(--border-color);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* 新的转换容器布局 - 垂直布局取代网格布局 */
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.panel {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-actions {
    display: flex;
    gap: 0.75rem;
}

.panel textarea {
    border: none;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    flex: 1;
    width: 100%;
    background-color: transparent;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.panel textarea:focus {
    outline: none;
    box-shadow: none;
}

.panel-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background-color: rgba(55, 65, 81, 0.03);
}

/* 转换操作区域 - 水平布局的按钮组 */
.convert-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.convert-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 140px;
}

.convert-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.convert-actions .btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-cards {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* 现代化信息卡片样式 */
.info-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.info-card.modern-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    color: white;
}

.info-card.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.info-card.modern-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-card.modern-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.info-card.modern-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-card.modern-card h3 {
    text-align: center;
    color: white;
    font-size: 1.4em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info-card.modern-card h3 span {
    font-size: 1.2em;
}

.info-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-card.modern-card p {
    background: rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: 8px;
    line-height: 1.6;
    margin: 0;
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.95);
}

.guide-section {
    margin-bottom: 2rem;
}

.guide-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.guide-section ol {
    padding-left: 1.25rem;
    display: grid;
    gap: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.table-section {
    margin-bottom: 2rem;
}

.table-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.ubb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.ubb-table th,
.ubb-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    text-align: left;
    vertical-align: top;
    font-size: 0.85rem;
    line-height: 1.6;
}

.ubb-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.07);
}

.ubb-table code {
    background-color: rgba(15, 23, 42, 0.06);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-size: 0.82rem;
    display: inline-block;
}

.table-notice {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.faq-section {
    margin-bottom: 0.5rem;
}

.faq-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    background-color: var(--surface-color);
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.faq-item p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ubb-heading {
    font-weight: 600;
}

.ubb-heading[data-ubb-tag="1"] {
    font-size: 1.8rem;
}

.ubb-heading[data-ubb-tag="2"] {
    font-size: 1.6rem;
}

.ubb-heading[data-ubb-tag="3"] {
    font-size: 1.4rem;
}

.ubb-heading[data-ubb-tag="4"] {
    font-size: 1.2rem;
}

.ubb-color,
.ubb-font,
.ubb-size {
    padding: 0 0.1rem;
}

.ubb-quote {
    border-left: 3px solid rgba(59, 130, 246, 0.4);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background-color: rgba(59, 130, 246, 0.08);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.ubb-list {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
}

.ubb-inline-frame,
.ubb-flash-frame {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--border-radius);
    margin: 0.75rem 0;
    min-height: 320px;
}

.ubb-flash-frame {
    max-height: 500px;
}

.ubb-code-block {
    background-color: rgba(15, 23, 42, 0.86);
    color: #e2e8f0;
    padding: 1rem;
    overflow-x: auto;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 1rem 0;
}

.ubb-code-block code {
    white-space: pre;
}

/* 全宽布局样式 */
.tool-content.full-width {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-content.full-width {
        padding: 20px;
        margin: 20px 0;
    }

    .conversion-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-tips {
        justify-content: flex-start;
    }

    .convert-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .convert-actions .btn {
        min-width: auto;
        width: 100%;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .panel-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .info-card.modern-card {
        padding: 20px;
        margin: 15px 0;
    }

    .info-card.modern-card h3 {
        font-size: 1.2em;
    }
}
