.custom-header {
background-color: var(--primary-color);
color: white;
border-radius: 0 0 15px 15px;
position: relative;
background: #E55D87;
background: -webkit-linear-gradient(to right, #5FC3E4, #E55D87);
background: linear-gradient(to right, #5FC3E4, #E55D87);
}

.refresh-btn {
position: absolute !important;
top: 20px !important;
right: 0px !important;
color: white !important;
background: none !important;
border: none !important;
font-size: 18px;
}

.header-title {
font-size: 20px;
font-weight: 600;
margin-bottom: 8px;
color: white;
}

.header-subtitle {
font-size: 14px;
opacity: 0.8;
}

.section-label {
font-size: 16px;
font-weight: 500;
color: #333;
display: flex;
    padding: 15px 0;
}

.sutra-card {
background: white;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
position: relative;
transition: transform 0.2s ease;
text-decoration: none;
color: inherit;
}

.sutra-card:hover {
transform: translateY(-2px);
text-decoration: none;
color: inherit;
}

.sutra-info {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.category-tag {
position: absolute;
    top: inherit;
    right: 20px;
background-color: rgba(139, 111, 71, 0.1);
color: var(--primary-color);
padding: 2px 8px;
border-radius: 8px;
font-size: 10px;
font-weight: 500;
}

.sutra-title {
font-size: 19px;
font-weight: 500;
color: #3e3e3e;
padding-right: 50px;
}

.sutra-content {
    color: #a1a1a1;
    margin-bottom: 10px;
    margin-top: 5px;
    font-size: 14px;
    line-height: 18px;
}

.sutra-progress {
font-size: 12px;
color: #666;
margin-bottom: 8px;
}

.progress-bar-container {
width: 100%;
height: 4px;
background-color: #f0f0f0;
border-radius: 2px;
margin-bottom: 8px;
overflow: hidden;
}

.progress-bar-fill {
height: 100%;
background-color: var(--primary-color);
border-radius: 2px;
transition: width 0.3s ease;
}

.last-copied {
font-size: 10px;
color: #999;
}

.percentage {
font-size: 14px;
font-weight: 600;
color: var(--primary-color);
}

.custom-tab-bar {
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
background: white;
border-top: 1px solid #f0f0f0;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
z-index: 100;
}

.tab-item {
text-decoration: none;
color: #ccc;
transition: color 0.3s;
text-align: center;
}

.tab-item.active {
color: #de628b;
    border-top: 3px solid;
}

.tab-icon {
font-size: 24px;
margin-bottom: 4px;
}

.tab-label {
font-size: 10px;
font-weight: 500;
}

.pb-100 {
padding-bottom: 100px;
}

.no-progress .sutra-progress,
.no-progress .percentage,
.no-progress .last-copied,
.no-progress .progress-bar-container {
display: none !important;
}

.completed-badge {
background-color: #28a745!important;
color: white;
padding: 2px 6px;
border-radius: 10px;
font-size: 10px;
font-weight: 500;
margin-left: 8px;
}

.login-hint {
font-size: 11px;
color: #999;
text-align: center;
margin-top: 4px;
}

.uk-offcanvas-flip .uk-open>.uk-offcanvas-bar {
    width: 100%;
}


.kv-area {
    max-width: 500px;
    margin: auto;
}

.kv-area img {
    width: 350px;
    padding: 30px 0;
    opacity: .5;
}

.kv-text {
    font-weight: 600;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: "仿宋", "標楷體", "DFKai-SB", serif;
    font-size: 20px;
    line-height: 2;
    letter-spacing: 0.2em;
    padding: 30px 10px 30px;

    color: #654321;
    overflow-x: auto;
}

.alert-black {
    background: #3e3e3e;
    color: #fff;
}

.restart-hint {
    font-size: 13px;
    color: #de628b !important;
    margin-top: 10px;
    justify-content: center;
}

/* Tab 樣式優化 */

.category-tabs .uk-tab {
    border-bottom: none;
    padding-top: 5px;
}

.category-tabs .uk-tab>li>a {
    padding: 8px 16px;
    color: #666;
    border: none;
    font-size: 15px;
    transition: all 0.3s;
}

.category-tabs .uk-tab>li.uk-active>a {
    color: #1e87f0;
    border-bottom: 2px solid #1e87f0;
    background: transparent;
}

@media (max-width: 760px) {
    .kv-area .kv-text {}

    .kv-area {
        max-width: 100%;
    }

    .category-tabs .uk-tab>li>a {
        padding: 6px 8px;
    }

    .uk-tab .uk-dropdown {
        padding: 15px;
    }

    .category-tabs .uk-tab>* {
        padding-left: 7px;
    }

}

.category-tabs .uk-tab>* {
    padding-left: 10px;
}
