* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    /* Background for desktop centering */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
}

.app-container {
    width: 100%;
    max-width: 390px;
    height: 100vh;
    max-height: 844px;
    background-color: #f4f5f7;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header Area Gradient */
.top-bg-area {
    background: linear-gradient(135deg, #f8f9fc 0%, #eff2f9 100%);
    padding-bottom: 24px;
}

/* Status Bar */
.status-bar {
    height: 47px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-top: 5px;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.battery {
    width: 24px;
    height: 12px;
    border: 1px solid #111;
    border-radius: 4px;
    position: relative;
    padding: 1px;
    margin-left: 2px;
}

.battery-body {
    width: 100%;
    height: 100%;
    background-color: #111;
    border-radius: 1.5px;
}

.battery-tip {
    position: absolute;
    right: -3.5px;
    top: 3px;
    width: 2.5px;
    height: 4px;
    background-color: #111;
    border-radius: 0 2px 2px 0;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 8px;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-title {
    font-size: 22px;
    font-weight: bold;
    color: #111;
}

.header-right {
    display: flex;
    gap: 18px;
    color: #333;
}

.header-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* A tiny red dot on the right-most icon in header */
.header-right .header-icon:last-child::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #ff4d4f;
    border-radius: 50%;
    border: 1.5px solid #edf1f8;
}

/* Main Content Container */
.main-content-container {
    flex: 1;
    background-color: #f4f5f7;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    margin-top: -16px;
    /* Overlap with header area */
    padding-bottom: 80px;
    /* space for bottom nav */
}

/* Search Bar */
.search-container {
    padding: 16px 16px 8px;
    background-color: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.search-box {
    background-color: #f2f3f5;
    height: 36px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 15px;
}

/* List Sections */
.list-section {
    background-color: #ffffff;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #fff;
    cursor: pointer;
}

.list-item:active {
    background-color: #f9f9f9;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-text {
    font-size: 16px;
    color: #222;
}

.item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-text {
    font-size: 13px;
    color: #888;
}

.avatar-group {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 4px;
}

.section-title svg {
    margin-right: 2px;
}

.pending-badge {
    background: linear-gradient(135deg, #ff7875 0%, #ff4d4f 100%);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(255, 77, 79, 0.2);
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

/* 小尾巴效果，增强气泡感 */
.pending-badge::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 4px 6px 4px 0;
    border-style: solid;
    border-color: transparent #ff7875 transparent transparent;
}

.mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    background-color: #eee;
}

.mini-avatar:first-child {
    margin-left: 0;
}

.red-dot-small {
    width: 8px;
    height: 8px;
    background-color: #ff4d4f;
    border-radius: 50%;
    position: absolute;
    right: -2px;
    top: -2px;
    border: 1px solid #fff;
}

/* Divider for items */
.item-divider-wrap {
    padding-left: 52px;
    background-color: #fff;
}

.item-divider {
    height: 0.5px;
    background-color: #f0f0f0;
}

/* Section divider */
.section-divider {
    height: 10px;
    background-color: #f4f5f7;
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 84px;
    /* include bottom safe area */
    background-color: #fbfbfc;
    display: flex;
    justify-content: space-around;
    padding-top: 8px;
    padding-bottom: 24px;
    /* safe area padding */
    border-top: 0.5px solid #e5e5e5;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #000;
    /* inactive color */
    flex: 1;
    cursor: pointer;
}

.nav-item.active {
    color: #00a4ff;
    /* QQ Blue */
}

.nav-icon-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-text {
    font-size: 11px;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: -6px;
    right: -12px;
    background-color: #ff503e;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
    height: 16px;
    border-radius: 8px;
    border: 1.5px solid #fff;
    line-height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.red-dot {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 10px;
    height: 10px;
    background-color: #ff503e;
    border-radius: 50%;
    border: 1.5px solid #fff;
}

/* --- QQ Campus AI Page Styles --- */
.campus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 8px;
    background-color: #f8f9fc;
}

.campus-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #111;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.campus-title {
    font-size: 18px;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.ai-hero-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #eff2f9 100%);
    padding: 20px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-greeting {
    font-size: 20px;
    font-weight: bold;
    color: #111;
    margin-bottom: 20px;
    align-self: flex-start;
}

.ai-input-box {
    width: 100%;
    height: 50px;
    background-color: #fff;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 15px rgba(0, 164, 255, 0.1);
    border: 1px solid rgba(0, 164, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-input-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 164, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.ai-input-box input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 15px;
    background: transparent;
    color: #333;
    padding-left: 10px;
}

.ai-input-box input::placeholder {
    color: #999;
}

.ai-tags {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 5px;
}

.ai-tag {
    background-color: rgba(0, 164, 255, 0.1);
    color: #00a4ff;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 13px;
    white-space: nowrap;
}

.campus-content {
    flex: 1;
    background-color: #f4f5f7;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: -20px;
    padding: 24px 20px 40px;
    overflow-y: auto;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
    position: relative;
}

.summary-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    background-color: #00a4ff;
    border-radius: 0 4px 4px 0;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-source {
    font-weight: 600;
    color: #333;
}

.summary-time {
    color: #999;
    font-size: 12px;
}

.summary-body {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.summary-action {
    margin-top: 10px;
    color: #00a4ff;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 0;
    width: 2px;
    background-color: #eaeaea;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #f4f5f7;
    z-index: 1;
}

.dot-red {
    background-color: #ff4d4f;
}

.dot-yellow {
    background-color: #faad14;
}

.dot-blue {
    background-color: #1890ff;
}

.timeline-time {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.timeline-card {
    background-color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.timeline-title {
    font-size: 15px;
    color: #111;
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.ecosystem-grid {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.eco-item {
    flex: 1;
    background-color: #fff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.eco-item span {
    font-size: 12px;
    color: #333;
}

/* Calendar Strip */
.calendar-strip {
    background-color: #f8f9fc;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    z-index: 2;
    position: relative;
}

.cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #888;
    cursor: pointer;
}

.cal-dow {
    font-size: 12px;
}

.cal-date {
    font-size: 16px;
    font-weight: 500;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.cal-day.active {
    color: #00a4ff;
}

.cal-day.active .cal-date {
    background-color: #00a4ff;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 164, 255, 0.3);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background-color: #f0f2f5;
    border-radius: 6px;
    padding: 2px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn.active {
    background-color: #fff;
    color: #00a4ff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Schedule Card (List View) */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.schedule-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.sc-time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 45px;
}

.sc-start {
    font-size: 18px;
    font-weight: bold;
    color: #111;
}

.sc-end {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.sc-divider {
    width: 4px;
    border-radius: 2px;
    background-color: #1890ff;
    /* Blue for classes, can override */
}

.sc-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.sc-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.sc-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Timetable View */
.timetable-container {
    display: flex;
    background-color: #fff;
    border-radius: 16px;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    height: 380px;
    /* viewport for schedule */
    overflow-y: auto;
    overflow-x: hidden;
}

.time-axis {
    width: 50px;
    position: relative;
    height: 780px;
    /* 13 hours * 60px */
}

.time-slot {
    position: absolute;
    width: 100%;
    text-align: right;
    padding-right: 10px;
    font-size: 11px;
    color: #999;
    transform: translateY(-50%);
    /* align text center to grid line */
}

.events-board {
    flex: 1;
    position: relative;
    height: 780px;
    border-left: 1px solid #f0f0f0;
}

.grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #f0f0f0;
}

.current-time-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background-color: #ff4d4f;
    z-index: 5;
}

.ctl-dot {
    position: absolute;
    left: -4px;
    top: -3.5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ff4d4f;
}

.event-block {
    position: absolute;
    /* removed fixed left/right, let width/left handle parallel columns */
    border-radius: 8px;
    padding: 6px 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.blue-event {
    background-color: rgba(24, 144, 255, 0.1);
    border-left: 3px solid #1890ff;
}

.blue-event .eb-title {
    color: #0050b3;
}

.blue-event .eb-time,
.blue-event .eb-loc {
    color: #1890ff;
}

.yellow-event {
    background-color: rgba(250, 173, 20, 0.1);
    border-left: 3px solid #faad14;
}

.yellow-event .eb-title {
    color: #ad6800;
}

.yellow-event .eb-time,
.yellow-event .eb-loc {
    color: #faad14;
}

.green-event {
    background-color: rgba(82, 196, 26, 0.1);
    border-left: 3px solid #52c41a;
}

.green-event .eb-title {
    color: #237804;
}

.green-event .eb-time,
.green-event .eb-loc {
    color: #52c41a;
}

.eb-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.eb-time,
.eb-loc {
    font-size: 11px;
    opacity: 0.8;
}

/* Pending Card */
.pending-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    border: 1px solid rgba(250, 173, 20, 0.2);
}

.pending-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
    color: #999;
}

.pending-body {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.pending-event-title {
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin-bottom: 6px;
}

.pending-event-time,
.pending-event-loc {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.pending-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-reject {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
}

.btn-accept {
    background-color: #00a4ff;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 164, 255, 0.2);
}

/* Floating Add FAB */
.floating-add-fab {
    position: fixed;
    bottom: 110px;
    /* adjusted for bottom nav */
    right: 50%;
    margin-right: -170px;
    /* Offset for container width / max width */
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 390px) {
    .floating-add-fab {
        right: 20px;
        margin-right: 0;
    }
}

.campus-content {
    padding-bottom: 90px;
}

/* Event Detail Modal (Bottom Sheet) */
.modal-overlay {
    position: absolute;
    /* use absolute within .app-container */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.bottom-sheet {
    background-color: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px 20px 30px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.bs-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    margin-bottom: 16px;
}

.bs-drag-handle {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: #e5e5e5;
    border-radius: 2px;
}

.bs-close {
    background: #f0f2f5;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bs-event-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.bs-event-time {
    font-size: 16px;
    color: #00a4ff;
    font-weight: 600;
    margin-bottom: 20px;
}

.bs-info-group {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.bs-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #444;
    font-size: 14px;
}

.editable-notes-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    cursor: pointer;
    border-radius: 4px;
    padding: 0 4px;
    margin-left: -4px;
    transition: background-color 0.2s;
}

.editable-notes-wrapper:hover {
    background-color: rgba(0, 164, 255, 0.05);
}

.editable-notes-wrapper:hover .edit-pen-icon {
    stroke: #00a4ff;
}

.edit-pen-icon {
    margin-top: 2px;
    flex-shrink: 0;
    transition: stroke 0.2s;
}

.notes-edit-input {
    flex: 1;
    border: 1px solid #00a4ff;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 14px;
    color: #444;
    outline: none;
    line-height: 1.4;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px rgba(0, 164, 255, 0.1);
}

.sys-source-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(82, 196, 26, 0.08);
    border: 1px solid rgba(82, 196, 26, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #389e0d;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.ai-source-card {
    background: linear-gradient(to right bottom, rgba(0, 164, 255, 0.05), rgba(0, 164, 255, 0.02));
    border: 1px solid rgba(0, 164, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
}

.ai-source-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.ai-source-label {
    font-size: 13px;
    font-weight: 600;
    color: #00a4ff;
}

.ai-source-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 2px;
}

.ai-source-link {
    color: #00a4ff;
    text-decoration: none;
    font-weight: 500;
}

.ai-source-link:hover {
    text-decoration: underline;
}

.ai-source-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 16px;
    padding: 12px 14px;
    background-color: rgba(0, 164, 255, 0.04);
    border-radius: 8px;
    border-left: 3px solid #00a4ff;
}

.ai-btn-verify {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #00a4ff;
    color: #00a4ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-btn-verify:active {
    background-color: #e6f7ff;
}

/* Create Schedule Form */
.form-input-lg {
    width: 100%;
    border: none;
    font-size: 22px;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
    outline: none;
    margin-bottom: 24px;
    background: transparent;
}

.form-input-lg::placeholder {
    color: #ccc;
    font-weight: 500;
}

.form-group-inline {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.fg-icon {
    padding-top: 14px;
}

.fg-content {
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 0 16px;
}

.time-picker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.tp-label {
    font-size: 16px;
    color: #333;
}

.time-input {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #00a4ff;
    outline: none;
}

.form-input-inline {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 14px 0;
    outline: none;
}

.form-input-inline::placeholder {
    color: #aaa;
}

.btn-primary-large {
    width: 100%;
    background-color: #00a4ff;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

.btn-primary-large:active {
    background-color: #008cd9;
}

/* Settings Modal */
.settings-section {
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
    padding-left: 4px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 14px 16px;
    margin-bottom: 2px;
}

.settings-item:first-of-type {
    border-radius: 12px 12px 0 0;
}

.settings-item:last-of-type {
    border-radius: 0 0 12px 12px;
}

.settings-item:first-of-type:last-of-type {
    border-radius: 12px;
}

.settings-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-item-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.settings-item-desc {
    font-size: 12px;
    color: #999;
}

.add-source-item {
    justify-content: flex-start;
    gap: 8px;
    color: #00a4ff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.add-source-item:active {
    background-color: #e6f7ff;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e5e5;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: #34C759;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 26px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Auth Buttons */
.btn-auth {
    background-color: transparent;
    color: #00a4ff;
    border: 1px solid #00a4ff;
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.btn-auth:active {
    background-color: rgba(0, 164, 255, 0.1);
}

.btn-auth.auth-success {
    border-color: #d9d9d9;
    color: #999;
    background-color: transparent;
}

/* FAB Menu */
.fab-menu {
    position: fixed;
    bottom: 150px;
    right: 50%;
    margin-right: -170px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 99;
}
@media (max-width: 390px) {
    .fab-menu {
        right: 20px;
        margin-right: 0;
    }
}
.fab-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    animation: slideUpFade 0.2s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}
.fab-menu-item:nth-child(1) { animation-delay: 0.05s; }
.fab-menu-item:nth-child(2) { animation-delay: 0s; }

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

.fab-menu-text {
    background-color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.fab-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
}

/* Activity View (Alipay Style) */
.view-activity {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.activity-header {
    background: linear-gradient(135deg, #e6f7ff 0%, #ffffff 100%);
    padding: 20px 16px 10px;
    margin-bottom: 12px;
}
.activity-title {
    font-size: 18px;
    font-weight: bold;
    color: #111;
}
.activity-section {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin: 0 16px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.section-title-act {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}
.section-title-act h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #111;
}
.section-title-act span {
    font-size: 12px;
    color: #00a4ff;
    background: #e6f7ff;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Daily Picks */
.daily-picks-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.daily-picks-scroll::-webkit-scrollbar { display: none; }
.pick-card {
    flex: 0 0 100px;
    background: linear-gradient(180deg, #fffcf0 0%, #fff 100%);
    border: 1px solid #fff1b8;
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pick-card:nth-child(1) { background: linear-gradient(180deg, #f0f5ff 0%, #fff 100%); border-color: #d6e4ff; }
.pick-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}
.pick-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
}
.pick-desc {
    font-size: 11px;
    color: #fa541c;
    margin-bottom: 10px;
}
.pick-btn {
    border: none;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.pick-btn.dark-btn { background: #333; color: #fff; }
.pick-btn.primary-btn { background: #ff4d4f; color: #fff; }

/* Brand Icons */
.brand-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.b-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.b-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.b-icon-item span { font-size: 12px; color: #333; }

/* Brand Coupons */
.brand-coupons-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.brand-coupons-scroll::-webkit-scrollbar { display: none; }
.b-coupon-card {
    flex: 0 0 130px;
    background: #fffcf0;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.b-coupon-tag {
    position: absolute;
    top: 0; left: 0;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px 0 12px 0;
}
.b-coupon-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 12px 0 8px;
    color: #ff4d4f;
}
.b-c-left { font-size: 20px; font-weight: bold; }
.b-c-right { font-size: 12px; font-weight: 500; }
.b-c-title {
    font-size: 12px;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.b-c-btn {
    background: #ff4d4f;
    color: #fff;
    border: none;
    padding: 6px 0;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    width: 100%;
}

/* Recommend Tabs */
.recommend-tabs {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
    padding: 0 16px;
}
.recommend-tabs::-webkit-scrollbar { display: none; }
.r-tab {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    padding-bottom: 4px;
}
.r-tab.active {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    position: relative;
}
.r-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #00a4ff;
    border-radius: 2px;
}
.recommend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px;
}
.r-card {
    border-radius: 12px;
    overflow: hidden;
    height: 120px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.r-card-tag {
    position: absolute;
    top: 10px; left: 10px;
    font-weight: 800;
    font-size: 18px;
    color: #fa541c;
}
.r-card-sub {
    position: absolute;
    top: 35px; left: 10px;
    font-size: 12px;
    color: #666;
    background: rgba(255,255,255,0.6);
    padding: 1px 4px;
    border-radius: 4px;
}
.r-card-icon {
    position: absolute;
    bottom: -15px; right: -10px;
    font-size: 50px;
    opacity: 0.9;
}
.r-card-title {
    position: absolute;
    bottom: 10px; left: 10px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    z-index: 2;
}

.view-more-container {
    display: flex;
    justify-content: center;
    padding: 16px 0 20px;
}
.view-more-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    border-radius: 20px;
    padding: 6px 16px;
}
.view-more-btn:active {
    background: rgba(0,0,0,0.05);
}

/* Home View Styles */
.view-home {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.upcoming-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.upcoming-scroll::-webkit-scrollbar { display: none; }
.upcoming-card {
    flex: 0 0 160px;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.uc-time {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}
.uc-title {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uc-loc {
    font-size: 11px;
    color: #666;
}
.uc-countdown {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: bold;
    color: #1890ff;
    background: rgba(255,255,255,0.6);
    padding: 2px 6px;
    border-radius: 8px;
}

/* Home AI Chat */
.ai-chat-container {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,164,255,0.06);
    border: 1px solid rgba(0,164,255,0.1);
}
.ai-greeting-home {
    font-size: 15px;
    font-weight: bold;
    color: #111;
    margin-bottom: 12px;
}
.ai-input-home {
    display: flex;
    align-items: center;
    background: #f5f8fa;
    border-radius: 20px;
    padding: 4px 4px 4px 16px;
    margin-bottom: 12px;
}
.ai-input-home input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
}
.ai-send-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.ai-suggestions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ai-suggestions::-webkit-scrollbar { display: none; }
.ai-sug-tag {
    font-size: 12px;
    color: #00a4ff;
    background: #e6f7ff;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Playbook Grid */
.playbook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.playbook-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pb-icon {
    font-size: 24px;
}
.pb-title {
    font-size: 14px;
    font-weight: bold;
    color: #222;
}
.pb-desc {
    font-size: 12px;
    color: #888;
}