/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #1a3a5f;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: #ff9900;
}

.header-nav ul {
    display: flex;
}

.header-nav li {
    margin-left: 20px;
}

.header-nav a {
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
    background-color: #2c5282;
}

.search-bar {
    display: flex;
    margin-bottom: 15px;
}

.search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    padding: 8px 15px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    margin: 20px 0;
}

.content-left {
    flex: 2;
    margin-right: 20px;
}

.content-right {
    flex: 1;
}

/* 轮播图 */
.carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-control {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}

/* 比分展示 */
.score-board {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.score-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a3a5f;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 5px;
}

.match-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.match-item {
    width: 32%;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.team {
    font-weight: bold;
    margin: 5px 0;
}

.score {
    font-size: 24px;
    color: #ff9900;
}

.match-time {
    font-size: 12px;
    color: #666;
}

/* 新闻列表 */
.news-list {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-index-item{
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a3a5f;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-summary {
    color: #555;
    margin-bottom: 10px;
}

.news-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-image {
    flex: 0 0 30%;
    margin-right: 20px;
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
    }

    .news-image {
        flex: 0 0 auto;
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .news-image img {
        height: 200px;
    }
}

.read-more {
    color: #ff9900;
    font-weight: bold;
}

/* 侧边栏 */
.sidebar-box {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a3a5f;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 5px;
}

.sidebar-list li {
    padding: 12px 0;
    margin: 12px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list .news-date {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 足球赛事 */
.competition-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.competition-item {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s;
}

.competition-item:hover {
    transform: translateY(-5px);
    background-color: #e0e0e0;
}

.competition-logo {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 文章内容 */
.article {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.article-header {
    padding: 20px;
    background-color: #1a3a5f;
    color: white;
}

.article-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    align-items: center;
    color: #ccc;
    font-size: 14px;
}

.article-meta > div {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
}

.article-body {
    padding: 30px;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
    font-size: 16px;
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.article-tags {
    padding: 15px 30px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.article-tags span {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #1a3a5f;
    color: white;
    border-radius: 4px;
    font-size: 14px;
}

.article-actions {
    display: flex;
    padding: 15px 30px;
    border-top: 1px solid #eee;
}

.article-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-size: 14px;
}

.article-actions button i {
    margin-right: 5px;
}

.article-actions button:hover {
    color: #1a3a5f;
}

.article-comment {
    padding: 30px;
}

/* 相关文章 */
.related-articles {
    margin-top: 30px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a3a5f;
    border-bottom: 2px solid #ff9900;
    padding-bottom: 5px;
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.related-item {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 15px;
}

.related-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1a3a5f;
}

.related-meta {
    font-size: 12px;
    color: #666;
}

/* 页脚 */
footer {
    background-color: #1a3a5f;
    color: white;
    padding: 30px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff9900;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .content-left {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .match-item {
        width: 48%;
    }

    .competition-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .related-list {
        flex-direction: column;
    }

    .related-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav {
        margin-top: 15px;
        width: 100%;
    }

    .header-nav ul {
        flex-wrap: wrap;
    }

    .header-nav li {
        margin-left: 0;
        margin-right: 10px;
        margin-bottom: 10px;
    }

    .carousel {
        height: 300px;
    }

    .match-item {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* 网址导航页面特定样式 */
.nav-container {
    padding: 20px 0;
}

.nav-intro {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-intro h2 {
    color: #1a3a5f;
    margin-bottom: 10px;
}

.nav-intro p {
    color: #555;
    line-height: 1.6;
}

.nav-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.nav-category {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-title {
    color: #1a3a5f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff9900;
}

.site-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.site-item {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.site-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.site-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.site-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.site-desc {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.quick-links {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quick-links h3 {
    color: #1a3a5f;
    margin-bottom: 15px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.quick-link-item:hover {
    background-color: #e0e0e0;
}

.quick-link-icon {
    margin-right: 10px;
    color: #1a3a5f;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .site-list {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #1a3a5f;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    color: #999;
}

/* 注册页面特定样式 */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-header {
    background-color: #1a3a5f;
    color: white;
    padding: 20px;
    text-align: center;
}

.auth-title {
    font-size: 24px;
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.auth-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #1a3a5f;
    box-shadow: 0 0 5px rgba(26, 58, 95, 0.3);
}

.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-button {
    width: 100%;
    padding: 12px;
    background-color: #1a3a5f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-button:hover {
    background-color: #2c5282;
}

.form-button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-footer a {
    color: #1a3a5f;
    font-weight: bold;
}

.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login-title {
    position: relative;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.social-login-title:before,
.social-login-title:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.social-login-title:before {
    left: 0;
}

.social-login-title:after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.social-button:hover {
    background-color: #e0e0e0;
}

.social-button i {
    font-size: 20px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.login-link a {
    color: #1a3a5f;
    font-weight: bold;
}

/* 隐藏首页、栏目页和文章页特有元素 */
body.auth-page .header-nav,
body.auth-page .header-top .search-bar,
body.auth-page .main-content,
body.auth-page footer {
    display: none !important;
}

body.auth-page .auth-container {
    display: block;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .auth-container {
        margin: 20px 15px;
    }
}

.question-item > div{
    padding:10px
}