/* 全站通用强力覆盖样式 */

/* 重置 Discuz 默认样式 */
* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    background-color: #0f0f1a !important;
    color: #e0e0e0 !important;
    background-image: radial-gradient(circle at 10% 20%, rgba(124, 77, 255, 0.1) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(255, 64, 129, 0.1) 0%, transparent 20%) !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', 'Microsoft Yahei', Tahoma, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

a {
    color: #e0e0e0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff4081 !important;
}

/* 覆盖 Discuz 默认容器 */
#wp,
#pt,
#ct,
.wp {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

.main-content {
    display: flex;
    margin: 30px 0;
    gap: 25px;
}

.content-left {
    flex: 3;
}

.content-right {
    flex: 1;
}

header {
    background: linear-gradient(to right, #1a1a2e, #16213e) !important;
    border-bottom: 2px solid #ff4081 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    padding: 15px 0 !important;
    width: 100% !important;
}

.header-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    height: 50px !important;
}

.logo a {
    display: block !important;
    height: 100% !important;
}

.logo img {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.logo img:hover {
    transform: scale(1.05) !important;
}

.search-bar {
    flex: 1 !important;
    max-width: 500px !important;
}

.search-bar form {
    display: flex !important;
    width: 100% !important;
}

.search-bar input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 25px 0 0 25px !important;
    flex: 1 !important;
    outline: none !important;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.search-bar button {
    background: linear-gradient(135deg, #ff4081, #7c4dff) !important;
    border: none !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 0 25px 25px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.search-bar button:hover {
    opacity: 0.9 !important;
}

.user-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.user-actions a {
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 10px 18px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.user-actions a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.notification-badge {
    background: #ff4081;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
}

nav {
    width: 100% !important;
    background: transparent !important;
}

nav ul {
    display: flex !important;
    list-style: none !important;
    justify-content: center !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 10px 0 0 0 !important;
}

nav li {
    list-style: none !important;
}

nav a {
    padding: 10px 15px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

nav a:hover,
nav a.active {
    background: rgba(255, 64, 129, 0.2) !important;
    color: #ff4081 !important;
}

footer {
    background: #1a1a2e !important;
    padding: 40px 0 20px !important;
    margin-top: 40px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
}

.footer-content {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
}

.footer-column h3 {
    font-size: 18px !important;
    margin-bottom: 20px !important;
    color: #ff4081 !important;
    font-weight: 600 !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 12px !important;
    list-style: none !important;
}

.social-links {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
}

.social-link {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff4081, #7c4dff) !important;
    transform: translateY(-3px) !important;
}

.copyright {
    text-align: center !important;
    padding-top: 25px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #aaa !important;
}

.copyright p {
    margin: 0 !important;
    color: #aaa !important;
}

.copyright a {
    color: #aaa !important;
}

.copyright a:hover {
    color: #ff4081 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column !important;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .search-bar {
        width: 100% !important;
        max-width: none !important;
    }
    
    nav ul {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
    }
    
    .container {
        padding: 0 15px !important;
    }
}

/* 额外的全局覆盖 */
img {
    max-width: 100% !important;
    height: auto !important;
}

input[type="text"],
input[type="password"],
textarea,
select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}

button,
input[type="submit"],
input[type="button"] {
    cursor: pointer !important;
}
