/* 會員中心樣式 */

/* App 容器 */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f5f5f5;
    padding-bottom: 70px;
}

/* 頂部導航 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.header-icon {
    font-size: 20px;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

.settings-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* 未登入區塊 */
.login-section {
    padding: 60px 20px;
    text-align: center;
}

.login-prompt {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
}

.login-prompt h2 {
    margin-bottom: 10px;
    color: #333;
}

.login-prompt p {
    color: #888;
    margin-bottom: 30px;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5f7a73 0%, #4a635d 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

.guest-btn {
    width: 100%;
    padding: 15px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
}

/* 會員區塊 */
.member-section {
    padding: 0 15px;
}

/* 會員卡片 */
.member-card {
    background: linear-gradient(135deg, #5f7a73 0%, #4a635d 100%);
    border-radius: 20px;
    padding: 25px;
    margin: 15px 0;
    color: white;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.member-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    object-fit: cover;
}

.member-details {
    flex: 1;
}

.member-name {
    font-size: 20px;
    margin-bottom: 10px;
}

.member-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 20px;
    font-weight: bold;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

/* 功能卡片 */
.feature-cards {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.feature-card {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.feature-card:active {
    transform: scale(0.95);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.feature-card span {
    font-size: 13px;
    color: #666;
}

/* 快速檢測橫幅 */
.quick-test-banner {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.banner-icon {
    font-size: 40px;
}

.banner-text h3 {
    font-size: 16px;
    color: #5f7a73;
    margin-bottom: 5px;
}

.banner-text p {
    font-size: 12px;
    color: #666;
}

.banner-btn {
    background: #5f7a73;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* 菜單列表 */
.menu-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #f9f9f9;
}

.menu-icon {
    font-size: 20px;
    margin-right: 15px;
}

.menu-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.menu-arrow {
    color: #ccc;
    font-size: 20px;
}

/* 登出按鈕 */
.logout-btn {
    width: 100%;
    padding: 15px;
    background: white;
    color: #ff6b6b;
    border: none;
    border-radius: 15px;
    font-size: 15px;
    cursor: pointer;
    margin: 20px 0;
}

/* 底部導航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    padding: 5px 20px;
}

.nav-item.active {
    color: #5f7a73;
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-icon-large {
    font-size: 28px;
    background: linear-gradient(135deg, #5f7a73 0%, #4a635d 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -25px;
    box-shadow: 0 2px 10px rgba(45, 212, 191, 0.4);
}

.nav-center {
    color: #5f7a73;
}

.nav-label {
    font-size: 11px;
}

/* 彈窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    padding: 30px 25px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.modal-close:active {
    transform: scale(0.95);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* 登入標籤 */
.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    color: #999;
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

.login-tab.active {
    color: #5f7a73;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #5f7a73;
}

/* 表單 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
}

.form-group input:focus {
    outline: none;
    border-color: #5f7a73;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.country-code {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: white;
}

.phone-input input {
    flex: 1;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5f7a73 0%, #4a635d 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.login-footer a {
    color: #5f7a73;
    text-decoration: none;
    font-size: 14px;
}

/* 社群登入 */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: white;
}

.social-btn.line {
    background: #06c755;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.google {
    background: #ea4335;
}

/* 官網會員提示 */
.shop-member-hint {
    margin-top: 25px;
    padding: 15px;
    background: #f0fdfa;
    border-radius: 10px;
    text-align: center;
}

.shop-member-hint p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.shop-member-hint a {
    color: #5f7a73;
    text-decoration: none;
    font-weight: 500;
}

/* 歷史記錄區塊 */
.history-section {
    padding: 15px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px 10px;
}

.section-header h2 {
    flex: 1;
    text-align: center;
    margin-right: 40px;
}

.history-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.history-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.history-item:last-child {
    border-bottom: none;
}

.history-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.history-info {
    flex: 1;
}

.history-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.history-score {
    font-size: 18px;
    font-weight: bold;
    color: #5f7a73;
}

.history-concerns {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 空狀態 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state span {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

/* 響應式 */
@media (max-width: 380px) {
    .feature-cards {
        flex-wrap: wrap;
    }

    .feature-card {
        flex: 1 1 45%;
    }

    .social-buttons {
        flex-wrap: wrap;
    }

    .social-btn {
        flex: 1 1 100%;
    }
}
