/* 颜色变量已统一定义在 common.css 中 */
:root {
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 统一过渡效果 */
}

#container {
    width: 1100px;
    min-width: 1100px;
    margin: 0 auto;
    background: var(--background-white);
    text-align: left;
    display: flow-root;
}

/* 响应式设计 - 大屏幕设备 */
@media (min-width: 1025px) {
    #container {
        width: 1100px;
        min-width: 1100px;
    }
}

#mainContent {
    margin-bottom: 10px;
    background-color: var(--background-white);
    width: 778px;
    float: left;
    box-shadow: 0 1px 5px 0px var(--border-gray);
    border-radius: 5px;
    border: 1px solid var(--border-gray);
}

.list_body_bd {
    width: 100%;
    background: var(--background-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-black-medium);
}

.list_body_bd ul {
    padding: 0;
    margin: 0;
    list-style: none;
    margin-bottom: 20px;
    background: var(--background-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-black-light);
    overflow: hidden;
}

.list_body_bd ul li {
    min-height: 48px;
    font-size: 15px;
    width: 100%;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    margin-bottom: 0;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.list_body_bd ul li:hover {
    background: var(--background-white);
    transform: translateX(5px);
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 12px var(--shadow-black-medium);
    z-index: 2;
    position: relative;
    will-change: transform;
}

.list_body_bd ul li a {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    transition: color 0.2s ease;
    font-size: 15px;
    line-height: 1.6;
    padding-right: 15px;
}

.list_body_bd ul li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.list_body_bd ul li span {
    font-size: 13px;
    color: var(--text-secondary);
    padding-right: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pageContent {
    width: 100%;
    height: auto;
    font-size: 14px;
    border-top: 1px solid var(--border-light-gray);
    padding: 15px 0;
    margin-top: 15px;
}

.page {
    width: 100%;
    padding: 15px;
    height: auto;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.page a {
    padding: 8px 12px;
    font-family: inherit;
    color: var(--text-dark-gray);
    display: block;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.page a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.page a:hover {
    color: var(--text-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.page a:hover::before {
    left: 0;
}

.page .thisclass, .page .thisclass a, .page a:hover.thisclass {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 12px;
    margin: 0;
    border: 1px solid var(--primary-color);
    font-family: inherit;
    border-radius: 4px;
}

/* 侧边栏样式 */
#sidebar {
    width: 300px;
    float: right;
    text-align: left;
    margin-left: 10px;
    box-sizing: border-box;
}

.sidepanel {
    width: 298px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px var(--secondary-light-rgba);
    border-radius: 8px;
    border: 1px solid var(--secondary-light-rgba);
    overflow: hidden;
    background: var(--background-light-2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
    box-sizing: border-box;
}

.sidepanel:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--blue-rgba-20);
}

.wrapper_r {
    height: 35px;
    border-bottom: 1px solid var(--blue-rgba-20);
    line-height: 35px;
    padding-left: 0px;
    overflow: hidden;
    width: 300px;
    background: var(--secondary-light);
    zoom: 1;
    position: relative;
    box-sizing: border-box;
}

.wrapper_r::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.6;
}

.daohangweizhi_r {
    color: var(--text-medium-gray);
    width: 75px;
    border-top-left-radius: 5px;
    background: var(--secondary-color);
    font-size: 14px;
    font-weight: normal;
    padding-left: 10px;
    float: left;
    height: 35px;
    line-height: 35px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    will-change: transform;
}

.daohangweizhi_r:active {
    transform: scale(0.98);
    background: var(--blue-rgba-30);
}

.daohangweizhi_r:hover {
    background: var(--blue-rgba-30);
}

.Pcontent {
    width: 300px;
    background: var(--secondary-light);
    padding: 0 0 5px 0;
    box-sizing: border-box;
}

.commentTable {
    background: var(--background-white);
    overflow: hidden;
    box-sizing: border-box;
}

.commentTable li {
    padding-left: 10px;
    line-height: 36px;
    border-bottom: 1px solid var(--blue-rgba-10);
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    font-size: 13px;
    position: relative;
    transform: translateX(0);
    will-change: transform;
    transform: translateZ(0);
}

.commentTable li a {
    color: var(--text-secondary);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.commentTable li a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.commentTable li:hover {
    background: var(--blue-rgba-10);
    border-left: 3px solid var(--primary-color);
    transform: translateX(3px);
    box-shadow: 0 2px 5px var(--shadow-blue-light);
}

.commentTable li:last-child {
    border-bottom: none;
    text-overflow: ellipsis;
    overflow: hidden;
}

.commentTable li a:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    vertical-align: 0px;
    margin-right: 8px;
    margin-bottom: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.5;
}

.commentTable li:hover a:before {
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    opacity: 1;
}

.float_right {
    float: right;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 1024px) {
    #container {
        width: 100%;
        min-width: auto;
        padding: 10px;
        box-sizing: border-box;
    }
    
    #mainContent {
        width: 100%;
        float: none;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
    
    #sidebar {
        width: 100%;
        float: none;
        margin-left: 0;
        box-sizing: border-box;
    }
    
    .sidepanel {
        width: 100%;
        margin-bottom: 15px;
        box-sizing: border-box;
    }
    
    .wrapper_r {
        width: 100%;
        box-sizing: border-box;
    }
    
    .Pcontent {
        width: 100%;
        box-sizing: border-box;
    }
    
    .list_body_bd ul li {
        padding: 12px 15px;
        min-height: auto;
    }
    
    .list_body_bd ul li a {
        font-size: 14px;
    }
    
    .list_body_bd ul li span {
        font-size: 12px;
    }
    
    .commentTable {
        box-sizing: border-box;
    }
    
    .commentTable li {
        line-height: 32px;
    }
    
    .commentTable li a {
        font-size: 12px;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 768px) {
    #container {
        padding: 5px;
    }
    
    .list_body_bd ul li {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
    }
    
    .list_body_bd ul li span {
        padding-bottom: 5px;
        padding-right: 0;
    }
    
    .list_body_bd ul li a {
        width: 100%;
        padding-right: 0;
    }
    
    .page a {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .page .thisclass, .page .thisclass a, .page a:hover.thisclass {
        padding: 6px 8px;
    }
    
    .commentTable li {
        line-height: 28px;
        padding-left: 8px;
    }
    
    .commentTable li a {
        font-size: 11px;
    }
    
    .daohangweizhi_r {
        width: 65px;
        font-size: 13px;
        padding-left: 8px;
        height: 32px;
        line-height: 32px;
    }
}

/* 响应式设计 - 小屏手机设备 */
@media (max-width: 480px) {
    #container {
        padding: 0;
    }
    
    .list_body_bd ul li {
        padding: 8px 10px;
    }
    
    .list_body_bd ul li a {
        font-size: 13px;
    }
    
    .list_body_bd ul li span {
        font-size: 11px;
    }
    
    .page {
        padding: 10px 5px;
    }
    
    .page a {
        padding: 5px 6px;
        font-size: 12px;
        margin: 0 2px;
    }
    
    .page .thisclass, .page .thisclass a, .page a:hover.thisclass {
        padding: 5px 6px;
    }
    
    .commentTable li {
        line-height: 26px;
        padding-left: 6px;
    }
    
    .commentTable li a {
        font-size: 10px;
    }
    
    .daohangweizhi_r {
        width: 60px;
        font-size: 12px;
        padding-left: 6px;
        height: 30px;
        line-height: 30px;
    }
    
    .wrapper_r {
        height: 30px;
        line-height: 30px;
    }
}