/* 团湘网络工作室 - 全局样式 */

/* 重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* 区块通用 */
section {
    padding: 60px 0;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #2d3748;
}

/* 特色服务 */
.features {
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: transform 0.3s;
}

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

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

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

/* 服务预览 */
.services-preview {
    background: #f5f7fa;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

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

.service-card h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.service-card p {
    color: #718096;
    margin-bottom: 0.5rem;
}

.price {
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}

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

/* CTA */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 页脚 */
.footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 服务列表页 */
.services-list {
    background: white;
}

.service-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 1rem;
}

.service-header h2 {
    text-align: left;
    margin: 0;
    font-size: 1.8rem;
}

.price-range {
    background: #667eea;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

.service-content h3 {
    margin: 1rem 0 0.5rem;
    color: #2d3748;
}

.service-content ul {
    list-style: none;
    margin-bottom: 1rem;
}

.service-content li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #4a5568;
}

.service-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* 案例展示 */
.portfolio-grid {
    background: white;
}

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

.portfolio-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.portfolio-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.portfolio-card p {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.portfolio-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #718096;
}

/* 价格页面 */
.pricing-info {
    background: white;
}

.pricing-note {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.pricing-note h3 {
    margin-bottom: 1rem;
}

.pricing-note ul {
    list-style: none;
}

.pricing-note li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-note li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

.pricing-grid {
    background: #f5f7fa;
}

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

.pricing-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid #667eea;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #667eea;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.pricing-header h3 {
    margin-bottom: 0.5rem;
}

.pricing-header .price {
    font-size: 2rem;
    color: #667eea;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

/* 付款信息 */
.payment-info {
    background: white;
}

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

.payment-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.payment-card h3 {
    margin-bottom: 1rem;
}

/* 联系页面 */
.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-detail h3 {
    margin-bottom: 0.3rem;
    color: #2d3748;
}

.contact-value {
    font-weight: bold;
    color: #667eea;
}

.contact-note {
    font-size: 0.9rem;
    color: #718096;
}

.contact-note-box {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-note-box h4 {
    margin-bottom: 0.5rem;
}

.contact-note-box ul {
    list-style: none;
}

.contact-note-box li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.contact-note-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
}

/* 表单 */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.form-message.success {
    background: #c6f6d5;
    color: #22543d;
}

.form-message.error {
    background: #fed7d7;
    color: #742a2a;
}

/* FAQ */
.faq-section {
    background: #f5f7fa;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.faq-item p {
    color: #4a5568;
}

/* 后台管理 */
.admin-section {
    background: white;
    min-height: 80vh;
}

.admin-section h1 {
    margin-bottom: 2rem;
}

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th,
.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.orders-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3748;
}

.orders-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

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

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

    .pricing-grid .container,
    .portfolio-grid .container {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }
}
