body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F4F4F6;
    color: #333;
}

.container {
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #FEDFE1, #F4F4F6 30%);
    min-height: 100vh;
    padding: 15px;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #888;
}

.back-button,
.share-button {
    cursor: pointer;
    font-size: 24px;
}

.share-button img {
    width: 24px;
    height: 24px;
}

.main-header {
    padding: 20px 0;
    position: relative;
}

.title-section {
    display: flex;
    align-items: flex-start;
}

.title-section h1 {
    font-size: 32px;
    font-weight: bold;
    color: #D93A54;
    margin: 0;
}

.date {
    background-color: #D93A54;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.2;
    margin-left: 10px;
}

.subtitle {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

.fire-icon {
    position: absolute;
    top: 20px;
    right: 70px;
}

.fire-icon img {
    width: 60px;
    height: 60px;
    opacity: 0.8;
}

.update-badge {
    position: absolute;
    top: 30px;
    right: 0;
    background-color: #FCEFF1;
    color: #D93A54;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.update-badge .dot {
    width: 6px;
    height: 6px;
    background-color: #D93A54;
    border-radius: 50%;
    margin-right: 5px;
}

.card {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tab-section {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 15px;
}

.tab {
    padding: 0 20px 10px;
    cursor: pointer;
    color: #888;
    position: relative;
}

.tab.active {
    color: #D93A54;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #D93A54;
    border-radius: 2px;
}

.description {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.description .small {
    font-size: 12px;
    color: #AAA;
}

.ranking-list {
    margin-top: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
}

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

.rank {
    font-size: 18px;
    font-weight: bold;
    width: 30px;
    text-align: center;
}

.rank-1 { color: #FF4C4C; }
.rank-2 { color: #FF8A4C; }
.rank-3 { color: #FFC14C; }
.rank-other { color: #B0B0B0; }

.content {
    flex: 1;
    margin: 0 10px;
}

.title {
    font-size: 16px;
}

.heat {
    font-size: 12px;
    color: #D93A54;
    white-space: nowrap;
}

.action-button {
    background-color: #FCEFF1;
    color: #D93A54;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
}

/* Detail Page */
.detail-page {
    background: linear-gradient(to bottom, #D93A54, #F4F4F6 30%);
}

.main-header-detail {
    position: relative;
    padding: 20px 0;
    color: white;
}

.ai-icon-detail {
    background-color: rgba(255, 255, 255, 0.2);
    width: 100px;
    height: 100px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-icon-detail h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.stock-info {
    position: absolute;
    top: 40px;
    right: 0;
    text-align: right;
}

.stock-name { font-size: 14px; opacity: 0.8; }
.stock-value { font-size: 24px; font-weight: bold; margin: 5px 0; }
.stock-change { font-size: 14px; font-weight: bold; }

.detail-card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.detail-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

.detail-subtitle {
    font-size: 16px;
    color: #666;
    margin: 5px 0 15px;
}

.heat-badge {
    display: inline-flex;
    align-items: center;
    background-color: #FCEFF1;
    color: #D93A54;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.heat-badge img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.detail-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.efficient-reading {
    background-color: #F7F7F7;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    position: relative;
}

.efficient-reading::before {
    content: '“';
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 40px;
    color: #E0E0E0;
    line-height: 1;
}

.efficient-reading::after {
    content: '”';
    position: absolute;
    bottom: -15px;
    right: 10px;
    font-size: 40px;
    color: #E0E0E0;
    line-height: 1;
}

.reading-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.efficient-reading p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.disclaimer {
    font-size: 12px;
    color: #AAA;
    text-align: center;
    margin-top: 20px;
}

.related-news {
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.view-more {
    font-size: 14px;
    color: #AAA;
    text-decoration: none;
}

.news-item {
    padding: 15px 0 5px;
    border-top: 1px solid #F0F0F0;
}

.news-source {
    font-size: 16px;
    color: #333;
}

.news-source::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #FFC14C;
    margin-right: 10px;
    vertical-align: middle;
}
