/* 全局样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* 防止整个页面滚动 */
}

/* iPhone 15 模拟样式 */
.iphone-container {
    position: relative;
}

.iphone-frame {
    width: 380px;
    height: 820px;
    background-color: #000;
    border-radius: 55px;
    padding: 12px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 35px;
    background-color: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 45px;
    overflow: hidden;
    position: relative;
}

.iphone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background-color: #000;
    border-radius: 3px;
    z-index: 10;
}

/* 原型导航按钮 */
.prototype-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prototype-nav-btn {
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 8px;
    border: none;
    background-color: #3b82f6;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 120px;
}

.prototype-nav-btn:hover {
    background-color: #2563eb;
}

/* App样式变量 */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background-color: rgba(243, 244, 246, 0.8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(107, 114, 128, 0.8);
}

/* 隐藏滚动条但保留功能 */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* iOS状态栏样式 */
.ios-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
    background-color: var(--bg-white);
    height: 44px;
    position: relative;
    z-index: 50;
}

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

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

.status-time {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.status-battery {
    margin-left: 6px;
    display: flex;
    align-items: center;
}

.battery-icon {
    width: 25px;
    height: 12px;
    border: 1.5px solid var(--text-primary);
    border-radius: 3px;
    position: relative;
    margin-right: 5px;
}

.battery-icon:after {
    content: '';
    position: absolute;
    width: 3px;
    height: 4px;
    background-color: var(--text-primary);
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 0 2px 2px 0;
}

.battery-level {
    position: absolute;
    left: 2px;
    top: 2px;
    bottom: 2px;
    width: 60%;
    background-color: var(--text-primary);
    border-radius: 1px;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    height: 11px;
    margin-right: 6px;
}

.signal-bar {
    width: 3px;
    background-color: var(--text-primary);
    margin-right: 1px;
    border-radius: 1px;
}

.bar-1 { height: 5px; }
.bar-2 { height: 7px; }
.bar-3 { height: 9px; }
.bar-4 { height: 11px; }

.wifi-icon {
    position: relative;
    width: 15px;
    height: 12px;
    margin-right: 6px;
}

.wifi-icon:before,
.wifi-icon:after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--text-primary);
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
}

.wifi-icon:before {
    bottom: 0;
    width: 9px;
    height: 9px;
}

/* 页面内通用样式 */
.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-white);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    position: relative;
    z-index: 40;
}

.app-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    padding-bottom: 80px; /* 为底部导航栏留出空间 */
}

.app-navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--bg-white);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    padding: 8px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

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

.nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.nav-text {
    font-size: 12px;
}

/* 品牌标识样式 */
.brand-logo {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.brand-logo i {
    font-size: 40px;
    color: white;
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -3px rgba(59, 130, 246, 0.4);
}

.brand-logo-sm {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.brand-logo-sm i {
    font-size: 20px;
    color: white;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.back-button:hover {
    background-color: rgba(243, 244, 246, 0.8);
}

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

/* 登录和注册页面样式 */
.login-form, .signup-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
}

.google-btn {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

.google-btn:hover {
    background-color: #f8f8f8;
}

/* 输入框和按钮共享样式 */
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* 媒体查询确保在小型设备上的响应式布局 */
@media (max-width: 375px) {
    .app-content {
        padding: 12px;
    }
    
    .login-form, .signup-form {
        padding: 0 12px;
    }
} 
