/* 通用基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0f2027;
    background: linear-gradient(to right, #2c5364, #203a43, #0f2027);
    color: #e9ecef;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: rgba(26, 26, 26, 0.7);
    background-color: #1e1e1e;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar:hover {
    background-color: rgba(26, 26, 26, 0.9);
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-logo {
    font-size: 4rem;
    color: #ffc107;
    margin-right: 1rem;
    line-height: 1;
}

.navbar-title {
    display: flex;
    flex-direction: column;
    color: #e9ecef;
}

.navbar-title .group-name {
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar-title .slogan {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 5px;
}

.navbar-right {
    display: flex;
}

.nav-link {
    color: #e9ecef;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

a.nav-link.active {
    color: #ffc107 !important;
}

/* 通用链接样式 */
a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e9ecef;
}

.site-footer {
    background-color: #121212;
    color: #e9ecef;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-links-fixed {
    position: fixed;
    bottom: 10px;
    right: 30px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    z-index: 10000;
}

.social-links-fixed a {
    position: relative;
    color: #e9ecef;
    font-size: 16px;
    transition: transform 0.2s ease-in-out;
}

.social-links-fixed a:hover {
    transform: scale(1.2);
}

/* 调整悬停标题样式 */
.social-links-fixed a[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    /* 弹出到图标上方 */
    left: 50%;
    transform: translateX(-50%);
    /* 居中对齐 */
    white-space: nowrap;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.social-links-fixed a[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* SubHD.tv 图标样式 */
.social-links-fixed .subhd-icon {
    font-size: 14px;
}

.social-links-fixed .subhd-icon .fa-square {
    color: #00b0ff;
}

/* 字幕库图标样式 */
.social-links-fixed .zimuku-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background-color: #3d7d7d;
    color: #fff;
    font-size: 16px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    vertical-align: middle;
}

/* OpenSubtitles 图标样式 */
.social-links-fixed .opensub-icon {
    height: 24px;
    width: auto;
    vertical-align: middle;
}