/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #007bff;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
}

.btn-outline:hover {
    background-color: #ff6b6b;
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: #ff6b6b;
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6b6b;
}

/* 英雄区域样式 */
.hero {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

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

.earnings-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    width: 300px;
    transform: rotate(3deg);
}

.earnings-header h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.earnings-amount {
    font-size: 48px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.earnings-users {
    font-size: 14px;
    color: #888;
}

/* 如何工作区域样式 */
.how-it-works {
    padding: 80px 0;
    background-color: #fff;
}

.how-it-works h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: 700;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.step p {
    color: #666;
}

/* 优势区域样式 */
.benefits {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.benefits h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

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

.benefit {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.benefit:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.benefit h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.benefit p {
    color: #666;
}

/* 热门问卷区域样式 */
.featured-surveys {
    padding: 80px 0;
    background-color: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #333;
}

.view-all {
    color: #ff6b6b;
    font-weight: 500;
    transition: all 0.3s;
}

.view-all:hover {
    color: #ff5252;
    text-decoration: underline;
}

.survey-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.survey-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.survey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #ff6b6b;
}

.survey-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.survey-category {
    background-color: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.survey-reward {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 18px;
}

.survey-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.survey-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

/* 用户心声区域样式 */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.testimonial {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    min-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: #e9ecef;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.author-info p {
    font-size: 14px;
    color: #6c757d;
}

/* 统计数据区域样式 */
.stats {
    padding: 60px 0;
    background-color: #ff6b6b;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* CTA区域样式 */
.cta {
    padding: 80px 0;
    background-color: #343a40;
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta .btn-outline {
    border-color: #fff;
    color: #fff;
}

.cta .btn-outline:hover {
    background-color: #fff;
    color: #343a40;
}

/* 页脚样式 */
footer {
    background-color: #212529;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.footer-logo p {
    color: #adb5bd;
}

.footer-links h3, .footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-contact p {
    color: #adb5bd;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .earnings-card {
        transform: none;
    }
    
    .survey-cards {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        min-width: 280px;
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

/* 用户中心样式 */
.user-dashboard {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background-color: #e9ecef;
    border-radius: 50%;
    margin-right: 20px;
}

.user-details h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #333;
}

.user-level {
    color: #ff6b6b;
    font-weight: 500;
}

.balance-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.balance-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.dashboard-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.dashboard-tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.dashboard-tab.active {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.tab-content {
    display: none;
}

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

/* 问卷列表页样式 */
.surveys-header {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-bottom: 40px;
}

.surveys-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.surveys-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-weight: 500;
    color: #333;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.search-box {
    display: flex;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    padding: 10px 15px;
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.pagination a.active {
    background-color: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.pagination a:hover:not(.active) {
    background-color: #f5f5f5;
}

/* 问卷详情页样式 */
.survey-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.survey-detail-header {
    margin-bottom: 30px;
}

.survey-detail-header h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.survey-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.meta-item strong {
    margin-right: 5px;
    color: #333;
}

.survey-reward-large {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.survey-description {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.8;
}

.survey-requirements {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.survey-requirements h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.requirements-list {
    list-style: disc;
    padding-left: 20px;
    color: #555;
}

.requirements-list li {
    margin-bottom: 10px;
}

/* 登录注册页面样式 */
.auth-container {
    max-width: 500px;
    margin: 60px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
}

.auth-form .form-group:last-child {
    margin-bottom: 0;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check input {
    margin-right: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s;
}

.social-btn:hover {
    background-color: #e9ecef;
}

/* 提现页面样式 */
.withdraw-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.withdraw-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.withdraw-option.active {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.05);
}

.withdraw-option:hover:not(.active) {
    border-color: #adb5bd;
}

.withdraw-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.withdraw-name {
    font-weight: 500;
    color: #333;
}

.withdraw-amount {
    margin-bottom: 30px;
}

.withdraw-amount label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.amount-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.amount-input span {
    padding: 12px 15px;
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    border-right: 1px solid #ddd;
}

.amount-input input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 16px;
}

.amount-input input:focus {
    outline: none;
}

.withdraw-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.withdraw-button {
    flex: 1;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.withdraw-button:hover {
    background-color: #e9ecef;
}

.withdraw-note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

/* 警告和成功消息样式 */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}