:root {
    /* 主色调 */
    --primary-color: #00a389; /* 琉璃绿 */
    --secondary-color: #333333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* 中性色 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-hint: #999999;
    --border-color: #EEEEEE;
    --bg-color: #F7F9FC;
    --card-bg: #FFFFFF;
    
    /* 功能色 */
    --success: #52C41A;
    --warning: #FAAD14;
    --error: #F5222D;
    --link: #1890FF;
    
    /* iPhone 15 Pro 尺寸 */
    --iphone-width: 390px;
    --iphone-height: 844px;
    --iphone-radius: 45px;
    --status-bar-height: 44px;
    --tab-bar-height: 83px;
}

/* 基础样式 */
body {
    font-family: 'SF Pro Text', 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--dark-color);
    background-color: #f5f5f5;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.btn-primary:hover {
    background-color: #008e77; /* 深一点的主色调 */
    border-color: #008e77;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* 布局组件 */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.header-desc {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
}

.footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 原型展示组件 */
.prototype-grid {
    padding: 30px 0;
}

.prototype-item {
    margin-bottom: 30px;
}

.card {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    overflow: hidden;
}

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

.card-preview {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 5px 5px 0 0;
    border-bottom: 1px solid #eee;
}

.card-preview iframe {
    width: 100%;
    height: 400px;
    transform: scale(0.5);
    transform-origin: 0 0;
    pointer-events: none;
    border: none;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 表单元素 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(43, 101, 217, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
}

/* 导航组件 */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 28px 0; /* 底部增加padding为Home Indicator留出空间 */
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-width: var(--iphone-width);
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    height: var(--tab-bar-height);
    box-sizing: border-box;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8E8E93;
    text-decoration: none;
    font-size: 24px;
    padding: 5px 0;
}

.mobile-nav-text {
    font-size: 10px;
    margin-top: 2px;
    font-weight: 500;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

/* 数据统计卡片 */
.stat-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'DIN Pro', sans-serif;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* 进度条样式 */
.progress {
    height: 0.5rem;
    border-radius: 1rem;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* 公共组件样式 */
.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 2rem;
    height: 2rem;
}

.avatar-lg {
    width: 5rem;
    height: 5rem;
}

.badge-level {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-blue {
    background-color: rgba(43, 101, 217, 0.1);
    color: var(--primary-color);
}

.tag-green {
    background-color: rgba(0, 163, 137, 0.1);
    color: var(--success-color);
}

.tag-orange {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--warning-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .card-preview {
        height: 200px;
    }
    
    .card-preview iframe {
        transform: scale(0.33);
    }
}

/* 原型页面内部样式 */
.prototype-page {
    background-color: #f5f5f5;
    min-height: 100vh;
    padding-bottom: calc(var(--tab-bar-height) + 20px); /* 为Tab Bar和额外间距留出空间 */
    box-sizing: border-box;
    max-width: var(--iphone-width);
    margin: 0 auto;
    position: relative;
}

.prototype-content {
    padding-bottom: 70px;
}

.app-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-title {
    margin: 0;
    font-size: 1.25rem;
    text-align: center;
}

.back-button {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section {
    margin-bottom: 2rem;
}

/* 工具扩展样式 */
.calculator-result {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.result-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-label {
    color: var(--text-secondary);
}

.result-value {
    font-weight: 500;
    color: var(--text-primary);
}

.result-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
}

.chart-container {
    height: 250px;
    margin-bottom: 2rem;
}

/* 辅助类 */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* 产品滑块 */
.product-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

/* 渐变背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #008977 100%);
}

/* 圆角样式 */
.rounded-xl {
    border-radius: 1rem;
}

/* 阴影效果 */
.shadow-custom {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 合伙人卡片样式 */
.partner-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #008977 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.partner-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSgxMzUpIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4xKSIvPjwvcGF0dGVybj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
    opacity: 0.1;
}

/* iPhone 容器 - 将页面内容限制在iPhone尺寸内并添加圆角 */
.iphone-container {
    max-width: var(--iphone-width);
    margin: 20px auto;
    position: relative;
    border-radius: var(--iphone-radius);
    overflow: hidden;
    background-color: white;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 40px);
    max-height: var(--iphone-height);
}

/* iOS状态栏 */
.ios-status-bar {
    height: var(--status-bar-height);
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
}

.status-bar-left {
    font-weight: 600;
    font-size: 14px;
}

.status-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 24px;
    width: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.status-bar-right {
    display: flex;
    align-items: center;
}

.battery-icon {
    width: 22px;
    height: 12px;
    border: 1px solid #000;
    border-radius: 3px;
    padding: 1px;
    position: relative;
    margin-left: 6px;
}

.battery-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    right: -4px;
    width: 3px;
    height: 6px;
    background-color: #000;
    border-radius: 0 1px 1px 0;
}

.battery-level {
    height: 100%;
    width: 60%;
    background-color: #000;
    border-radius: 1px;
}

/* iOS Tab Bar */
.ios-tab-bar {
    height: var(--tab-bar-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 20px; /* 为Home Indicator留出空间 */
    max-width: var(--iphone-width);
    margin: 0 auto;
    z-index: 1000;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    text-decoration: none;
    font-size: 24px;
}

.tab-text {
    font-size: 10px;
    margin-top: 2px;
    font-weight: 500;
}

.tab-item.active {
    color: var(--primary-color);
}

/* 页面内容容器，确保内容不被状态栏和Tab Bar遮挡 */
.page-content {
    padding: 0 16px;
    margin: 0;
    overflow-y: auto;
    height: calc(100% - var(--status-bar-height) - var(--tab-bar-height));
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 430px) {
    .iphone-container {
        max-width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
}

/* 为Home Indicator添加样式 */
.home-indicator {
    width: 134px;
    height: 5px;
    background-color: #000;
    border-radius: 3px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

/* 顶部定制样式结束 */

/* 原有样式保留 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn-primary:hover {
    background-color: #008e77; /* 深一点的主色调 */
    border-color: #008e77;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* 以下是原有样式 */ 