/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ob-primary: #8e44ad;
    --ob-secondary: #9b59b6;
    --ob-accent: #e74c3c;
    --ob-light: #f5f5f5;
    --ob-dark: #333;
    --ob-gray: #7f8c8d;
    --ob-border: #ddd;
    --ob-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--ob-dark);
    background-color: #f8f9fa;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* 头部样式 */
.ob-header {
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-secondary));
    color: white;
    padding: 15px 0;
    box-shadow: var(--ob-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ob-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ob-logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ob-logo span {
    font-size: 2.2rem;
}

/* 导航菜单 */
.ob-nav-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ob-main-nav {
    background-color: white;
    box-shadow: var(--ob-shadow);
    z-index: 900;
    transition: all 0.3s ease;
}

.ob-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 10px;
}

.ob-nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
    width: 250px;
}

.ob-nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 5px;
    color: var(--ob-dark);
    text-decoration: none;
    transition: all 0.3s;
}

.ob-nav-links a:hover, .ob-nav-links a.ob-active {
    background-color: var(--ob-primary);
    color: white;
}

.ob-nav-links a span {
    font-size: 1.2rem;
}

/* 主内容区 */
.ob-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.ob-content-wrapper {
    display: flex;
    flex: 1;
}

/* 页面容器 */
.ob-page {
    display: none;
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--ob-shadow);
}

.ob-page.ob-active {
    display: block;
}

/* 面包屑导航 */
.ob-breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ob-border);
    font-size: 0.9rem;
    color: var(--ob-gray);
}

.ob-breadcrumb a {
    color: var(--ob-primary);
    text-decoration: none;
}

.ob-breadcrumb a:hover {
    text-decoration: underline;
}

/* 卡片样式 */
.ob-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--ob-shadow);
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.ob-card:hover {
    transform: translateY(-5px);
}

.ob-card-img {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.ob-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ob-card:hover .ob-card-img img {
    transform: scale(1.05);
}

.ob-card-body {
    padding: 15px;
}

.ob-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--ob-dark);
}

.ob-card-text {
    color: var(--ob-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ob-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--ob-gray);
    font-size: 0.8rem;
}

/* 首页样式 */
.ob-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(142, 68, 173, 0.8));
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: white;
    padding: 30px;
    text-align: center;
    flex-direction: column;
}

.ob-hero-content {
    max-width: 800px;
}

.ob-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.ob-section-title {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ob-primary);
    color: var(--ob-primary);
}

.ob-featured-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.ob-featured-grid .ob-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
}

.ob-faq-container {
    margin-top: 30px;
}

.ob-faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--ob-border);
    border-radius: 8px;
    overflow: hidden;
}

.ob-faq-question {
    background-color: var(--ob-light);
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ob-faq-answer {
    padding: 15px;
    background: white;
    display: none;
}

.ob-faq-item.ob-active .ob-faq-answer {
    display: block;
}

/* 栏目页样式 */
.ob-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ob-category-grid .ob-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
}

/* 分页样式 */
.ob-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 5px;
}

.ob-pagination a {
    display: block;
    padding: 8px 15px;
    background: var(--ob-light);
    color: var(--ob-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.ob-pagination a:hover, .ob-pagination a.ob-active {
    background: var(--ob-primary);
    color: white;
}

/* 文章页样式 */
.ob-article-header {
    margin-bottom: 30px;
}

.ob-article-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--ob-dark);
}

.ob-article-meta {
    display: flex;
    color: var(--ob-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.ob-article-img {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.ob-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ob-article-content {
    margin-bottom: 30px;
    line-height: 1.8;
}

.ob-article-content p {
    margin-bottom: 15px;
}

.ob-article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.ob-related-articles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.ob-related-articles .ob-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
}

.ob-comments-section {
    margin-top: 40px;
}

.ob-comment-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--ob-border);
    margin-bottom: 15px;
    resize: vertical;
    min-height: 100px;
}

.ob-comment-form button {
    background: var(--ob-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.ob-comment-list {
    margin-top: 30px;
}

.ob-comment {
    border-bottom: 1px solid var(--ob-border);
    padding: 20px 0;
}

.ob-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.ob-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ob-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.ob-comment-author {
    font-weight: bold;
}

.ob-comment-date {
    color: var(--ob-gray);
    font-size: 0.8rem;
    margin-left: 10px;
}

/* 注册页样式 */
.ob-register-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--ob-shadow);
}

