|
@@ -0,0 +1,539 @@
|
|
|
|
+:host {
|
|
|
|
+ --primary: #ff6b6b;
|
|
|
|
+ --primary-light: #ff8e8e;
|
|
|
|
+ --primary-dark: #e55a5a;
|
|
|
|
+ --secondary: #4ecdc4;
|
|
|
|
+ --dark: #333;
|
|
|
|
+ --gray: #666;
|
|
|
|
+ --light-gray: #f5f5f5;
|
|
|
|
+ --white: #fff;
|
|
|
|
+ --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
|
|
+ --transition: all 0.3s ease;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+* {
|
|
|
|
+ margin: 0;
|
|
|
|
+ padding: 0;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
|
|
|
|
+ -webkit-tap-highlight-color: transparent;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+body {
|
|
|
|
+ background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
|
|
|
|
+ color: var(--dark);
|
|
|
|
+ line-height: 1.6;
|
|
|
|
+ padding-bottom: 80px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.container {
|
|
|
|
+ width: 100%;
|
|
|
|
+ max-width: 480px;
|
|
|
|
+ margin: 0 auto;
|
|
|
|
+ padding: 0 15px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Header Styles */
|
|
|
|
+header {
|
|
|
|
+ background: var(--white);
|
|
|
|
+ padding: 15px 0 10px;
|
|
|
|
+ position: sticky;
|
|
|
|
+ top: 0;
|
|
|
|
+ z-index: 100;
|
|
|
|
+ box-shadow: var(--card-shadow);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.header-container {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ align-items: center;
|
|
|
|
+ padding: 0 15px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.logo {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ gap: 8px;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ font-weight: 700;
|
|
|
|
+ color: var(--primary);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.logo i {
|
|
|
|
+ font-size: 22px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.user-actions {
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 15px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.icon-btn {
|
|
|
|
+ width: 36px;
|
|
|
|
+ height: 36px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ background: var(--light-gray);
|
|
|
|
+ color: var(--gray);
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ border: none;
|
|
|
|
+ transition: var(--transition);
|
|
|
|
+ cursor: pointer;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.icon-btn:hover {
|
|
|
|
+ background: var(--primary);
|
|
|
|
+ color: var(--white);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Featured Story */
|
|
|
|
+.featured-story {
|
|
|
|
+ margin: 15px;
|
|
|
|
+ position: relative;
|
|
|
|
+ border-radius: 15px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ box-shadow: var(--card-shadow);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.featured-image {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 200px;
|
|
|
|
+ background-size: cover;
|
|
|
|
+ background-position: center;
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.featured-image::after {
|
|
|
|
+ content: '';
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.featured-content {
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ padding: 20px;
|
|
|
|
+ color: var(--white);
|
|
|
|
+ z-index: 2;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.featured-tag {
|
|
|
|
+ background: var(--primary);
|
|
|
|
+ color: var(--white);
|
|
|
|
+ padding: 4px 12px;
|
|
|
|
+ border-radius: 20px;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.featured-title {
|
|
|
|
+ font-size: 22px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.featured-desc {
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ opacity: 0.9;
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
+ display: -webkit-box;
|
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.featured-stats {
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 15px;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ opacity: 0.9;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Category Navigation */
|
|
|
|
+.category-nav {
|
|
|
|
+ background: var(--white);
|
|
|
|
+ border-radius: 12px;
|
|
|
|
+ margin: 15px;
|
|
|
|
+ padding: 15px 0;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-around;
|
|
|
|
+ box-shadow: var(--card-shadow);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.category-item {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ align-items: center;
|
|
|
|
+ gap: 8px;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ transition: var(--transition);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.category-item:hover {
|
|
|
|
+ transform: translateY(-5px);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.category-icon {
|
|
|
|
+ width: 50px;
|
|
|
|
+ height: 50px;
|
|
|
|
+ background: rgba(255, 107, 107, 0.1);
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ color: var(--primary);
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ transition: var(--transition);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.category-item.active .category-icon {
|
|
|
|
+ background: var(--primary);
|
|
|
|
+ color: var(--white);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.category-text {
|
|
|
|
+ font-size: 13px;
|
|
|
|
+ color: var(--gray);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Story Section */
|
|
|
|
+.story-section {
|
|
|
|
+ background: var(--white);
|
|
|
|
+ border-radius: 15px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ box-shadow: var(--card-shadow);
|
|
|
|
+ margin: 15px;
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-header {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ align-items: center;
|
|
|
|
+ padding: 15px;
|
|
|
|
+ border-bottom: 1px solid #f0f0f0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-header h2 {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ color: var(--dark);
|
|
|
|
+ position: relative;
|
|
|
|
+ padding-left: 12px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-header h2::before {
|
|
|
|
+ content: '';
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
+ width: 4px;
|
|
|
|
+ height: 16px;
|
|
|
|
+ background: var(--primary);
|
|
|
|
+ border-radius: 2px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-header .more {
|
|
|
|
+ color: var(--gray);
|
|
|
|
+ font-size: 13px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Story Card */
|
|
|
|
+.story-card {
|
|
|
|
+ padding: 15px;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: column;
|
|
|
|
+ gap: 15px;
|
|
|
|
+ transition: var(--transition);
|
|
|
|
+ animation: fadeIn 0.5s ease forwards;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-card:hover {
|
|
|
|
+ transform: translateY(-3px);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-image {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 180px;
|
|
|
|
+ border-radius: 12px;
|
|
|
|
+ background-size: cover;
|
|
|
|
+ background-position: center;
|
|
|
|
+ position: relative;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ box-shadow: var(--card-shadow);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-image::after {
|
|
|
|
+ content: '';
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 50%);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-title {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ color: var(--white);
|
|
|
|
+ position: absolute;
|
|
|
|
+ bottom: 15px;
|
|
|
|
+ left: 15px;
|
|
|
|
+ z-index: 2;
|
|
|
|
+ max-width: 80%;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-meta {
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ color: var(--gray);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-stats {
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 15px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-stat {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ gap: 5px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-actions {
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 10px;
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.story-btn {
|
|
|
|
+ flex: 1;
|
|
|
|
+ padding: 10px 0;
|
|
|
|
+ border-radius: 20px;
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ transition: var(--transition);
|
|
|
|
+ border: none;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.read-btn {
|
|
|
|
+ background: var(--primary);
|
|
|
|
+ color: var(--white);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.read-btn:hover {
|
|
|
|
+ background: var(--primary-dark);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.share-btn {
|
|
|
|
+ background: rgba(255, 107, 107, 0.1);
|
|
|
|
+ color: var(--primary);
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ gap: 5px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.share-btn:hover {
|
|
|
|
+ background: rgba(255, 107, 107, 0.2);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Story Detail Modal */
|
|
|
|
+.modal-overlay {
|
|
|
|
+ position: fixed;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ background: rgba(0,0,0,0.7);
|
|
|
|
+ z-index: 1000;
|
|
|
|
+ display: none;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ padding: 20px;
|
|
|
|
+ opacity: 0;
|
|
|
|
+ transition: opacity 0.3s ease;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-overlay.active {
|
|
|
|
+ display: flex;
|
|
|
|
+ opacity: 1;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-content {
|
|
|
|
+ background: var(--white);
|
|
|
|
+ border-radius: 15px;
|
|
|
|
+ max-width: 100%;
|
|
|
|
+ max-height: 90vh;
|
|
|
|
+ overflow-y: auto;
|
|
|
|
+ width: 100%;
|
|
|
|
+ position: relative;
|
|
|
|
+ transform: translateY(20px);
|
|
|
|
+ transition: transform 0.3s ease;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-overlay.active .modal-content {
|
|
|
|
+ transform: translateY(0);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-header {
|
|
|
|
+ position: sticky;
|
|
|
|
+ top: 0;
|
|
|
|
+ background: var(--white);
|
|
|
|
+ padding: 15px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ align-items: center;
|
|
|
|
+ border-bottom: 1px solid #f0f0f0;
|
|
|
|
+ z-index: 2;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-title {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-close {
|
|
|
|
+ width: 30px;
|
|
|
|
+ height: 30px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ background: var(--light-gray);
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+ transition: var(--transition);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-close:hover {
|
|
|
|
+ background: var(--primary);
|
|
|
|
+ color: var(--white);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-body {
|
|
|
|
+ padding: 15px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-image {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 200px;
|
|
|
|
+ border-radius: 12px;
|
|
|
|
+ background-size: cover;
|
|
|
|
+ background-position: center;
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-story-title {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ margin-bottom: 10px;
|
|
|
|
+ color: var(--primary);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-story-content {
|
|
|
|
+ font-size: 15px;
|
|
|
|
+ line-height: 1.8;
|
|
|
|
+ color: var(--dark);
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-story-content p {
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-footer {
|
|
|
|
+ padding: 15px;
|
|
|
|
+ border-top: 1px solid #f0f0f0;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.modal-actions {
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 10px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Bottom Navigation */
|
|
|
|
+.bottom-nav {
|
|
|
|
+ position: fixed;
|
|
|
|
+ bottom: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ background: var(--white);
|
|
|
|
+ display: flex;
|
|
|
|
+ border-top: 1px solid #eee;
|
|
|
|
+ z-index: 100;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.nav-item {
|
|
|
|
+ flex: 1;
|
|
|
|
+ text-align: center;
|
|
|
|
+ padding: 12px 0;
|
|
|
|
+ color: var(--gray);
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ position: relative;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.nav-item.active {
|
|
|
|
+ color: var(--primary);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.nav-item.active::after {
|
|
|
|
+ content: '';
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 50%;
|
|
|
|
+ transform: translateX(-50%);
|
|
|
|
+ width: 30px;
|
|
|
|
+ height: 3px;
|
|
|
|
+ background: var(--primary);
|
|
|
|
+ border-radius: 3px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.nav-item i {
|
|
|
|
+ font-size: 20px;
|
|
|
|
+ margin-bottom: 4px;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Animation */
|
|
|
|
+@keyframes fadeIn {
|
|
|
|
+ from { opacity: 0; }
|
|
|
|
+ to { opacity: 1; }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+@keyframes slideUp {
|
|
|
|
+ from { transform: translateY(20px); opacity: 0; }
|
|
|
|
+ to { transform: translateY(0); opacity: 1; }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Responsive */
|
|
|
|
+@media (max-width: 480px) {
|
|
|
|
+ .category-icon {
|
|
|
|
+ width: 42px;
|
|
|
|
+ height: 42px;
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .featured-title {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .featured-desc {
|
|
|
|
+ font-size: 13px;
|
|
|
|
+ }
|
|
|
|
+}
|