:root {
    --primary-color: #ff6b6b;
    --secondary-color: #6e6bfe;
    --bg-color: #f5f5f5;
    --text-color: #000000;
    --link-color: #6e6bfe;
    --tech-color: #00d4ff;
    --life-color: #ff6b6b;
    --business-color: #4ecdc4;
    --culture-color: #f7b731;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    /* 导航栏背景调整为浅色以适配黑色文字 */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    font-size: 1.5rem;
    padding: 0 200px;
    margin-top: 40px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    /* 汉堡菜单图标颜色改为黑色 */
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    /* 英雄区背景调整为浅色 */
    color: var(--text-color);
    padding: 100px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-card {
    background: rgba(0, 0, 0, 0.05);
    /* 分类卡片背景调整为深色透明以适配浅灰背景 */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* 边框颜色调整为深色透明 */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* 阴影调整为浅色模式 */
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* 内容网格 */
.content-grid {

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-card {
    background: rgba(255, 255, 255, 0.8);
    /* 内容卡片背景调整为白色半透明 */
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* 边框颜色调整 */
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* 阴影调整 */
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.category-tag.tech {
    background-color: var(--life-color);
}

.category-tag.life {
    background-color: var(--life-color);
}

.category-tag.business {
    background-color: var(--business-color);
}

.category-tag.culture {
    background-color: var(--culture-color);
}

.card-content {
    padding: 20px;
}

.card-content h4 {
    margin-bottom: 10px;
}

.card-content h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h4 a:hover {
    color: var(--primary-color);
}

.card-excerpt {
    opacity: 0.8;
    margin-bottom: 15px;
}

.card-meta {
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
}

/* 页脚 */
.footer {
    background-color: rgba(255, 255, 255, 0.9);
    /* 页脚背景调整为浅色 */
    color: var(--text-color);
    padding: 50px 0 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* 顶部边框调整 */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* 边框颜色调整 */
}

footer-bottom p a {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        /* 移动端导航背景调整 */
        flex-direction: column;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* 页面标题区域 */
.page-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 300px;
}

.page-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-subtitle {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 0 20px;
}

/* 主要内容容器 */
.main-content .container {
    max-width: 60%;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 筛选栏 */
.filter-bar {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-options {
    display: flex;
    gap: 10px;
}

.filter-options button {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.filter-options button:hover {
    background-color: #e0e0e0;
}

/* 内容列表 */
.content-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.list-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.list-item-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.list-item:hover .list-item-image img {
    transform: scale(1.05);
}

.list-item-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.list-item-title {
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
}

.list-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.list-item-title a:hover {
    color: #2c3e50;
}

.category-tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    background-color: #3498db;
}

.list-item-meta {
    display: flex;
    gap: 15px;
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.list-item-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content-list {
        grid-template-columns: 1fr;
    }

    .page-header {
        min-height: 200px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .list-item-header {
        flex-direction: column;
        gap: 10px;
    }

    .category-tag {
        align-self: flex-start;
    }
}

/* 主内容区域样式 */
.main-content {
    padding: 40px 0;
    background-color: #f9f9f9;
}



/* 表单区块样式 */
.form-section {
    margin-top: 30px;
}

.form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

/* 成功提示消息 */
.success-message {
    display: none;
    background-color: #e6f7ed;
    color: #00875a;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* 分类选择区域 */
.category-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.category-option {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.category-label {
    margin-left: 6px;
    cursor: pointer;
    color: #333;
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 表单提示文字 */
.form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    line-height: 1.5;
}

/* 注意事项项区域 */
.notice-section {
    background-color: #fff8e6;
    border-left: 4px solid #ffaa00;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.notice-section h4 {
    margin: 0 0 10px 0;
    color: #e67700;
    font-size: 16px;
}

.notice-section ul {
    margin: 0;
    padding-left: 20px;
}

.notice-section li {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

/* 提交按钮区域 */
.submit-section {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background-color: #1677ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #0958d9;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .category-selection {
        flex-direction: column;
        gap: 10px;
    }

    .category-option {
        margin-right: 0;
    }

    .form-container {
        padding: 20px 15px;
    }

    .btn-submit {
        width: 100%;
        padding: 12px 0;
    }
}

/* 主内容区域样式 */
.main-content {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.main-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 表单区块样式 */
.main-content .form-section {
    margin-top: 30px;
}

.main-content .form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    box-sizing: border-box;
    /* 确保内边距不影响整体尺寸 */
}

/* 成功提示消息 */
.main-content .success-message {
    display: none;
    background-color: #e6f7ed;
    color: #00875a;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* 分类选择区域 */
.main-content .category-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.main-content .category-option {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.main-content .category-label {
    margin-left: 6px;
    cursor: pointer;
    color: #333;
}

/* 表单行布局 */
.main-content .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.main-content .form-row .form-group {
    flex: 1;
}

/* 表单元素样式补充 */
.main-content .form-group {
    margin-bottom: 20px;
}

.main-content .form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.main-content .form-input,
.main-content .form-textarea,
.main-content .form-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.main-content .form-input:focus,
.main-content .form-textarea:focus,
.main-content .form-select:focus {
    outline: none;
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}

.main-content .form-textarea {
    resize: vertical;
}

.main-content .required {
    color: #ff4d4f;
}

/* 表单提示文字 */
.main-content .form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
    line-height: 1.5;
}

/* 注意事项项区域 */
.main-content .notice-section {
    background-color: #fff8e6;
    border-left: 4px solid #ffaa00;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.main-content .notice-section h4 {
    margin: 0 0 10px 0;
    color: #e67700;
    font-size: 16px;
}

.main-content .notice-section ul {
    margin: 0;
    padding-left: 20px;
}

.main-content .notice-section li {
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

/* 提交按钮区域 */
.main-content .submit-section {
    text-align: center;
    margin-top: 30px;
}

.main-content .btn-submit {
    background-color: #1677ff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.main-content .btn-submit:hover {
    background-color: #0958d9;
}

.main-content .btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-content .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .main-content .category-selection {
        flex-direction: column;
        gap: 10px;
    }

    .main-content .category-option {
        margin-right: 0;
    }

    .main-content .form-container {
        padding: 20px 15px;
    }

    .main-content .btn-submit {
        width: 100%;
        padding: 12px 0;
    }
}