/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* 导航栏样式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.dropdown-content a.disabled {
    color: #95a5a6;
    cursor: not-allowed;
}

.dropdown-content a.disabled:hover {
    background-color: transparent;
    color: #95a5a6;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 导航链接箭头指示 */
.dropdown > a::after {
    content: " ▼";
    font-size: 0.8em;
}

/* 主内容区样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 欢迎横幅 */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* 产品展示 */
.products {
    margin-bottom: 3rem;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.product-item h3 {
    color: #3498db;
    margin-bottom: 1rem;
}
.product-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-item h3 a:hover {
    color: #3498db;
}

.coming-soon {
    opacity: 0.7;
}

.software-image-container {
    margin: 15px 0;
    text-align: center;
}

.software-preview {
    max-width: 280px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.software-preview:hover {
    transform: scale(1.02);
}

/* 产品下载提示样式 */
.download-hint {
    font-size: 0.9rem;
    color: #3498db;
    margin-top: 10px;
    font-weight: 500;
    display: block;
    text-decoration: none;
}
.underline {
    border-bottom: 2px solid #3498db;
    padding-bottom: 2px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* 关于我们和联系我们 */
.about, .contact {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.about h2, .contact h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.copyright {
    text-align: right;
}
.icp-info {
    margin: 10px 0;
    text-align: center;
}

.icp-info a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
}

.icp-info a:hover {
    color: #3498db;
    text-decoration: underline;
}


/* 反馈表单样式 */
.feedback-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feedback-container h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.form-description {
    text-align: center;
    margin-bottom: 2rem;
    color: #7f8c8d;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group.required label::after {
    content: " *";
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

/* 文件上传样式 - 修复后的版本 */
.file-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-input-hidden {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-upload-button {
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-align: center;
}

.file-upload-button:hover {
    background-color: #2980b9;
}

.file-name {
    color: #7f8c8d;
}

.file-hint {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 0.5rem;
}

.submit-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #229954;
}

.success-message {
    text-align: center;
    padding: 2rem;
    display: none;
}

.success-message h2 {
    color: #27ae60;
    margin-bottom: 1rem;
}

.back-home {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
}

.back-home:hover {
    text-decoration: underline;
}

.icp-info {
    margin: 10px 0;
    text-align: center;
}

.icp-info a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.icp-info a:hover {
    color: #333;
    text-decoration: underline;
}

/* 产品下载提示样式 */
.download-hint {
    font-size: 0.9rem;
    color: #3498db;
    margin-top: 10px;
    font-weight: 500;
}

/* 产品项链接样式 */
.product-item h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.product-item h3 a:hover {
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .file-upload {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* 移动端下拉菜单适配 */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #34495e;
    }
    
    .dropdown-content a {
        color: white;
        padding-left: 2rem;
    }
    
    .dropdown-content a:hover {
        background-color: #2c3e50;
    }
    
    /* 移动端点击展开下拉菜单 */
    .dropdown > a::after {
        content: " ►";
    }
}