/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #50c878;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    background-color: var(--primary-color);
    color: white;
    padding: 150px 0 100px;
    margin-top: 70px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #45b869;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 功能特色 */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 工具列表 */
.tools {
    padding: 80px 0;
}

.tools-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tool-item {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tool-item:hover {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.tool-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.tool-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* 下载安装 */
.download {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.version-info {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.version-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.version-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.version-date {
    color: var(--text-light);
}

.requirements {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.requirements h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.requirements ul {
    list-style: none;
    padding-left: 0;
}

.requirements li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.download-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.download-card {
    background-color: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.download-size {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.download-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.install-steps {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.install-steps h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.install-steps ol {
    padding-left: 25px;
}

.install-steps li {
    padding: 10px 0;
    color: var(--text-light);
}

/* 关于我们 */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.about-text {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-feature {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.about-feature h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.about-feature p {
    color: var(--text-light);
    font-size: 14px;
}

/* 更新日志 */
.changelog {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.changelog-content {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
}

.changelog-content::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.changelog-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
    padding-left: 180px;
}

.changelog-item:last-child {
    margin-bottom: 0;
}

.changelog-version {
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    padding-right: 20px;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: 115px;
    top: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.changelog-details {
    background-color: var(--bg-color);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.changelog-details:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.changelog-details p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.changelog-details ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.changelog-details li {
    margin-bottom: 8px;
}

.changelog-details li:last-child {
    margin-bottom: 0;
}

.changelog-item-hidden {
    display: none;
}

.changelog-item-hidden.show {
    display: flex;
}

.changelog-more-container {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.changelog-more-container .btn {
    padding: 14px 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.changelog-more-container .btn:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.changelog-more-container .btn:active {
    transform: translateY(0);
}

/* 第三方软件源框架 */
.third-party-framework {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.framework-intro {
    margin-top: 50px;
}

.framework-content {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.framework-text h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 20px;
    margin-top: 30px;
}

.framework-text h3:first-child {
    margin-top: 0;
}

.framework-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.framework-advantages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.advantage-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.advantage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.advantage-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.advantage-content h4 {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.advantage-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.framework-modes {
    margin-top: 60px;
}

.framework-modes h3 {
    text-align: center;
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 40px;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mode-card {
    background-color: var(--bg-color);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
}

.mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top-color: var(--secondary-color);
}

.mode-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mode-card h4 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.mode-card > p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.mode-card ul {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.mode-card ul li {
    color: var(--text-light);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
}

.mode-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.framework-join {
    margin-top: 60px;
    background-color: var(--bg-color);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.join-content h3 {
    font-size: 28px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
}

.join-content > p {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.join-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.benefit-item {
    text-align: center;
    padding: 25px;
    background-color: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.benefit-item h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.benefit-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.join-steps {
    margin: 50px 0;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.join-steps h4 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.join-steps ol {
    padding-left: 25px;
    color: var(--text-light);
    line-height: 2;
}

.join-steps ol li {
    margin-bottom: 10px;
    font-size: 15px;
}

.join-steps ol li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.join-steps ol li a:hover {
    text-decoration: underline;
}

.join-contact {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--primary-color);
    border-radius: 8px;
    color: white;
    text-align: center;
}

.join-contact h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
}

.join-contact > p {
    margin-bottom: 25px;
    opacity: 0.9;
    font-size: 15px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-method {
    font-size: 16px;
}

.contact-method strong {
    margin-right: 8px;
}

.contact-method span {
    opacity: 0.9;
}

.contact-method a {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
}

.contact-method a:hover {
    opacity: 1;
}

.join-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.join-actions .btn {
    min-width: 180px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
}

.join-actions .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.join-actions .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.join-actions .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.join-actions .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 图片展示区域 */
.gallery {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* PC端可滑动容器 */
.gallery-container-pc {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gallery-grid-wrapper {
    flex: 1;
    overflow: hidden;
}

.gallery-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.gallery-item {
    flex: 0 0 calc((100% - 60px) / 3); /* 100%减去2个gap(30px*2=60px)，再除以3 */
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background-color: var(--bg-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    flex-shrink: 0; /* 确保项目不会被压缩 */
}

.gallery-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.gallery-nav-btn:disabled:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 移动端幻灯片容器 */
.gallery-slider {
    display: none;
    position: relative;
    width: 100%;
    margin-top: 40px;
    overflow: hidden;
    touch-action: pan-y;
}

.gallery-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    width: 100%;
}

.gallery-slider-item {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background-color: var(--bg-color);
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.gallery-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.gallery-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    padding: 0;
}

.gallery-slider-dot.active {
    background-color: var(--primary-color);
}

.gallery-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-color);
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.gallery-slider-nav:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-slider-nav.prev {
    left: 10px;
}

.gallery-slider-nav.next {
    right: 10px;
}

.gallery-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 图片查看器模态框 */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 3001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    line-height: 1;
}

.image-viewer-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.image-viewer-content img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.image-viewer-info {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    text-align: center;
}

.image-viewer-info span {
    display: inline-block;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-item strong {
    color: var(--text-color);
    font-weight: 600;
    min-width: 60px;
}

.contact-item span {
    color: var(--text-light);
    font-size: 16px;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3a7bc8;
    text-decoration: underline;
}

.contact-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #3a7bc8;
    transform: translateY(-5px);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .changelog-content::before {
        left: 60px;
    }

    .changelog-item {
        padding-left: 100px;
    }

    .changelog-version {
        width: 60px;
        font-size: 16px;
        padding-right: 10px;
    }

    .changelog-item::before {
        left: 55px;
    }

    .changelog-details {
        padding: 20px;
    }

    .changelog-more-container {
        margin-top: 40px;
        padding-top: 25px;
    }

    .changelog-more-container .btn {
        padding: 14px 40px;
        font-size: 15px;
        width: auto;
        min-width: 200px;
    }

    /* 第三方软件源框架响应式 */
    .framework-advantages {
        grid-template-columns: 1fr;
    }

    .modes-grid {
        grid-template-columns: 1fr;
    }

    .join-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .join-actions {
        flex-direction: column;
    }

    .join-actions .btn {
        width: 100%;
    }

    .contact-methods {
        flex-direction: column;
        gap: 15px;
    }

    .framework-join {
        padding: 30px 20px;
    }

    .join-steps {
        padding: 20px;
    }

    /* PC端容器在移动端隐藏 */
    .gallery-container-pc {
        display: none !important;
    }

    /* 移动端幻灯片显示 */
    .gallery-slider {
        display: block !important;
    }

    .image-viewer-content {
        padding: 20px;
    }

    .image-viewer-close {
        top: 10px;
        right: 15px;
        font-size: 32px;
        width: 40px;
        height: 40px;
    }

    .image-viewer-content img {
        max-height: calc(100vh - 100px);
    }

    .image-viewer-info {
        font-size: 12px;
        padding: 8px 15px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .image-viewer-content {
        padding: 15px;
    }

    .image-viewer-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }

    .image-viewer-content img {
        max-height: calc(100vh - 80px);
    }
}

