/* Shared Component Library */
@import url("variables.css");

:root {
    --primary-color: var(--brand-primary);
    --primary-hover: var(--brand-primary-hover);
    --primary-light: var(--brand-primary-light);
    --bg-light: var(--brand-bg-light);
    --text-main: var(--brand-text-main);
    --text-muted: var(--brand-text-muted);
    --text-light: var(--brand-text-light);
    --border-color: var(--brand-border);
    --card-shadow: var(--brand-shadow-sm);
    --card-hover-shadow: var(--brand-shadow-md);
}

/* 布局容器 */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 */
.app-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.app-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 按钮组件 */
.btn-bp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid transparent;
    font-size: 14px;
}

.btn-bp-primary { background: var(--primary-color); color: #fff !important; }
.btn-bp-primary:hover { background: var(--primary-hover); color: #fff !important; transform: translateY(-1px); }

.btn-bp-outline { border-color: var(--border-color); color: var(--text-main); background: #fff; }
.btn-bp-outline:hover { background: #f8fafc; color: var(--text-main) !important; border-color: var(--text-muted); }

/* 品牌风格的次级排布按钮 (Outline Primary) */
.btn-bp-outline-primary {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}
.btn-bp-outline-primary:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.btn-bp-danger { background: var(--brand-danger); color: #fff !important; }
.btn-bp-danger:hover { background: var(--brand-danger-hover); color: #fff !important; transform: translateY(-1px); }

.btn-bp-outline-danger {
    border: 1.5px solid var(--brand-danger);
    color: var(--brand-danger);
    background: transparent;
}
.btn-bp-outline-danger:hover {
    background: var(--brand-danger);
    color: #fff !important;
}

.btn-bp-link { 
    color: var(--text-muted); 
    background: transparent; 
    padding: 0; 
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.btn-bp-link:hover { color: var(--text-muted) !important; text-decoration: none; opacity: 0.8; }

.btn-bp-pill { border-radius: 50px; }

/* Footer Styles (Standard Component) */
.site-footer {
    padding: 80px 0 40px;
    background: #fff;
    color: #64748b;
    font-size: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}

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

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-col p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    font-size: 14px;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}
.btn-bp-sm { padding: 4px 12px; font-size: 13px; }

/* 卡片组件 */
.card-bp {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.card-bp-clickable {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-bp-clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

/* 表单组件 */
.form-group-bp { margin-bottom: 20px; }
.form-label-bp { display: block; font-weight: 600; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }

.form-control-bp, .form-select-bp {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
    background: #fff;
}
.form-control-bp:focus, .form-select-bp:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px var(--primary-light); 
}

/* 搜索组件 */
.search-container-bp { position: relative; margin-bottom: 24px; }
.search-container-bp i, .search-container-bp svg { 
    position: absolute; 
    left: 14px; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--text-light); 
}
.search-input-bp {
    padding-left: 40px !important;
    border-radius: 50px !important;
}

/* 响应式 */
@media (max-width: 640px) {
    .app-container { padding: 0 16px; }
    .card-bp { border-radius: 0; border-left: none; border-right: none; padding: 20px 16px; }
}

/* Toast Notification */
.toast-container-bp {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.toast-bp {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: auto;
    max-width: 90vw;
    text-align: center;
}

.toast-bp.show {
    opacity: 1;
    transform: translateY(0);
}

/* 产品展示与截图 */
.product-screenshot-container {
    margin: 30px auto 60px;
    max-width: 1000px;
    padding: 16px;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.product-screenshot-container::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, var(--primary-light) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.3;
}

.product-screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    background: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin: 80px 0 20px;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 50px;
}

.feature-detail-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-detail-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

.feature-detail-icon {
    width: 44px;
    height: 44px;
    background: rgba(1, 82, 147, 0.05);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.feature-detail-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.feature-detail-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.toast-bp-error {
    background: rgba(220, 38, 38, 0.9);
}

/* Confirm Dialog */
.confirm-overlay-bp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-overlay-bp.show {
    opacity: 1;
}

.confirm-dialog-bp {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.confirm-overlay-bp.show .confirm-dialog-bp {
    transform: scale(1);
}

.confirm-title-bp {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.confirm-message-bp {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.confirm-actions-bp {
    display: flex;
    gap: 12px;
}

.confirm-actions-bp .btn-bp {
    flex: 1;
    padding: 12px;
}

/* Feature Detail Grid (For Product Pages) */
.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-detail-card {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.feature-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.feature-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.feature-detail-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 48px;
}

/* Product Showcases Styles */
.product-hero {
    padding: 160px 20px 60px;
    text-align: center;
    background: radial-gradient(circle at top right, #f0f7ff 0%, #fff 70%);
}

.product-hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 900;
    color: var(--text-main);
}

.product-hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.btn-primary-pill {
    display: inline-block;
    background: var(--primary-color);
    color: #fff !important;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(1, 82, 147, 0.2);
    filter: brightness(1.1);
}

.btn-outline-pill {
    display: inline-block;
    background: transparent;
    color: var(--primary-color) !important;
    padding: 14px 46px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn-outline-pill:hover {
    background: var(--primary-color);
    color: #fff !important;
    transform: translateY(-3px);
}

/* 产品页移动端优化 */
@media (max-width: 768px) {
    .product-hero {
        padding: 80px 20px 15px;
    }
    
    .product-hero h1 {
        font-size: 32px;
    }
    
    .product-hero p {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .product-screenshot-container {
        margin: 10px auto 20px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .section-subtitle {
        margin-bottom: 15px;
    }
    
    .feature-detail-grid {
        margin-bottom: 20px;
    }
    
    #features {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
