/* 主要样式文件 */

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

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features .feature i {
    font-size: 1.2rem;
    color: #4ade80;
}

/* 订单表单 */
.hero-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: #333;
}

.hero-form h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #333;
}

.order-form .form-group {
    margin-bottom: 20px;
}

.order-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.order-form select,
.order-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.order-form select:focus,
.order-form input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* 作者展示区域 */
.writers-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.writers-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.writers-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.writers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.writer-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.writer-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.writer-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.default-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.default-avatar i {
    font-size: 2rem;
    color: #6c757d;
}

.writer-info h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.writer-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ddd;
    font-size: 0.9rem;
}

.stars i.filled {
    color: #ffc107;
}

.rating-text {
    font-weight: 500;
    color: #666;
}

.completed-orders {
    text-align: center;
    color: #666;
    margin-bottom: 10px;
}

.specialties {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

/* 流程区域 */
.process-section {
    padding: 80px 0;
    background: #fff;
}

.process-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.process-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

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

.step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

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

.step p {
    color: #666;
    line-height: 1.6;
}

/* 服务区域 */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.services-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

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

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.service-item h3 {
    margin-bottom: 15px;
    color: #333;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-bottom: 5px;
}

.free-text {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 评价区域 */
.reviews-section {
    padding: 80px 0;
    background: #fff;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.reviews-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.reviews-tabs {
    max-width: 800px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: #f8f9fa;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active,
.tab-btn:hover {
    background: #007bff;
    color: #fff;
}

.reviews-grid {
    display: grid;
    gap: 30px;
}

.review-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin-bottom: 5px;
    color: #333;
}

.reviewer-info p {
    color: #666;
    font-size: 0.9rem;
}

.rating {
    background: #28a745;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.review-text {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
}

.review-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.review-tags span {
    background: #e9ecef;
    color: #666;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 统计数据区域 */
.stats-section {
    padding: 60px 0;
    background: #2c3e50;
    color: #fff;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #3498db;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 用户菜单 */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-avatar {
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.user-dropdown a:hover {
    background: #f8f9fa;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* 页脚样式增强 */
.footer-bottom-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-left p {
    margin-bottom: 20px;
    color: #bdc3c7;
    line-height: 1.6;
}

.country-selector {
    margin-bottom: 20px;
}

.country-selector span {
    color: #bdc3c7;
    margin-right: 10px;
}

.country-selector a {
    color: #bdc3c7;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.country-selector a.active,
.country-selector a:hover {
    color: #fff;
}

.certifications {
    margin-bottom: 20px;
}

.cert-badge {
    background: #27ae60;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-methods span {
    color: #bdc3c7;
    margin-right: 10px;
}

.payment-methods i {
    font-size: 1.5rem;
    color: #bdc3c7;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media a {
    width: 40px;
    height: 40px;
    background: #34495e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
}

.social-media a:hover {
    background: #3498db;
}

.app-download {
    margin-top: 20px;
}

.app-download h4 {
    margin-bottom: 10px;
    color: #fff;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.app-store-btn:hover {
    background: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .payment-methods {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-form {
        padding: 20px;
    }
    
    .writers-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
