﻿/* iOS 6 列表容器 */
.ios6-list {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid #b5b5b5;
    background: #f7f7f7;
}

/* 列表标题栏 */
.ios6-list-header {
    padding: 10px 15px;
    background: linear-gradient(to bottom, #e5e5e5 0%, #d0d0d0 100%);
    border-bottom: 1px solid #b5b5b5;
    font-weight: bold;
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* 列表项基础样式 */
.ios6-list-item {
    padding: 12px 15px;
    border-bottom: 1px solid #d0d0d0;
    background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ios6-list-item:nth-child(even) {
        background: #ebebeb;
    }
    /* 列表项悬停效果 */
    .ios6-list-item:hover {
       background: linear-gradient(to bottom, #d9e7f7 0%, #c8d9ed 100%);
    }

    /* 列表项按下效果 */
    .ios6-list-item:active {
        background: linear-gradient(to bottom, #e5e5e5 0%, #f5f5f5 100%);
    }

    /* 列表项选中状态 */
    .ios6-list-item.selected {
        background: linear-gradient(to bottom, #d9e7f7 0%, #c8d9ed 100%);
        color: #007AFF;
    }

    /* 列表项右侧箭头 */
/*    .ios6-list-item:after {
        content: ">";
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-weight: bold;
    }*/

/* 列表项内容布局 */
.ios6-list-content {
    display: flex;
    align-items: center;
}

/* 列表项图标 */
.ios6-list-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    background: linear-gradient(to bottom, #8e8e93 0%, #6d6d72 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 列表项文本 */
.ios6-list-text {
    flex: 1;
}

.ios6-list-title {
    font-weight: bold;
    margin-bottom: 2px;
}

.ios6-list-subtitle {
    font-size: 12px;
    color: #666;
}

/* 分组列表样式 */
.ios6-list-group {
    margin-bottom: 20px;
}

.ios6-list-group-title {
    padding: 8px 15px;
    background: linear-gradient(to bottom, #e5e5e5 0%, #d0d0d0 100%);
    font-size: 14px;
    color: #555;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #b5b5b5;
}

/* 开关控件样式 */
.ios6-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
    margin-left: 10px;
}

    .ios6-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.ios6-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #e5e5e5 0%, #d0d0d0 100%);
    border: 1px solid #b5b5b5;
    border-radius: 16px;
    transition: .4s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

    .ios6-switch-slider:before {
        position: absolute;
        content: "";
        height: 27px;
        width: 27px;
        left: 2px;
        bottom: 1px;
        background: linear-gradient(to bottom, #f7f7f7 0%, #e5e5e5 100%);
        border: 1px solid #b5b5b5;
        border-radius: 50%;
        transition: .4s;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

input:checked + .ios6-switch-slider {
    background: linear-gradient(to bottom, #6bb3f2 0%, #4a90d9 100%);
    border-color: #2a5d8a;
}

    input:checked + .ios6-switch-slider:before {
        transform: translateX(19px);
    }
