* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

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

/* Header Navigation */
.nav-tabs {
    display: flex;
    background: white;
    border-radius: 25px;
    padding: 4px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-tab {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-tab.active {
    background: linear-gradient(135deg, #007AFF, #00C7FF);
    color: white;
}

.nav-tab:not(.active) {
    color: #666;
}

.nav-tab:not(.active):hover {
    background: #f0f0f0;
}

.nav-subtitle {
    font-size: 12px;
    margin-top: 2px;
    opacity: 0.8;
}

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 30px;
}

.search-bar {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 25px;
    background: white;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #007AFF, #00C7FF);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}

/* Price Filter Buttons */
.price-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.price-btn {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.price-btn:hover {
    border-color: #007AFF;
    color: #007AFF;
    transform: translateY(-2px);
}

.price-btn.active {
    background: linear-gradient(135deg, #007AFF, #00C7FF);
    color: white;
    border-color: #007AFF;
}

.price-btn.clear {
    background: #f5f5f5;
    border-color: #d0d0d0;
    color: #999;
}

.price-btn.clear:hover {
    background: #e0e0e0;
    border-color: #bbb;
    color: #666;
}

/* Package Cards */
.packages-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    list-style: none;
}

.package-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.package-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.f1 {
    display: flex;
    padding: 20px;
    align-items: center;
}

.f1 dt {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    flex-shrink: 0;
}

.f1 dt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.f1 dd {
    flex: 1;
}

.f1 dd h1 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.b1 {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.zhutui {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.xl, .yr {
    background: #E8F4FF;
    color: #007AFF;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.b2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.b2 span {
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 15px;
}

.b2 span:before {
    content: "●";
    color: #007AFF;
    position: absolute;
    left: 0;
}

.f2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.b3 {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.b4 {
    background: linear-gradient(135deg, #007AFF, #00C7FF);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.b4:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,122,255,0.3);
}

.rebate-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.rebate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: "...";
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

/* Desktop optimizations */
@media (min-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .package-card {
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .package-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .f1 {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px 14px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .f1 dt {
        width: 160px;
        margin-bottom: 8px;
        margin-right: 0;
        align-self: center;
    }

    .f1 dd {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .f1 dd h1 {
        font-size: 14px;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.3;
    }

    .b1 {
        justify-content: center;
        margin-bottom: 10px;
        gap: 5px;
    }

    .b1 .zhutui {
        background: #e74c3c;
        color: white;
        padding: 2px 6px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 500;
    }

    .b1 .xl, .b1 .yr {
        background: #ecf0f1;
        color: #34495e;
        padding: 2px 6px;
        border-radius: 8px;
        font-size: 10px;
        font-weight: 500;
    }

    .b2 {
        align-items: center;
        gap: 6px;
        margin-bottom: 0;
        flex: 1;
        justify-content: center;
    }

    .b2 span {
        font-size: 12px;
        color: #7f8c8d;
        text-align: center;
        padding-left: 0;
        line-height: 1.4;
    }

    .b2 span:before {
        display: none;
    }

    .f2 {
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
        border-top: 1px solid #ecf0f1;
        background: #fafbfc;
        margin-top: auto;
    }

    .action-buttons {
        justify-content: center;
        width: 100%;
        gap: 8px;
    }

    .b3 {
        font-size: 16px;
        font-weight: 700;
        color: #e74c3c;
        text-align: center;
    }

    .b4, .rebate-btn {
        font-size: 12px;
        padding: 8px 16px;
        border-radius: 12px;
        font-weight: 600;
        transition: background-color 0.2s ease;
        flex: 1;
        text-align: center;
    }

    .b4 {
        background: #3498db;
        color: white;
    }

    .b4:hover {
        background: #2980b9;
        transform: none;
        box-shadow: none;
    }

    .rebate-btn:hover {
        background: #c0392b;
        transform: none;
        box-shadow: none;
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .container {
        padding: 15px;
    }

    .nav-tabs {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        background: white;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-tab {
        flex: none;
        padding: 10px 15px;
        border-radius: 15px;
        font-size: 14px;
        font-weight: 500;
        color: #666;
        margin: 5px;
    }

    .nav-tab.active {
        background: #007AFF;
        color: white;
    }

    .f1 dt {
        width: 80px;
        height: 80px;
        margin-right: 10px;
    }

    .f1 dd h1 {
        font-size: 14px;
    }

    .b1 span {
        font-size: 10px;
    }

    .b2 span {
        font-size: 12px;
    }

    .f2 {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .action-buttons {
        gap: 8px;
    }

    .b3 {
        font-size: 12px;
        width: 50%;
    }

    .b4, .rebate-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .price-filter {
        margin-bottom: 20px;
        gap: 8px;
    }

    .price-btn {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 15px;
    }
}

/* 移动端隐藏日期按钮，仅保留状态与搜索 */
@media (max-width: 767px) {
	.change-toolbar .date-btn {
		display: none;
	}
}

/* Change Toolbar */
.change-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	white-space: nowrap;
	margin-bottom: 16px;
}

.change-toolbar .date-btn {
	flex: none;
}

.status-select {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	padding: 8px 12px;
	color: #666;
	font-size: 14px;
}

.change-search {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	padding: 8px 12px;
	min-width: 160px;
	color: #333;
}

.change-search:focus {
	outline: none;
	border-color: #007AFF;
	box-shadow: 0 0 0 3px rgba(0,122,255,0.08);
}

.change-search-btn {
	background: linear-gradient(135deg, #007AFF, #00C7FF);
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 20px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s ease;
}

.change-search-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,122,255,0.25);
}

@media (max-width: 767px) {
	.change-toolbar {
		gap: 6px;
		margin-bottom: 12px;
	}
	.status-select,
	.change-search {
		padding: 6px 10px;
		font-size: 13px;
	}
	.change-search {
		min-width: 120px;
	}
	.change-search-btn {
		padding: 6px 10px;
		font-size: 13px;
	}
}

/* Header Banner */
.header-banner {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.banner-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.banner-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 400;
}

.banner-warning {
    font-size: 13px;
    color: #999;
    margin-bottom: 28px;
    font-weight: 400;
}

.banner-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #f5f5f5;
    padding-top: 24px;
}

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

.stat-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 400;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Mobile optimizations for banner */
@media (max-width: 767px) {
    .header-banner {
        padding: 24px;
        margin-bottom: 24px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .banner-warning {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .banner-stats {
        padding-top: 20px;
        gap: 0;
    }

    .stat-value {
        font-size: 16px;
    }

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

/* Announcement Bar Styles */
.announcement-bar {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.announcement-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.announcement-icon {
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
    /* overflow: hidden; */
}

.announcement-text {
    white-space: nowrap;
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* animation: scroll-text 15s linear infinite; */
}

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

.announcement-action {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    margin-left: 12px;
    flex-shrink: 0;
}

.announcement-action .arrow {
    margin-left: 4px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.announcement-bar:hover .arrow {
    transform: translateX(3px);
}

/* Modal Styles */
.announcement-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #666;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Date Filter */
.date-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.date-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.date-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.date-btn.active {
    background: linear-gradient(135deg, #007AFF, #00C7FF);
    color: white;
    border-color: #007AFF;
}

/* Changes Container */
.changes-container {
    margin-bottom: 20px;
}

.change-group {
    margin-bottom: 24px;
}

.change-date {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 2px solid #f0f0f0;
}

.change-item {
    background: #fafbfc;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.change-item:hover {
    border-color: #007AFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.1);
}

.change-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.change-message {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

.change-category {
    display: inline-block;
    background: #E8F4FF;
    color: #007AFF;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.page-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #e0e0e0;
    color: #333;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Mobile optimizations for announcement */
@media (max-width: 767px) {
    .announcement-bar {
        padding: 10px 12px;
        margin-bottom: 16px;
    }

    .announcement-icon {
        font-size: 16px;
        margin-right: 8px;
    }

    .announcement-text {
        font-size: 13px;
    }

    .announcement-action {
        font-size: 11px;
        margin-left: 8px;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 20px;
        max-height: 65vh;
    }

    .date-filter {
        gap: 6px;
        margin-bottom: 16px;
    }

    .date-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .change-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    .change-message {
        font-size: 13px;
    }

    .pagination {
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}
