* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.logo-text {
    font-size: 36px;
    font-weight: 700;
    color: #2d3436;
}

.logo-number {
    color: #6a11cb;
    margin-left: 5px;
}

.tagline {
    font-size: 18px;
    color: #636e72;
    font-weight: 400;
    margin-top: 5px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.function-section {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 24px;
    color: #2d3436;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #6a11cb;
}

/* 始终两列布局 */
.function-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 始终两列 */
    gap: 20px;
}

.function-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 220px; /* 确保卡片有最小高度 */
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #6a11cb;
}

.platform-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 32px;
    color: white;
}

.wechat {
    background: linear-gradient(135deg, #09bb07, #0dc41c);
}

.douyin {
    background: linear-gradient(135deg, #000000, #69c9d0);
}

.xiaohongshu {
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
}

.kuaishou {
    background: linear-gradient(135deg, #ff9000, #ffd700);
}

.dianping {
    background: linear-gradient(135deg, #f03d37, #ff6b6b);
}

.gaode {
    background: linear-gradient(135deg, #0080ff, #00bfff);
}

.meituan {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
}

.ctrip {
    background: linear-gradient(135deg, #ff6b00, #ff8c42);
}

.platform-name {
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.platform-desc {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 20px;
    flex-grow: 1;
    min-height: 40px; /* 确保描述区域高度一致 */
}

.action-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%;
    min-width: 120px; /* 按钮最小宽度 */
}

.action-btn:hover {
    background: linear-gradient(135deg, #5a0cb9 0%, #1c65e9 100%);
    transform: scale(1.05);
}

.quick-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.quick-action-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.5);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
}

.close-modal {
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #636e72;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3436;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    resize: vertical;
}

.upload-area {
    border: 2px dashed #6a11cb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    background: rgba(106, 17, 203, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: #6a11cb;
    margin-bottom: 10px;
}

.upload-area p {
    color: #636e72;
    margin: 0;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#filePreview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-preview-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-file {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.modal-footer {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a0cb9 0%, #1c65e9 100%);
}

.btn-secondary {
    background: #ddd;
    color: #333;
}

.btn-secondary:hover {
    background: #ccc;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #636e72;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.footer-links a {
    color: #6a11cb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2575fc;
}

/* 始终两列布局的响应式调整 */
@media (max-width: 768px) {
    /* 在移动设备上保持两列布局，但调整间距和字体大小 */
    .function-grid {
        gap: 15px; /* 缩小间距 */
    }
    
    .function-card {
        padding: 15px; /* 缩小内边距 */
        min-height: 200px; /* 调整最小高度 */
    }
    
    .platform-icon {
        width: 60px; /* 缩小图标 */
        height: 60px;
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .platform-name {
        font-size: 18px; /* 缩小字体 */
    }
    
    .platform-desc {
        font-size: 13px; /* 缩小字体 */
        min-height: 36px; /* 调整最小高度 */
    }
    
    .action-btn {
        padding: 8px 20px;
        font-size: 14px;
        min-width: 100px; /* 调整最小宽度 */
    }
    
    .logo-text {
        font-size: 28px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .quick-action-btn {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    /* 在非常小的屏幕上调整布局 */
    .container {
        padding: 15px; /* 缩小容器内边距 */
    }
    
    .header {
        padding: 15px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .function-section {
        padding: 20px;
    }
    
    .function-grid {
        gap: 12px; /* 进一步缩小间距 */
    }
    
    .function-card {
        padding: 12px;
        min-height: 180px; /* 进一步调整最小高度 */
    }
    
    .platform-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .platform-name {
        font-size: 16px;
    }
    
    .platform-desc {
        font-size: 12px;
        min-height: 32px;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 360px) {
    /* 在超小屏幕上调整 */
    .function-grid {
        grid-template-columns: 1fr; /* 超小屏幕改为一列 */
    }
    
    .function-card {
        min-height: auto;
    }
}