/* Base styles */
:root {
    --primary-color: #87CEFA;
    --primary-dark: #6495ED;
    --primary-light: rgba(135, 206, 250, 0.2);
    --text-light: #ffffff;
    --text-dark: #333333;
    --accent-blue: rgba(135, 206, 250, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-light);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.centerstyle {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

/* Navigation */
.topbar {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    right: -300px;
    width: fit-content;
    min-width: 180px;
    max-width: 250px;
    height: 100vh;
    z-index: 100;
    transition: right 0.3s ease;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topbar.show {
    right: 0;
}

.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 101;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    color: white;
}

.menu-button:hover {
    background: var(--primary-dark);
}

.topbaritem {
    padding: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    width: 100%;
}

.topbaritem:hover {
    color: var(--primary-color);
}

.brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 5px;
    position: relative;
    margin-top: 2px;
    z-index: 99;
}

.brand-section img {
    height: 40px;
    width: auto;
}

.brand-section span {
    color: var(--text-light);
    font-size: 1rem;
}

.hero {
    margin-top: 5px;
    text-align: center;
}

.hero h1 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hero a {
    color: var(--text-light);
    text-decoration: none;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px auto;
    max-width: 600px;
    padding: 0 10px;
}

.button-group a {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

/* Feature grid */
.features {
    width: 100%;
    max-width: 900px;
    margin: 15px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 260px));
    gap: 15px;
    justify-content: center;
}

.features * {
    margin: 0;
    padding: 0;
}

.feature-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-item a {
    display: block;
    font-size: 0;
    line-height: 0;
    text-decoration: none;
}

.modeblock {
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 0.7;
    border-radius: 12px;
    transition: transform 0.3s ease;
    display: block;
    vertical-align: top;
}

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

/* Mobile portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .features {
        grid-template-columns: repeat(2, minmax(0, 180px));
        gap: 10px;
        padding: 0 10px;
    }

    .modeblock {
        max-width: 180px;
    }
}

/* Mobile landscape and tablets */
@media (max-width: 768px) and (orientation: landscape),
       (min-width: 769px) {
    .features {
        grid-template-columns: repeat(3, minmax(0, 220px));
        gap: 12px;
    }

    .modeblock {
        max-width: 220px;
    }
}


/* Buttons */
.button {
    display: inline-block;
    padding: 5px 5px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.button:hover {
    background: var(--primary-dark);
}

/* Utilities */
.textnoselect {
    user-select: none;
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 10px 0;
}

.hero h1 a {
    color: var(--text-light);
    text-decoration: underline;
}

/* Changelog styles */
.changelog-container {
    width: 100%;
    max-width: 900px;
    margin: 15px auto 0;
    padding: 0 20px;
    color: var(--text-light);
}

.changelog-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.changelog-content br {
    display: block;
    margin: 5px 0;
}

.changelog-version {
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 5px;
}

.changelog-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 10px;
}

.changelog-item {
    margin: 5px 0;
    padding-left: 15px;
    position: relative;
}

.changelog-item::before {
    content: "-";
    position: absolute;
    left: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .changelog-container {
        padding: 0 10px;
    }

    .changelog-content {
        font-size: 13px;
        padding: 10px;
    }

    .changelog-version {
        font-size: 15px;
    }

    .changelog-date {
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    .changelog-content {
        font-size: 15px;
    }

    .changelog-version {
        font-size: 17px;
    }
}

/* Help Video Page Styles */
.help-video-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: white;
    text-align: center;
}

.help-video-container h1 {
    font-size: 24px;
    margin-bottom: 30px;
    color: white;
}

.video-topics {
    margin: 20px 0;
    text-align: left;
    padding: 20px;
}

.topic-item {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
}

.video-link {
    margin: 40px 0;
}

