/* ==========================================================================
   前台新創公司詳細頁專用樣式
   2026-06-27: 提升視覺質感、雙欄排版與微動畫。
   ========================================================================== */

/* 容器與基本設定 */
.sc-single-company {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #374151;
    line-height: 1.6;
}

/* 封面與 Logo 交疊區 */
.sc-single-hero {
    position: relative;
    margin-bottom: 30px;
}

.sc-single-cover {
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f4fbf7, #edf9f2);
}

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

/* Logo & Header Info */
.sc-single-header-wrapper {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 30px;
    margin-top: -60px; /* 向上懸浮（因為 Logo 變高了） */
    z-index: 10;
    gap: 36px; /* 加大間距，防範 Logo 遮擋標題 */
}

.sc-single-logo {
    width: 360px;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    background: #ffffff;
    border: 6px solid #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sc-single-logo:hover {
    transform: scale(1.03);
}

.sc-single-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.sc-single-header-info {
    padding-bottom: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sc-single-header-info h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-single-name-en {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.sc-single-tagline {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0 0 16px 0;
    font-weight: 400;
}

/* 標籤設計 */
.sc-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    height: 34px;
}

.sc-tag {
    display: inline-block;
    padding: 6px 14px;
    height: 34px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

/* 2026-06-27: 同步美化地點標籤底色為科技淡藍色與藍字 */
.sc-tag--location {
    background-color: #e7f5ff;
    color: #1c7ed6;
}

.sc-tag--industry {
    background-color: #e6f9f0;
    color: #00a857;
}

.sc-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 社群連結按鈕 */
.sc-single-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 40px;
    height: 40px;
}

.sc-single-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    height: 40px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sc-single-links a:hover {
    color: #00C46A;
    border-color: #00C46A;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 196, 106, 0.1);
}

/* 主要佈局：雙欄設計 */
.sc-single-body {
    margin-top: 60px;
}

.sc-single-body-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

/* 左側主內容 */
.sc-single-main-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #f3f4f6;
}

.sc-single-section {
    margin-bottom: 35px;
}

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

.sc-single-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid #00C46A;
    line-height: 1.2;
}

.sc-description {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.8;
}

.sc-description p {
    margin-top: 0;
    margin-bottom: 16px;
}

/* Pitch 影片自適應外框 */
.sc-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #000;
}

.sc-video-embed iframe,
.sc-video-embed object,
.sc-video-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 右側側邊欄卡片 */
.sc-single-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sc-sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f3f4f6;
}

.sc-sidebar-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
}

/* 屬性網格 DL 美化 */
.sc-info-grid {
    margin: 0;
}

.sc-info-grid dt {
    font-size: 0.82rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-info-grid dt svg {
    flex-shrink: 0;
    stroke: #9ca3af;
}

.sc-title-gif-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
}

.sc-dt-gif-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.sc-info-grid dd {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed #f3f4f6;
}

.sc-info-grid dd:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* 募資備註 */
.sc-fundraising-note {
    background: #fdf2f8;
    border-left: 4px solid #db2777;
    color: #9d174d;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    font-weight: 500;
    margin-top: 20px;
    line-height: 1.5;
}

/* 鎖定遮罩與提示 */
.sc-lock-notice {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px dashed #86efac;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-top: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.sc-lock-notice svg {
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}

.sc-lock-notice p {
    font-size: 0.92rem;
    color: #166534;
    margin: 0;
    line-height: 1.6;
}

.sc-lock-notice a {
    color: #00c46a;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.2s ease;
}

.sc-lock-notice a:hover {
    color: #15803d;
}

/* 返回連結 */
.sc-single-back {
    margin-top: 40px;
    text-align: left;
}

.sc-single-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.sc-single-back a:hover {
    color: #111827;
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* 動畫與 Media Queries */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@media (max-width: 991px) {
    .sc-single-body-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sc-single-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .sc-single-cover {
        height: 200px;
    }
    
    .sc-single-header-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -80px; /* 手機版向上懸浮 */
        padding: 0 20px;
        gap: 20px;
    }
    
    .sc-single-logo {
        width: 240px;
        height: 135px;
        aspect-ratio: 16 / 9;
        border-radius: 12px;
        border: 4px solid #ffffff;
    }

    .sc-single-header-info{
        align-items: center;
    }
    
    .sc-single-header-info h1 {
        font-size: 1.8rem;
    }
    
    .sc-single-tags,
    .sc-single-links {
        justify-content: center;
    }
    
    .sc-single-main-content,
    .sc-sidebar-card {
        padding: 20px;
    }
}
