﻿:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

/* Hero section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    color: var(--white);
}

.social-icons {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-button {
    background: var(--white);
    color: var(--primary-color) !important;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-block;
}

.download-button:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Features section */
.features {
    padding: 2rem 1rem 2rem;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.feature-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
}

.feature-item {
    flex-basis: calc(33.333% - 4rem);
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateX(0);
    transition: all 0.3s ease;
    margin: 60px 0;
}

.feature-item:nth-child(odd) {
    transform: translateX(-30px);
}

.feature-item:nth-child(even) {
    transform: translateX(30px);
}

.feature-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
}

/* 使用文档区域样式 */
.documentation {
    background: var(--white);
}

.documentation .centered-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.doc-link-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.doc-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.doc-link:hover {
    transform: translateX(10px);
    background: var(--primary-color);
}

/* 更新日志区域样式 */
.changelog {
    padding: 4rem 2rem;
    background: var(--light-bg); /* 浅色背景 */
}

.changelog h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.version-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.version-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.version-card:hover {
    transform: translateY(-5px);
}

.version-number {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.version-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.version-download {
    display: inline-block;
/*    padding: 0.8rem 1.5rem;*/
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.version-download:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Contact section */
.contact-section {
    padding: 4rem 2rem;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 0;
    width: 100%;
}

.footer p {
    margin: 0.8rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer img {
    vertical-align: middle;
}

.footer a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
    color: var(--white);
}

/* 下载按钮下拉菜单样式 */
/* 2. 修复下拉菜单的间距问题 */
.download-button-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 30px;  增加底部内边距，扩大可悬停区域 
}

.dropdown-content {
    z-index: 30;
    position: absolute;
    display: none;
    background: white;
    min-width: 200px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    top: calc(100% - 50px); /* 减少与按钮的距离 */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 20px; /* 移除顶部边距 */
    overflow: hidden;
    border: none;
}

/* 添加触发区域以防止鼠标移出时下拉菜单消失 */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px; /* 连接到按钮的透明区域 */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}
.download-button-wrapper:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.download-option {
    color: var(--primary-color) !important;
    padding: 1rem 2rem;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
}

.download-option:first-child {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.download-option:hover {
    background: rgba(0,0,0,0.05);
    color: var(--accent-color) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 功能特点区域样式 */
.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin: 100px 0;
    gap: 6rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.feature-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-item.right {
    flex-direction: row-reverse;
}

.feature-image {
    width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.05);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* 关于我们区域样式 */
.about-content {
    padding: 1rem 0;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content ul {
    list-style-type: none;
    margin: 1.5rem 0;
    padding-left: 1rem;
}

.about-content ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-content ul li:before {
    content: "•";
    color: var(--accent-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* 联系方式样式优化 */
.contact-details {
    padding: 1rem 0;
}

.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details i {
    color: var(--accent-color);
    width: 20px;
}

.feedback-button-wrapper {
    margin-top: 2rem;
}

.feedback-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.feedback-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    /* 大屏幕平板 */
    .feature-container {
        padding: 0 1rem;
    }

    .feature-image {
        width: 350px;
        height: 260px;
    }

    .version-container {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    /* 平板设备 */
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .feature-item, 
    .feature-item.right {
        flex-direction: column !important;
        gap: 3rem;
        padding: 0 !important;
        text-align: center;
    }

    .feature-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin-bottom: 2rem;
    }

    .feature-content {
        padding: 1rem;
    }

    .version-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    /* 手机设备 */
    .hero {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .social-icons {
        top: 1rem;
        right: 1rem;
    }

    .social-icons a {
        font-size: 1.2rem;
    }

    .download-button {
        padding: 0.8rem 2rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .version-container {
        grid-template-columns: 1fr;
    }

    .version-card {
        padding: 1.5rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .about-content {
        padding: 0;
    }

    .contact-details {
        padding: 0;
    }

    .footer {
        padding: 1rem;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* 小屏手机 */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .download-button-wrapper {
        width: 100%;
    }

    .download-button {
        width: 80%;
        text-align: center;
    }

    .dropdown-content {
        width: 80%;
        left: 10%;
        transform: none;
    }

    .feature-content p {
        font-size: 1rem;
    }
}

/* 适配横屏模式 */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: 4rem 1rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* 图片模态框响应式 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 80vh;
    }
}

/* 确保下拉菜单在移动端正常工作 */
@media (hover: none) {
    .download-button-wrapper:hover .dropdown-content {
        display: none;
    }

    .download-button-wrapper.active .dropdown-content {
        display: block;
    }
}

/* 全局链接样式 */
a {
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

a:visited {
    color: inherit;
}

/* 图片模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    margin: auto;
    display: block;
/*    max-width: 90%;
    max-height: 90vh;*/
    animation: zoom 0.3s ease;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

@keyframes zoom {
    from {transform: scale(0.1)}
    to {transform: scale(1)}
}

.feature-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #000;
}

.download-description {
    margin-top: 20px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.download-link:hover {
    background-color: #e0e0e0;
}

.note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.note a {
    color: #ff4757;
    font-weight: bold;
    text-decoration: underline;
    font-size: 16px;
}

.note a:hover {
    color: #ff6b81;
}

/* 需求征集按钮样式 */
.demand-button {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    letter-spacing: 0.5px;
}

.demand-button:hover {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a1a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2) !important;
}

/* 需求征集弹窗样式 */
.demand-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.demand-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    padding-top: 40px;
}

.demand-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    z-index: 1;
    background: transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    opacity: 0.7;
}

.demand-modal-close:hover {
    color: #333;
    opacity: 1;
    border-color: #ddd;
    background: rgba(0, 0, 0, 0.05);
}

.demand-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

/* 需求记录表格样式 */
.demand-history {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
}

.table-container {
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.demand-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    overflow: hidden;
}

.demand-table th,
.demand-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.demand-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.demand-table td {
    color: #444;
    line-height: 1.6;
}

.demand-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.demand-table tbody tr:last-child td {
    border-bottom: none;
}

/* 需求表格响应式设计 */
@media (max-width: 768px) {
    .table-container {
        margin: 20px 0;
        border-radius: 8px;
    }

    .demand-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .demand-table th,
    .demand-table td {
        padding: 12px 16px;
        min-width: 120px;
    }

    .demand-table td:nth-child(3) {
        min-width: 200px;
    }
}