/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --dark-color: #34495e;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* 导航栏样式 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-logo i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
    width: 250px;
}

.search-box input:focus {
    border-color: var(--secondary-color);
}

.search-box i {
    position: absolute;
    right: 1rem;
    color: var(--text-light);
    cursor: pointer;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero {
    background: var(--gradient);
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 100vh;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--warning-color);
}

.stat p {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: float 6s ease-in-out infinite;
}

.floating-icons i {
    font-size: 4rem;
    color: var(--white);
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.floating-icons i:hover {
    transform: scale(1.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 平台卡片样式 */
.platforms {
    padding: 80px 0;
    background: var(--light-color);
}

.platforms h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.platform-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.platform-card:hover::before {
    left: 100%;
}

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

.platform-icon {
    margin-bottom: 1rem;
}

.platform-icon i {
    font-size: 4rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.platform-card:hover .platform-icon i {
    color: var(--accent-color);
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.platform-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.software-count {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.view-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 软件展示区域 */
.software-showcase {
    padding: 80px 0;
}

.software-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.filter-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.software-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.software-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.software-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    background: var(--gradient);
}

.software-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.software-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.software-meta {
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.software-actions {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-btn {
    background: var(--success-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: #219a52;
}

.download-btn.primary {
    background: var(--secondary-color);
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.download-btn.primary:hover {
    background: #2980b9;
}

/* 特色功能样式 */
.features {
    padding: 80px 0;
    background: var(--light-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 1rem;
    cursor: pointer;
}

.close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.software-detail {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.software-detail img {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    object-fit: cover;
}

.software-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.software-meta {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.download-buttons {
    margin-top: 2rem;
}

.software-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.software-screenshots img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.software-screenshots img:hover {
    transform: scale(1.05);
}

/* 评分和标签样式 */
.rating {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.rating-score {
    color: var(--text-light);
    font-weight: 500;
}

.software-tags {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.tag:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.category-filter {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn.active,
.category-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.category-btn i {
    font-size: 0.8rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    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(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .search-box {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .floating-icons {
        display: none;
    }

    .platform-grid {
        grid-template-columns: 1fr;
    }

    .software-detail {
        flex-direction: column;
        text-align: center;
    }

    .software-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* 反馈系统样式 */
#feedbackModal .modal-content {
    max-width: 600px;
}

.feedback-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feedback-software {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.feedback-software .software-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    font-size: 1.5rem;
}

.feedback-software h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.rating-section {
    margin-bottom: 1.5rem;
}

.rating-section h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.star-rating {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.star-rating .star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffd700;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.comment-section {
    margin-bottom: 1.5rem;
}

.comment-section h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.comment-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.comment-section textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.char-count {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.user-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-info input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.user-info input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-cancel, .btn-submit {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: var(--light-color);
    color: var(--text-dark);
}

.btn-cancel:hover {
    background: var(--border-color);
}

.btn-submit {
    background: var(--secondary-color);
    color: white;
}

.btn-submit:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.feedback-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-list-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 15px;
    overflow: hidden;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gradient);
    color: white;
}

.close-feedback-list {
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-feedback-list:hover {
    opacity: 1;
}

.feedback-stats {
    padding: 1.5rem;
    text-align: center;
    background: var(--light-color);
}

.avg-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.rating-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.rating-stars {
    font-size: 1.5rem;
    color: #ffd700;
}

.rating-count {
    color: var(--text-light);
}

.feedback-items {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.feedback-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.feedback-item:last-child {
    border-bottom: none;
}

.feedback-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.author-name {
    font-weight: 500;
    color: var(--primary-color);
}

.feedback-rating {
    color: #ffd700;
    font-size: 0.9rem;
}

.feedback-date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-left: auto;
}

.feedback-content {
    color: var(--text-dark);
    line-height: 1.5;
}

/* 版本管理样式 */
#versionModal .modal-content {
    max-width: 700px;
}

.version-software {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.version-software .software-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    font-size: 1.5rem;
}

.version-software h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.version-software p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.add-version-btn {
    margin-left: auto;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.add-version-btn:hover {
    background: #2980b9;
}

.no-versions {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.version-items {
    max-height: 400px;
    overflow-y: auto;
}

.version-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: border-color 0.3s ease;
}

.version-item.current {
    border-color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.05);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.version-info-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.version-info-main h4 {
    color: var(--primary-color);
    margin: 0;
}

.current-badge {
    background: var(--success-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.version-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.version-notes {
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

.version-actions {
    display: flex;
    gap: 0.75rem;
}

.download-version-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-version-btn:hover {
    background: #219a52;
}

.delete-version-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-version-btn:hover {
    background: #c0392b;
}

.add-version-section {
    border-top: 2px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.add-version-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.version-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-row input,
.form-row textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-row textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-actions button[type="button"]:first-child {
    background: var(--light-color);
    color: var(--text-dark);
}

.form-actions button[type="button"]:first-child:hover {
    background: var(--border-color);
}

.form-actions button[type="button"]:last-child {
    background: var(--secondary-color);
    color: white;
}

.form-actions button[type="button"]:last-child:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* 高级搜索样式 */
.advanced-search-btn {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advanced-search-btn:hover {
    background: #2980b9;
    transform: translateY(-50%) scale(1.1);
}

.advanced-search-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.advanced-search-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.search-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-tab.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.search-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-color);
}

.search-section:last-child {
    border-bottom: none;
}

.search-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.search-field {
    position: relative;
}

.search-field input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-field input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: var(--light-color);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-group label:hover {
    background: var(--light-color);
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    transform: scale(1.1);
}

.rating-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-slider input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.rating-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

.rating-display {
    color: var(--text-dark);
    font-weight: 500;
    min-width: 80px;
}

.size-filter select,
.date-filter select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.sort-options {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.sort-options select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.btn-secondary, .btn-outline, .btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: var(--light-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.history-header, .saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.btn-text:hover {
    color: #c0392b;
}

.history-list, .saved-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item, .saved-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}

.history-item:hover, .saved-item:hover {
    border-color: var(--secondary-color);
}

.history-content, .saved-content {
    flex: 1;
    cursor: pointer;
}

.history-description, .saved-name {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.saved-description {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.history-time, .saved-time {
    color: var(--text-light);
    font-size: 0.8rem;
}

.history-delete, .saved-delete {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.history-delete:hover, .saved-delete:hover {
    background: #c0392b;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

.search-stats {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.stats-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.stats-content i {
    font-size: 1.2rem;
}

.stats-content strong {
    color: #ffd700;
}

.stats-content em {
    color: #ecf0f1;
    font-style: normal;
}

.clear-search {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-search:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 软件详情页面样式 */
.software-detail-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.software-icon-large {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 3rem;
    flex-shrink: 0;
}

.software-main-info {
    flex: 1;
}

.software-main-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.software-description {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.software-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.rating-score {
    font-weight: bold;
    color: var(--primary-color);
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.software-meta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.meta-item i {
    color: var(--secondary-color);
    width: 16px;
}

.software-tags-detail {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag-detail {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.software-detail-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.detail-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.detail-tab.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.detail-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.detail-tab-content.active {
    display: block;
}

.software-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: var(--secondary-color);
    color: white;
}

.action-btn.primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: var(--light-color);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--border-color);
}

/* 概述内容样式 */
.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.screenshots-gallery img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshots-gallery img:hover {
    transform: scale(1.05);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.1rem;
}

.requirements-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
}

.req-label {
    font-weight: 500;
    color: var(--text-dark);
}

.req-value {
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 版本历史样式 */
.version-item-detail {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.version-item-detail:hover {
    border-color: var(--secondary-color);
}

.version-item-detail.current {
    border-color: var(--success-color);
    background: rgba(39, 174, 96, 0.05);
}

.version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.version-header h4 {
    color: var(--primary-color);
    margin: 0;
}

.version-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.version-info {
    margin-bottom: 0.75rem;
}

.version-size {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.version-notes {
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 6px;
    border-left: 3px solid var(--secondary-color);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    background: var(--success-color);
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-small:hover {
    background: #219a52;
}

.more-versions {
    text-align: center;
    margin-top: 1rem;
}

/* 评价样式 */
.reviews-summary {
    margin-bottom: 2rem;
}

.rating-overview {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.avg-rating-large {
    text-align: center;
    min-width: 150px;
}

.avg-rating-large .rating-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: block;
}

.avg-rating-large .rating-stars {
    font-size: 1.5rem;
    color: #ffd700;
    margin: 0.5rem 0;
}

.rating-distribution {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.rating-label {
    min-width: 40px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.rating-progress {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--warning-color);
    transition: width 0.3s ease;
}

.rating-count {
    min-width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-light);
}

.review-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-name {
    font-weight: 500;
    color: var(--primary-color);
}

.review-rating {
    color: #ffd700;
    font-size: 0.9rem;
}

.review-date {
    color: var(--text-light);
    font-size: 0.8rem;
}

.review-content {
    color: var(--text-dark);
    line-height: 1.6;
}

/* 相关软件样式 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.related-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.related-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.related-info p {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.related-rating {
    color: #ffd700;
}

/* 详细信息样式 */
.info-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
}

.info-label {
    font-weight: 500;
    color: var(--text-dark);
}

.info-value {
    color: var(--text-light);
}

.download-link {
    color: var(--secondary-color);
    text-decoration: none;
}

.download-link:hover {
    text-decoration: underline;
}

.security-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
}

.security-item.safe {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.security-item i {
    font-size: 1.2rem;
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.image-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.image-close:hover {
    opacity: 1;
}

/* 无内容状态样式 */
.no-versions, .no-reviews, .no-related {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-versions i, .no-reviews i, .no-related i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.no-versions p, .no-reviews p, .no-related p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}