* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f7fa;
    color: #34495e;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.brand-tagline {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #ecf0f1;
    font-weight: 500;
}

.section-title {
    text-align: center;
    margin: 40px 0 25px;
    font-size: 1.8rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #3498db;
    margin: 10px auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    background: #3498db;
    color: white;
    font-size: 1.5rem;
    padding: 20px 0;
    text-align: center;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.card p {
    margin-bottom: 15px;
    color: #546e7a;
    flex-grow: 1;
    font-size: 0.95rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
    margin: 10px 0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #219653;
}

/* 关于作者区域 */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.about-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-card .card-content {
    padding: 25px;
}

.qr-code {
    width: 180px;
    height: 180px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px;
    border: 1px dashed #ddd;
}

/* 统计指标 */
.stats-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px 0;
    margin: 40px 0;
    border-radius: 12px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    padding: 0 20px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 客户案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.case-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.case-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.case-card p {
    color: #546e7a;
    margin-bottom: 15px;
}

.case-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 技术博客 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
}

.blog-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.blog-card p {
    color: #546e7a;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.blog-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.blog-card a:hover {
    text-decoration: underline;
}

/* 服务流程 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.step {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.step p {
    color: #546e7a;
    font-size: 0.9rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto 40px;
}

.faq-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-item p {
    color: #546e7a;
}

/* 联系方式 */
.contact-cta {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.contact-methods {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 闲鱼轮播样式 */
.xianyu-review-container {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
}

.xianyu-review-header {
    background: #2c3e50;
    color: white;
    padding: 25px;
    text-align: center;
}

.xianyu-review-header h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.xianyu-review-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.xianyu-review-content {
    display: flex;
    min-height: 450px;
}

.xianyu-image-section {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-right: 1px solid #e9ecef;
}

.xianyu-review-image {
    max-width: 100%;
    max-height: 380px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
}

.xianyu-text-section {
    flex: 0 0 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.xianyu-review-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #2c3e50;
    margin-bottom: 20px;
    font-style: italic;
    border-left: 3px solid #3498db;
    padding-left: 15px;
}

.xianyu-review-meta {
    margin-bottom: 25px;
}

.xianyu-user-info {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.xianyu-review-date {
    font-size: 0.9rem;
    color: #adb5bd;
}

.xianyu-navigation {
    display: flex;
    gap: 10px;
}

.xianyu-nav-btn {
    flex: 1;
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.xianyu-nav-btn:hover:not(:disabled) {
    background: #2980b9;
}

.xianyu-nav-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.xianyu-thumbnail-strip {
    display: flex;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    overflow-x: auto;
}

.xianyu-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
    object-fit: cover;
}

.xianyu-thumbnail:hover {
    opacity: 0.8;
}

.xianyu-thumbnail.active {
    opacity: 1;
    border-color: #3498db;
}

.xianyu-review-counter {
    text-align: center;
    padding: 12px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.85rem;
}

/* 灯箱样式 */
.xianyu-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.xianyu-lightbox.active {
    display: flex;
}

.xianyu-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.xianyu-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer样式 */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 40px 0 20px;
}

.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.footer-cta-desc {
    font-size: 1.1rem;
    color: #bdc3c7;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 15px 0 8px;
    color: #ecf0f1;
}

.footer-email {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #5dade2;
    transform: translateY(-2px);
}

.footer-legal {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 20px;
    width: 100%;
    margin-top: 10px;
}

.beian-link {
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: #bdc3c7;
}

/* 动画效果 */
.about-card, .step, .case-card, .xianyu-review-container {
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-card:hover, .case-card:hover, .step:hover, .xianyu-review-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* 数字计数动画 */
.counting-number {
    display: inline-block;
    font-weight: bold;
}

@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.counting-number.animated {
    animation: countUp 0.6s ease-out;
}

/* FAQ 3D特效样式 */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.faq-item {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.6s ease;
}

.faq-item:hover::before {
    left: 100%;
}

.faq-item:nth-child(odd) {
    transform: translateX(-50px) rotateY(-5deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item:nth-child(even) {
    transform: translateX(50px) rotateY(5deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-item.animate-in {
    transform: translateX(0) rotateY(0deg) !important;
    opacity: 1 !important;
}

.faq-item:hover {
    transform: translateY(-5px) rotateX(2deg) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(52, 152, 219, 0.1);
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 30px;
}

.faq-item h4::before {
    content: 'Q:';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

.faq-item p {
    color: #546e7a;
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
}

.faq-item p::before {
    content: 'A:';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* 背景装饰元素 */
.faq-bg-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
}

.faq-bg-element:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.faq-bg-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.faq-bg-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* CTA按钮 */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* 全局样式 */
html {
    scroll-behavior: smooth;
}

a:focus, button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== 响应式设计 ========== */
/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-item {
        flex: 0 0 45%;
    }
}

/* 移动设备 (768px以下) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* 头部响应式 */
    header {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 30px 0 20px;
    }

    /* 卡片网格响应式 */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }

    .card-content {
        padding: 15px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    /* 统计栏响应式 */
    .stats-bar {
        padding: 30px 0;
        margin: 30px 0;
        border-radius: 8px;
    }

    .stats-container {
        flex-direction: column;
        gap: 25px;
    }

    .stat-item {
        padding: 0 15px;
    }

    .stat-number {
        font-size: 2rem;
        min-height: 50px;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* 关于作者区域响应式 */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .about-card .card-content {
        padding: 20px;
    }

    /* 微信二维码响应式 */
    .qr-code {
        width: 150px;
        height: 150px;
        margin: 10px auto;
    }

    /* 客户案例响应式 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .case-card {
        padding: 20px;
    }

    /* 技术博客响应式 */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }

    .blog-card {
        padding: 15px;
    }

    /* 服务流程响应式 */
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }

    .step {
        padding: 20px;
    }

    /* FAQ响应式 */
    .faq-list {
        margin-bottom: 30px;
    }

    .faq-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .faq-item h4 {
        font-size: 1rem;
        padding-left: 25px;
    }

    .faq-item p {
        padding-left: 25px;
        font-size: 0.9rem;
    }

    .faq-item:nth-child(odd),
    .faq-item:nth-child(even) {
        transform: translateY(30px);
        opacity: 0;
    }

    .faq-item.animate-in {
        transform: translateY(0) !important;
    }

    /* 闲鱼轮播响应式 */
    .xianyu-review-container {
        margin: 30px auto;
        border-radius: 8px;
    }

    .xianyu-review-header {
        padding: 20px;
    }

    .xianyu-review-header h1 {
        font-size: 1.5rem;
    }

    .xianyu-review-stats {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .xianyu-review-content {
        flex-direction: column;
        min-height: auto;
    }

    .xianyu-image-section {
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .xianyu-review-image {
        max-height: 300px;
    }

    .xianyu-text-section {
        flex: 1;
        padding: 20px;
    }

    .xianyu-review-text {
        font-size: 1rem;
    }

    .xianyu-thumbnail {
        width: 50px;
        height: 50px;
    }

    /* Footer响应式 */
    footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

    .footer-content {
        gap: 20px;
        padding: 30px 0 15px;
    }

    .footer-brand h2 {
        font-size: 1.5rem;
    }

    .footer-cta-desc {
        font-size: 0.95rem;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* 联系方式响应式 */
    .contact-cta {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    .contact-cta h2 {
        font-size: 1.6rem;
    }

    .contact-cta p {
        font-size: 1rem;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 200px;
        justify-content: center;
    }

    /* 移动端触摸优化 */
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* 超小屏幕 (480px以下) */
@media (max-width: 480px) {
    /* 卡片网格超小屏 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 统计栏超小屏 */
    .stats-bar {
        padding: 25px 0;
        margin: 25px 0;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* 技术博客超小屏 */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* 服务流程超小屏 */
    .process-steps {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 15px;
    }

    /* 关于作者超小屏 */
    .about-card .card-content {
        padding: 15px;
    }

    .qr-code {
        width: 130px;
        height: 130px;
    }

    /* 闲鱼轮播超小屏 */
    .xianyu-review-image {
        max-height: 250px;
    }

    .xianyu-thumbnail {
        width: 45px;
        height: 45px;
    }

    /* Footer超小屏 */
    .footer-brand h2 {
        font-size: 1.3rem;
    }

    .footer-cta-desc {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-link {
        width: 200px;
        justify-content: center;
    }
}

/* 大屏幕优化 (1024px以上) */
@media (min-width: 1025px) {
    .container {
        padding: 0 30px;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    .card:hover, .about-card:hover, .step:hover, .case-card:hover, .blog-card:hover {
        transform: none;
    }

    .xianyu-review-container:hover {
        transform: none;
    }
}