.ob-form-group {
    margin-bottom: 20px;
}

.ob-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.ob-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--ob-border);
    border-radius: 5px;
    font-size: 1rem;
}

.ob-register-btn {
    width: 100%;
    background: var(--ob-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.ob-register-btn:hover {
    background: var(--ob-secondary);
}

.ob-login-link {
    text-align: center;
    margin-top: 20px;
    color: var(--ob-gray);
}

.ob-login-link a {
    color: var(--ob-primary);
    text-decoration: none;
}

/* 导航页样式 */
.ob-nav-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.ob-nav-category {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--ob-shadow);
}

.ob-nav-category h3 {
    margin-bottom: 15px;
    color: var(--ob-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ob-nav-links-list {
    list-style: none;
}

.ob-nav-links-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--ob-border);
}

.ob-nav-links-list a {
    color: var(--ob-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.ob-nav-links-list a:hover {
    color: var(--ob-primary);
}

.ob-features {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.ob-feature-box {
    flex: 1 1 calc(50% - 30px);
    min-width: 300px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--ob-shadow);
}

.ob-feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--ob-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ob-feature-box ul {
    list-style: none;
    padding-left: 20px;
}

.ob-feature-box li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.ob-feature-box li:before {
    content: "✓";
    color: var(--ob-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 底部样式 */
.ob-footer {
    background: var(--ob-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;

}

.ob-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 38px;
    justify-content: space-evenly;
}

.ob-footer-section {
    flex: 1 1 300px;
}

.ob-footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.ob-footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--ob-primary);
}

.ob-footer-links {
    list-style: none;
}

.ob-footer-links li {
    margin-bottom: 10px;
}

.ob-footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.ob-footer-links a:hover {
    color: var(--ob-primary);
}

.ob-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.ob-social-links a {
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.ob-social-links a:hover {
    background: var(--ob-primary);
    transform: translateY(-3px);
}

.ob-copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .ob-nav-container {
        flex-direction: column;
    }

    .ob-nav-links {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }

    .ob-nav-links a {
        padding: 10px 15px;
    }

    .ob-content-wrapper {
        flex-direction: column;
    }

    .ob-hero h1 {
        font-size: 1.8rem;
    }

    .ob-featured-grid .ob-card {
        flex: 1 1 calc(50% - 20px);
    }

    .ob-category-grid .ob-card {
        flex: 1 1 calc(33.333% - 20px);
    }

    .ob-article-img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .ob-nav-toggle {
        display: block;
    }

    .ob-main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        bottom: 0;
        width: 250px;
        overflow-y: auto;
        z-index: 999;
    }

    .ob-main-nav.ob-active {
        left: 0;
    }

    .ob-nav-links {
        flex-direction: column;
    }

    .ob-featured-grid .ob-card,
    .ob-category-grid .ob-card,
    .ob-related-articles .ob-card {
        flex: 1 1 100%;
    }

    .ob-hero {
        height: 250px;
    }

    .ob-article-img {
        height: 300px;
    }

    .ob-features {
        flex-direction: column;
    }

    .ob-feature-box {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .ob-header-container {
        flex-direction: column;
        gap: 15px;
    }

    .ob-hero {
        height: 220px;
        padding: 15px;
    }

    .ob-hero h1 {
        font-size: 1.5rem;
    }

    .ob-article-title {
        font-size: 1.5rem;
    }

    .ob-article-meta {
        gap: 8px;
        font-size: 0.8rem;
    }

    .ob-article-img {
        height: 200px;
    }

    .ob-nav-links a:first-child{
        margin-top: 80px;
    }
}

/* 网址导航按钮样式 - 新增部分 */
.ob-nav-buttons-section {
    margin: 40px 0;
}

.ob-nav-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.ob-nav-button {
    flex: 1 1 calc(25% - 15px);
    min-width: 200px;
    background: linear-gradient(135deg, var(--ob-secondary), var(--ob-primary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--ob-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ob-nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ob-nav-button i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.ob-nav-button h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.ob-nav-button p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.ob-more-button {
    display: block;
    width: 288px;
    margin: 30px auto 0;
    padding: 12px 20px;
    background: var(--ob-accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.ob-more-button:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.entry-button {
    display: block;
    width: 180px;
    margin: 5px auto 0;
    padding: 5px;
    background: var(--ob-accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.entry-button:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}