/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.login-btn-container {
    margin-left: 20px;
}

.btn-login {
    background-color: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-btn-container {
        display: none;
    }
}

.logo h1 {
    color: #ff6b6b;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b6b;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* 横幅样式 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.banner-content {
    flex: 1;
    min-width: 300px;
    margin-right: 40px;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #ff6b6b;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #667eea;
}

.banner-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 关于我们样式 */
.about {
    background-color: #fff;
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    margin-right: 40px;
}

.about-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
}

.about-text li {
    padding: 10px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.about-text li::before {
    content: "✓";
    color: #ff6b6b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 功能介绍样式 */
.features {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* 文章样式 */
.articles {
    background-color: #fff;
    padding: 80px 0;
}

.articles h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: #ff6b6b;
}

.article-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.read-more {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff5252;
}

.view-more {
    text-align: center;
}

/* 下载区域样式 */
.download {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.download h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.download p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.download-platforms {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.download-icon {
    font-size: 40px;
    margin-right: 20px;
}

.download-info {
    text-align: left;
}

.download-platform {
    font-size: 14px;
    opacity: 0.8;
}

.download-text {
    font-size: 18px;
    font-weight: bold;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer .container {
    max-width: 1200px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.footer-logo p {
    color: #999;
    font-size: 14px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ff6b6b;
}

.footer-contact p {
    color: #999;
    margin-bottom: 15px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.social-icons a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* 文章详情页样式 */
.article-detail {
    background-color: #fff;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.article-detail .container {
    max-width: 800px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.article-info {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
}

.article-info span {
    margin-right: 20px;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-body {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #333;
}

.article-body h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #333;
}

.article-body ul,
.article-body ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

/* 文章列表页样式 */
.articles-page {
    background-color: #fff;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.articles-page h1 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content {
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        margin-right: 0;
        margin-bottom: 40px;
    }
    
    .download-platforms {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 250px;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .about h2,
    .features h2,
    .articles h2,
    .download h2 {
        font-size: 28px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .article-featured-image {
        height: 250px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
}

/* 移动端菜单动画 */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner,
.about,
.features,
.articles,
.download {
    animation: fadeIn 0.8s ease-out;
}

/* APP教程提醒样式 */
.app-tutorial-reminder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.app-tutorial-reminder h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.app-tutorial-reminder p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.app-tutorial-reminder ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.app-tutorial-reminder li {
    margin-bottom: 12px;
    list-style-type: disc;
    opacity: 0.9;
}

.app-tutorial-reminder .btn {
    background-color: white;
    color: #667eea;
    font-weight: bold;
}

.app-tutorial-reminder .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 优化文章列表样式 */
.article-item {
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 优化按钮样式 */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 优化导航栏样式 */
.navbar {
    transition: all 0.3s ease;
}

/* 优化下载按钮样式 */
.download-btn {
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* 优化图片样式 */
img {
    transition: all 0.3s ease;
}

.article-item img:hover {
    transform: scale(1.05);
}

/* 优化滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

/* 响应式图片样式 */
img {
    max-width: 100%;
    height: auto;
}

/* 响应式视频样式 */
video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

/* 视频提醒的响应式样式 */
@media (max-width: 768px) {
    /* 优化视频提醒样式 */
    div[style*="background-color: #fff3cd"] {
        padding: 12px !important;
        margin: 15px 0 !important;
    }
    
    div[style*="background-color: #fff3cd"] h4 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    div[style*="background-color: #fff3cd"] p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    div[style*="background-color: #fff3cd"] a {
        display: block !important;
        text-align: center !important;
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    /* 优化自动采集文章中的图片 */
    .article-body img {
        height: auto !important;
        object-fit: cover !important;
        max-height: 300px;
    }
    
    /* 优化文章标题在移动端的大小 */
    .article-header h1 {
        font-size: 24px !important;
    }
    
    /* 优化自动发布配置在移动端的显示 */
    #auto-publish-settings {
        grid-template-columns: 1fr !important;
    }
    
    /* 优化API配置在移动端的显示 */
    div[style*="display: grid; grid-template-columns: 1fr auto"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* 优化操作按钮在移动端的显示 */
    div[style*="display: flex; gap: 10px"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* 优化分类选择在移动端的显示 */
    #auto-categories {
        height: 150px !important;
    }
}

/* 确保所有设备上的显示一致性 */
* {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* 防止图片溢出容器 */
.article-content img {
    max-width: 100%;
    height: auto;
}

/* 确保自动采集的文章内容在所有设备上正确显示 */
.article-body {
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .article-body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* 进一步优化移动端字体大小 */
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    /* 优化移动端按钮大小 */
    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* 优化移动端卡片间距 */
    .article-item {
        margin-bottom: 20px !important;
    }
}