/* Global Styles */
:root {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --card-bg: #ffffff;
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --brand-orange: #FF8A00;
    --brand-orange-2: #F07600;
    --brand-blue: #0077ed;
    --brand-blue-2: #005cbf;
    --brand-purple: #5E5CE6;
    --brand-purple-2: #4745b8;
    --font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.modal-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #86868b;
    margin-bottom: 0;
    font-weight: 400;
}

/* Info Section - 主体资质信息区 */
.info-section {
    width: 100%;
    max-width: 800px;
    margin-bottom: 50px;
}

.info-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.info-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-color);
    text-align: left;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
}

.info-label {
    flex-shrink: 0;
    width: 140px;
    font-size: 14px;
    color: #86868b;
    font-weight: 500;
    padding-top: 2px;
}

.info-value {
    flex: 1;
    font-size: 15px;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.info-item-action {
    align-items: center;
}

.license-btn {
    background-color: #f2f2f7;
    color: #1d1d1f;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.license-btn:hover {
    background-color: #e5e5ea;
}

/* Cards Section */
.cards-section {
    display: flex;
    gap: 24px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 36px 28px;
    flex: 1;
    max-width: 400px;
    min-width: 240px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-main, .card-blue, .card-purple {
    border: none;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-main {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-2));
    box-shadow: 0 12px 40px rgba(255, 138, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-blue {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
    box-shadow: 0 12px 40px rgba(0, 119, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-purple {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-2));
    box-shadow: 0 12px 40px rgba(94, 92, 230, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-main .card-title,
.card-blue .card-title,
.card-purple .card-title {
    color: #fff;
    font-weight: 700;
}

.card-main .card-desc,
.card-blue .card-desc,
.card-purple .card-desc {
    color: rgba(255, 255, 255, 0.85);
}

.card-main .card-btn,
.card-blue .card-btn,
.card-purple .card-btn {
    background-color: rgba(17, 17, 17, 0.9);
    color: #fff;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    padding: 14px 32px;
}

.card-main .card-btn:hover,
.card-blue .card-btn:hover,
.card-purple .card-btn:hover {
    background-color: #000;
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.card-main .card-btn:active,
.card-blue .card-btn:active,
.card-purple .card-btn:active {
    transform: scale(0.98);
}

.card-coming {
    opacity: 1; /* Reset opacity for colored cards */
}

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

/* Specific hover shadows for colored coming cards */
.card-blue.card-coming:hover {
    box-shadow: 0 16px 40px rgba(0, 119, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.card-purple.card-coming:hover {
    box-shadow: 0 16px 40px rgba(94, 92, 230, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Disabled button style on colored cards */
.card-blue .card-btn-disabled,
.card-purple .card-btn-disabled {
    background-color: rgba(0, 0, 0, 0.2) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.card-blue .card-btn-disabled:hover,
.card-purple .card-btn-disabled:hover {
    transform: none;
    background-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: none;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 15px;
    color: #86868b;
    margin-bottom: 28px;
    flex-grow: 1;
    line-height: 1.5;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
    min-height: 44px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.card-btn:hover {
    background-color: var(--primary-hover);
}

.card-btn-disabled {
    background-color: #d2d2d7;
    color: #86868b;
    cursor: not-allowed;
}

.card-btn-disabled:hover {
    background-color: #d2d2d7;
}

/* Modal - 营业执照弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

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

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 92vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #86868b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.license-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.license-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.license-error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #86868b;
    padding: 40px;
}

.license-error span {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.license-error p {
    font-size: 14px;
}

.license-error.show {
    display: flex;
}

.license-image.hidden {
    display: none;
}

/* Site Footer */
.site-footer {
    width: 100%;
    padding: 24px 20px;
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    color: #86868b;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-link {
    color: #86868b;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.footer-sep {
    color: #d2d2d7;
    margin: 0 4px;
}

.footer-text {
    color: #86868b;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 30px 16px;
    }

    .hero-section {
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .hero-desc {
        font-size: clamp(14px, 3vw, 18px);
    }

    .info-section {
        margin-bottom: 40px;
    }

    .info-card {
        padding: 20px;
        border-radius: 12px;
    }

    .info-title {
        font-size: 17px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .info-item {
        flex-direction: column;
        gap: 6px;
    }

    .info-label {
        width: 100%;
        font-size: 13px;
    }

    .info-value {
        font-size: 14px;
    }

    .info-item-action {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .info-item-action .info-label {
        width: auto;
    }

    .license-btn {
        padding: 10px 18px;
        font-size: 14px;
        min-height: 44px;
    }

    .cards-section {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .card {
        width: 100%;
        max-width: 100%;
        padding: 28px 24px;
        min-width: 0;
    }

    .card-title {
        font-size: 22px;
    }

    .card-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .card-btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        padding: 14px 28px;
    }

    /* Mobile (<= 640px) */
    @media (max-width: 640px) {
        .card-main {
            max-width: 100%;
            margin-left: 0;
            margin-right: 0;
        }
    }

    .modal-content {
        max-width: 95vw;
        max-height: 88vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 14px 16px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-close {
        font-size: 24px;
        width: 32px;
        height: 32px;
    }

    .modal-body {
        padding: 16px;
    }

    .license-image-container {
        min-height: 200px;
    }

    .license-image {
        max-height: 60vh;
    }

    .footer-content {
        flex-direction: column;
        gap: 6px;
    }

    .footer-sep {
        display: none;
    }
}
