/* 功能页面共用样式 */
.function-body {
    background-color: #f0f2f5;
    font-family: 'ZCOOL XiaoWei', 'Microsoft YaHei', sans-serif;
}

.function-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.function-header {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.function-back {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.function-back:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.function-back i {
    margin-right: 8px;
    font-size: 18px;
}

.function-header h1 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-shadow: none;
}

.function-controls {
    display: flex;
    gap: 10px;
}

.function-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.function-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.function-btn i {
    font-size: 18px;
}

/* 按钮样式 */
.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #174628;
}

.secondary-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.secondary-btn:hover {
    background-color: #c19c2c;
}

.outline-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 切换开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked + label {
    background-color: var(--primary-color);
}

.toggle-switch input:checked + label:before {
    transform: translateX(24px);
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
}

/* 滑块样式 */
.setting-slider {
    width: 100%;
}

.setting-slider input {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 2px;
    background-color: #ddd;
    outline: none;
    margin: 15px 0 5px;
}

.setting-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 下拉选择框样式 */
.setting-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: 16px;
}

/* 状态点样式 */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-dot.active {
    background-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
} 