.video-link a {
    color: antiquewhite;
    font-size: 20px;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.video-link a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 响应式布局基础样式 */
.app-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.app-section {
    background: linear-gradient(135deg, var(--accent-blue), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    color: var(--text-light);
    border: 1px solid rgba(135, 206, 250, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-section:hover {
    transform: translateY(-2px);
    border-color: rgba(135, 206, 250, 0.3);
}

/* 下载区域样式 */
.download-section {
    text-align: center;
    margin: 20px 0;
}

.download-link {
    background: linear-gradient(135deg, #87CEFA, #6495ED);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(135, 206, 250, 0.3);
    font-weight: 500;
    display: inline-block;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(135, 206, 250, 0.4);
    background: linear-gradient(135deg, #6495ED, #4169E1);
}

/* 帮助链接区域 */
.help-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0;
}

/* 截图区域 */
.screenshots-section {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 15px 0;
}

.screenshots-section img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.screenshots-section img:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(135, 206, 250, 0.3);
}

/* 桌面端样式 (1024px以上) */
@media screen and (min-width: 1024px) {
    .app-content {
        padding: 30px;
    }
    
    .screenshots-section {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 平板端样式 (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .app-content {
        padding: 20px;
    }
    
    .screenshots-section {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brand-section {
        padding: 15px;
    }
}

/* 手机端样式 (768px以下) */
@media screen and (max-width: 767px) {
    .app-content {
        padding: 10px;
    }
    
    .app-section {
        padding: 15px;
    }
    
    .screenshots-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-section {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .brand-section img {
        margin-bottom: 10px;
    }
    
    .topbar {
        flex-direction: column;
    }
    
    .topbaritem {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .help-links {
        flex-direction: column;
    }
    
    .help-link {
        width: 100%;
        text-align: center;
    }
    
    .page-title {
        font-size: 1.5em;
        text-align: center;
    }
    
    .feature-list {
        padding-left: 20px;
    }
    
    .download-link {
        width: 80%;
        margin: 10px auto;
    }
    
    .english-section {
        margin-top: 30px;
    }
}

/* 超小屏幕设备 (375px以下) */
@media screen and (max-width: 375px) {
    .screenshots-section {
        grid-template-columns: 1fr;
    }
    
    .app-section {
        padding: 10px;
    }
    
    .page-title {
        font-size: 1.2em;
    }
}

/* 修改文字相关样式 */
.page-title {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.version-info {
    color: #87CEFA;
    font-size: 0.9em;
    padding: 5px 15px;
    border-radius: 15px;
    border: 1px solid rgba(135, 206, 250, 0.3);
    display: inline-block;
}

.app-description p {
    color: var(--text-light);
}

.feature-list {
    color: var(--text-light);
}

.subscription-note {
    color: rgba(255, 255, 255, 0.9);
    background: var(--primary-light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(135, 206, 250, 0.2);
}

/* 优化帮助链接 */
.help-link {
    background: rgba(135, 206, 250, 0.2);
    color: #87CEFA;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(135, 206, 250, 0.3);
}

.help-link:hover {
    background: rgba(135, 206, 250, 0.3);
    color: white;
}

/* 优化特性列表 */
.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: "•";
    color: #87CEFA;
    position: absolute;
    left: 8px;
    font-size: 1.2em;
}

/* 分隔线样式 */
.divider {
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    height: 1px;
    margin: 15px 0;
}

/* 英文区域样式 */
.english-section {
    border-top: 1px solid var(--primary-light);
    padding-top: 30px;
    margin-top: 30px;
}

/* 修改标题式 */
.section-title {
    color: #87CEFA;
    border-bottom: 2px solid rgba(135, 206, 250, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 选择器容器样式 */
.select-container {
    margin: 20px auto;
    max-width: 400px;
    text-align: left;
    font-size: 18px;
}

.select-container label {
    color: white;
    margin-right: 10px;
    display: block;
    margin-bottom: 5px;
    font-size: 20px;
}

.select-container select {
    width: 100%;
    max-width: 400px;
    font-size: 18px;
    padding: 12px;
}

/* 说明文本样式 */
.description-text {
    color: white;
    text-align: left;
    margin: 20px auto;
    max-width: 400px;
    font-size: 20px;
}

/* 下载信息区域样式 */
#downloadInfo {
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 400px;
    text-align: left;
    font-size: 18px;
}

#downloadInfo a {
    color: white;
    text-decoration: underline;
}

#downloadInfo a:hover {
    color: #87CEFA;
}

/* 支持链接样式更新 */
.support-links {
    margin: 20px auto;
    max-width: 400px;
    text-align: center;
    font-size: 18px;
}

.support-links a {
    display: inline-block;
    margin: 10px;
    color: white;
    text-decoration: underline;
}

.support-links a:hover {
    color: #87CEFA;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .select-container,
    #downloadInfo,
    .support-links {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* 按钮组样式 */
.button-group {
    text-align: center;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}



/* 页面主要按钮样式保持不变 */
.button-group .button {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #87CEFA, #6495ED);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

/* 反馈意见按钮样式 */
footer .button {
    display: inline-block;
    padding: 5px 10px;
    background: linear-gradient(135deg, #87CEFA, #6495ED);
    color: white;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: auto;
    font-size: 0.9em;
    margin: 5px;
}

footer .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 移动端按钮组响应式 */
@media screen and (max-width: 480px) {
    .button-group {
        grid-template-columns: 1fr;
    }
}


/* 响应式调整 */
@media screen and (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .button-group a {
        width: 100%;
        max-width: none;
    }
}

/* 主容器样式 */
main.container {
    width: 100%;
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;  /* 确保所有内容居中 */
}

/* Hero区域样式 */
.hero {
    width: 100%;
    max-width: 800px;  /* 限制最大宽度 */
    margin: 5px auto;
    text-align: center;
}

.hero h1 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    width: 100%;
}


/* 按钮组样式优化 */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    margin: 10px auto;
}

.button-group a {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
}

/* 按钮样式优化 */
.button {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #87CEFA, #6495ED);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;  /* 确保按钮填充容器 */
}

.button:hover {
    background: linear-gradient(135deg, #6495ED, #4169E1);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    main.container {
        padding: 0 10px;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .button-group a {
        width: 100%;
        max-width: none;
    }
}

/* drones页面特定样式 */
.select-container label {
    color: #87CEFA;  /* 浅蓝色标题 */
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.description-text strong {
    color: #87CEFA;
    font-size: 22px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 下拉选择框样式优化 */
.select-container select {
    width: 100%;
    max-width: 400px;
    font-size: 16px;
    padding: 12px;
    background: rgba(135, 206, 250, 0.1);
    background-color: rgba(135, 206, 250, 0.1);
    border: 1px solid rgba(135, 206, 250, 0.3);
    border-radius: 8px;
    color: rgb(135, 197, 171);
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-container select:hover {
    background: rgba(135, 206, 250, 0.2);
    border-color: rgba(135, 206, 250, 0.5);
}

.select-container select:focus {
    outline: none;
    border-color: #87CEFA;
    box-shadow: 0 0 10px rgba(135, 206, 250, 0.3);
}

/* 下载信息区域样式优化 */
#downloadInfo {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(135, 206, 250, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

#downloadInfo a {
    display: inline-block;
    background: linear-gradient(135deg, #87CEFA, #6495ED);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    text-decoration: none;
    margin: 5px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

#downloadInfo a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(135, 206, 250, 0.3);
}

/* 支持链接样式优化 */
.support-links {
    margin: 30px auto;
    text-align: center;
}

.support-links a {
    display: inline-block;
    background: linear-gradient(135deg, #87CEFA, #6495ED);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    margin: 10px;
    transition: all 0.3s ease;
    font-size: 1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.support-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(135, 206, 250, 0.3);
}

/* 强调文本样式 */
#downloadInfo strong {
    color: #87CEFA;
    font-weight: bold;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .select-container label {
        font-size: 20px;
    }

    .description-text strong {
        font-size: 20px;
    }

    .support-links a {
        width: 90%;
        margin: 8px auto;
    }
}
