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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #333;
}

.btn-secondary:hover {
    background-color: #bdc3c7;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Paw Prints Container */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Snowflake */
.star {
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='40' height='40'%3E%3Cpath fill='rgba(255,255,255,0.8)' d='M50 0l5 15h15l-12 10 5 15-12-8-12 8 5-15-12-10h15z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
    animation: snowfall linear infinite;
    opacity: 0;
    transform: rotate(0deg) scale(0.5);
    will-change: transform, opacity, top;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Snowfall Animation */
@keyframes snowfall {
    0% {
        transform: rotate(0deg) scale(0.3);
        opacity: 0;
        top: -10%;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(0.8);
        opacity: 0;
        top: 110%;
    }
}

/* 移动端优化 - 减少动画复杂度 */
@media (max-width: 768px) {
    .star {
        animation: snowfall-mobile linear infinite;
        will-change: transform, opacity, top;
    }
}

@keyframes snowfall-mobile {
    0% {
        transform: translateY(0) scale(0.3);
        opacity: 0;
        top: -10%;
    }
    20% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(120%) scale(0.6);
        opacity: 0;
        top: 110%;
    }
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Section */
.search-section {
    background-color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.search-container {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background-color: #f5f7fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    background-color: transparent;
}

.search-btn {
    padding: 1rem 1.5rem;
    border: none;
    background-color: #3498db;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Workflow Container */
.workflow-container,
.product-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

/* Workflow Main */
.workflow-main,
.product-main {
    flex: 1;
}

/* Workflow Sidebar */
.workflow-sidebar,
.product-sidebar {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tag-item {
    padding: 0.6rem 1rem;
    background-color: #f5f7fa;
    color: #3498db;
    border: 1px solid #3498db;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    text-align: center;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background-color: #3498db;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tag-item.active {
    background-color: #3498db;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-size: 2.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Workflows Section */
.workflows {
    padding: 4rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h3 {
        font-size: 1.75rem;
    }

    .search-container {
        flex-direction: row;
        margin: 0 1rem;
    }

    .search-input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .search-btn {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .workflow-container,
    .product-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .workflow-sidebar,
    .product-sidebar {
        position: static;
        order: -1;
    }

    .tags-cloud {
        flex-direction: row;
        flex-wrap: wrap;
    }

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

    .workflow-actions,
    .product-actions {
        flex-direction: column;
    }
}

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

.workflow-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.workflow-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.workflow-card h4 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workflow-card p {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workflow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.workflow-tag {
    background-color: #ecf0f1;
    color: #555;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.workflow-actions {
    display: flex;
    gap: 1rem;
}

.workflow-actions .btn {
    flex: 1;
    padding: 0.625rem;
    font-size: 0.875rem;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: white;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
}

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

.feature-card h4 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin: 0;
}

.footer-logo p {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section-header h3 {
        font-size: 1.75rem;
    }

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

    .workflow-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .workflows,
    .features {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}

/* Products Section */
.products {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.product-container {
    margin-top: 3rem;
}

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

.product-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-card h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.625rem;
    font-size: 0.875rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.product-description {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-tag {
    background-color: #ecf0f1;
    color: #555;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.payment-modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 1.5rem;
}

.payment-amount {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #2c3e50;
}

.payment-amount .amount {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    margin-left: 0.5rem;
}

.payment-qr {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-code {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.mock-qr {
    width: 200px;
    height: 200px;
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-grid {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: repeating-linear-gradient(
        0deg,
        #000 0px,
        #000 2px,
        #fff 2px,
        #fff 4px
    ),
    repeating-linear-gradient(
        90deg,
        #000 0px,
        #000 2px,
        #fff 2px,
        #fff 4px
    );
    opacity: 0.3;
}

.qr-center {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-logo {
    width: 40px;
    height: 40px;
}

.qr-hint {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.payment-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.payment-info p {
    margin: 0.5rem 0;
    color: #2c3e50;
    font-size: 0.875rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.modal-footer .btn {
    flex: 1;
    padding: 0.75rem;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .mock-qr {
        width: 180px;
        height: 180px;
    }

    .payment-amount {
        font-size: 1rem;
    }

    .payment-amount .amount {
        font-size: 1.5rem;
    }
}