:root {
    --bg-color: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent-color: #2563eb;
    --border-color: #f3f4f6;
    --card-hover: #f9fafb;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 0px;
}

.avatar-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    color: #111;
}

.tag-cloud {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-item {
    font-size: 0.8rem;
    padding: 6px 14px;
    background: #f3f4f6;
    border-radius: 99px;
    color: #4b5563;
    border: 1px solid transparent;
}

.tag-item.primary {
    background: #eff6ff;
    color: var(--accent-color);
    border-color: #dbeafe;
    font-weight: 700;
}

/* Section Components */
.section-header {
    display: flex;
    align-items: center;
    /* 确保Icon与文本在同一行对齐 */
    gap: 10px;
    margin: 20px 0 16px;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.section-emoji {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: -2px;
}

/* PC Side-by-Side Layout */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .layout-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* Core Business Card */
.core-business-card {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.core-business-card:hover {
    transform: translateY(-3px);
}

.energy-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f43f5e;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
}

.business-main-body {
    display: flex;
    align-items: center;
    gap: 24px;
}

.business-icon-large {
    font-size: 3.5rem;
}

.business-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
}

.business-info p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.business-stats {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-highlight {
    color: #fbbf24;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Dynamic Days Counter */
.days-counter {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--accent-color);
    background: var(--card-hover);
}

.price-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.price-black {
    background: #111;
    color: #fff;
}

.price-purple {
    background: #7c3aed;
    color: #fff;
}

.price-red {
    background: #e11d48;
    color: #fff;
}

.price-green {
    background: #059669;
    color: #fff;
}

.service-icon {
    font-size: 2.25rem;
    margin-bottom: 12px;
    display: block;
}

.service-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

/* Collapsible Section */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 0;
}

.collapsible-content.expanded {
    max-height: 2000px;
    margin-top: 16px;
    transition: max-height 0.4s ease-in;
}

.toggle-services-btn {
    width: 100%;
    margin: 24px 0;
    padding: 12px;
    background: #f9fafb;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* Product Cards (Knowledge & Products) */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}

.product-card:hover {
    transform: translateX(5px);
    background: #f9fafb;
}

.product-card.blue-border {
    border-left-color: #2563eb;
}

.product-card.orange-border {
    border-left-color: #f97316;
}

.product-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-price {
    text-align: right;
}

.price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ef4444;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}


/* Article Card */
.article-card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.article-card:hover {
    background: #f9fafb;
    border-color: var(--border-color);
    transform: translateX(5px);
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    padding: 14px 32px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-entry {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

@media (max-width: 640px) {
    .container {
        padding: 40px 20px;
    }

    .main-title {
        font-size: 1.8rem;
    }
}

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

.modal.active {
    display: flex;
}

.modal-card {
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    max-width: 90%;
    width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalPop 0.3s ease-out forwards;
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-qr {
    width: 220px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 16px;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.close-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #f3f4f6;
    color: var(--text-muted);
    border-radius: 99px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

/* Blog Article Details Styles */
.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 32px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-main);
}

.article-date {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.blog-body {
    max-width: 760px;
    /* 控制最佳阅读行宽 */
    margin: 0 auto;
}

.blog-body p {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 2em;
    color: #374151;
    /* 柔和些的黑色 */
    letter-spacing: 0.02em;
}

.blog-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 3em;
    margin-bottom: 1.25em;
    color: #111;
    line-height: 1.4;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 2em;
    padding-left: 1.5em;
}

.blog-body li {
    font-size: 1.15rem;
    line-height: 2;
    margin-bottom: 0.5em;
    color: #374151;
}

.blog-image,
.blog-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 3em auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .blog-body p {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 1.5em;
    }

    .blog-body li {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .blog-image,
    .blog-body img {
        margin: 2em auto;
        border-radius: 8px;
        width: 100%;
    }

    .blog-body h2 {
        font-size: 1.4rem;
        margin-top: 2.5em;
        margin-bottom: 1em;
    }
}

/* Identity Modal (Visitor Registry) */
.identity-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

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

.identity-card {
    background: #fff;
    padding: 40px;
    border-radius: 32px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.identity-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.identity-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.identity-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: #f9fafb;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    text-align: center;
}

.identity-input:focus {
    border-color: var(--accent-color);
}

.identity-submit {
    width: 100%;
    padding: 16px;
    background: #111;
    color: #fff;
    border-radius: 99px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.identity-submit:hover {
    transform: scale(1.02);
}