  /* ===========================
   Reset and Base Styles
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===========================
   Layout Containers
=========================== */


.main-wrapper {
    min-height: calc(100vh - 64px - 60px); /* subtract header and footer heights */
    padding: 20px 0;
}

/* ===========================
   Navigation Styles
=========================== */
.nav-wrapper {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
}

/* Search Box */
.search-box {
    position: relative;
    width: 360px;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px #1a73e8;
}

.search-input {
    width: 100%;
    height: 36px;
    padding: 0 40px 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: transparent;
    outline: none;
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
}

.search-button:hover {
    color: #1a73e8;
}

/* Navigation Links */
.nav-right {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1a73e8;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a73e8;
}

/* ===========================
   Breadcrumb Navigation
=========================== */
.breadcrumb-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #1a73e8;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-item.current {
    color: #333;
    font-weight: 500;
}

/* ===========================
   Update Time Display
=========================== */
.update-time {
    font-size: 12px;
    color: #666;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
}

.update-time::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: #ddd;
    margin-right: 15px;
}

/* ===========================
   Footer
=========================== */
.footer {
    background: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
}

/* ===========================
   Utility Classes
=========================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }

/* ===========================
   Responsive Design
=========================== */
@media screen and (max-width: 768px) {
    .nav {
        flex-direction: column;
        height: auto;
        padding: 16px 20px;
        gap: 16px;
    }
    
    .nav-left {
        width: 100%;
        flex-direction: column;
        gap: 16px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .nav-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .breadcrumb {
        padding: 20px 16px;
        flex-wrap: wrap;
    }
}

/* ===========================
   End of styles.css
=========================== */
  /* 鍏ㄥ眬甯冨眬 */
.main-container {
    max-width: 1200px;
        margin: 0 auto;
    display: flex;
    gap: 20px;
}
body {
    padding-top: 70px;
}
@media (max-width: 768px) {
    body {
        padding-top: 0; /* 閫傜敤浜庣Щ鍔ㄧ */
    }
}
.main-container > .content-left {
    flex: 0 0 70%;
    min-width: 0; /*闃叉鍐呭婧㈠嚭*/
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.main-container > .content-right {
    flex: 0 0 30%;
    position: sticky;
    top: 84px; /* nav-wrapper height + 20px */
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto; /*鍐呭杩囧鏃跺彲浠ユ粴鍔�*/
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
}

.sidebar-placeholder {
    padding: 16px;
}

.sidebar-placeholder h3 {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-placeholder p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}


/* 澶撮儴鏍峰紡 */
.header {
    background: #fff;
    padding: 28px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.stock-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stock-title {
    font-size: 26px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.price-main {
    font-size: 36px;
    font-weight: bold;
    color: #1f2937;
}

.price-main.up { 
    color: #f43f5e; /* 涓婃定绾㈣壊 */
}

.price-main.down { 
    color: #10b981; /* 涓嬭穼缁胯壊 */
}

.price-change {
    font-size: 18px;
    font-weight: 500;
}

.price-change.up { 
    color: #f43f5e;
}

.price-change.down { 
    color: #10b981;
}

.detail-value.up{
    color: #f43f5e;
}

.detail-value.down{
    color: #10b981;
}

.update-time {
    font-size: 13px;
    color: #6b7280;
}

/* 鎿嶄綔鎸夐挳 */
.header-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-button {
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.action-button.leverage {
    background: #1a73e8;
    color: #fff;
}

.action-button.leverage:hover {
    background: #1557b0;
}

.action-button.ai {
    background: #34a853;
    color: #fff;
}

.action-button.ai:hover {
    background: #2d8a46;
}

/* 鑲＄エ璇︽儏鍖哄煙 */
.stock-details-section {
    background: #fff;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: -0.01em;
    border-bottom: 1px solid #e5e7eb;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #1a73e8, #34a853);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100px;
}


.stock-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.detail-label {
    font-size: 14px;
    color: #6b7280;
}

.detail-value {
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
}

/* Tabs鍖哄煙 */
/* 璇勮鍖哄煙鏍峰紡 */
/* 绉婚櫎杩欐浠ｇ爜 */

.comment-form {
    margin-bottom: 24px;
}

/*.comment-form textarea.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 12px;
}*/

.comment-submit {
    padding: 8px 24px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-submit:hover {
    background: #1557b0;
}

.comment-item {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
}

.comment-info {
    display: flex;
    flex-direction: column;
}

.comment-author {
    font-weight: 500;
    color: #1f2937;
}

.comment-time {
    font-size: 12px;
    color: #6b7280;
}

/* 淇℃伅灞曠ずTabs鏍峰紡 */
.info-tabs {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tab-menu {
    border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #1a73e8;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a73e8;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* 涓氬姟鍗＄墖鏍峰紡 */
.business-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.business-card {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    transition: transform 0.3s;
}

.business-card:hover {
    transform: translateY(-2px);
}


/* 璋冩暣Tab鍐呰瘎璁哄尯鏍峰紡 */
.tab-panel .comment-form {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.tab-panel .comments-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 16px;
}

.tab-panel .comment-item {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
}

/* 缇庡寲婊氬姩鏉� */
.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}





/* 鍝嶅簲寮忓竷灞€ */
@media screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 10px;
    }

    .content-left,
    .content-right {
        flex: 0 0 100%;
    }

    .header {
        padding: 20px;
    }

    .stock-title {
        font-size: 22px;
    }

    .price-main {
        font-size: 32px;
    }

    .price-change {
        font-size: 16px;
    }

    .stock-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-menu button {
        padding: 8px 24px;
        font-size: 13px;
    }
}

/* 璇勮妗嗘牱寮忎紭鍖� */
.comment-form textarea.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 12px;
    font-family: inherit; /* 娣诲姞瀛椾綋缁ф壙 */
    line-height: 1.5; /* 娣诲姞琛岄珮 */
    transition: border-color 0.3s; /* 娣诲姞杩囨浮鏁堟灉 */
}

.comment-form textarea.comment-textarea:focus {
    outline: none;
    border-color: #1a73e8; /* 娣诲姞鐒︾偣鐘舵€� */
    box-shadow: 0 0 0 2px rgba(26,115,232,0.1); /* 娣诲姞鐒︾偣鍏夋檿 */
}
  
  .stock-chart-container {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            margin: 20px 0;
            padding: 20px;
        }

        .stock-chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .stock-chart-title {
            font-size: 18px;
            font-weight: 600;
            color: #1f2937;
        }

        .stock-chart-period-selector {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .period-item {
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #f3f4f6;
            border: 1px solid transparent;
        }

        .period-item:hover {
            background: #e5e7eb;
        }

        .period-item.active {
            background: #2563eb;
            color: white;
            border-color: #1d4ed8;
        }

        .tradingview {
            width: 100%;
            height: 450px;
            border-radius: 4px;
            overflow: hidden;
        }

        .error-message {
            padding: 20px;
            text-align: center;
            color: #dc2626;
            background: #fee2e2;
            border-radius: 4px;
            margin: 10px 0;
        }

        /* 涨跌颜色样式 */
        .up {
            color: #ff3333;
        }
        .down {
            color: #33cc33;
        }

        .news-card {
            display: flex;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            margin: 20px 0;
            overflow: hidden;
            transition: transform 0.3s ease;
        }

        .news-card:hover {
            transform: translateY(-5px);
        }

        .news-image {
            width: 150px;
            height: 100px;
            object-fit: cover;
        }

        .news-content {
            padding-left: 15px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .news-title {
            font-size: 16px;
            font-weight: bold;
            color: #1f2937;
            margin: 0 0 10px;
        }

        .news-description {
            font-size: 14px;
            color: #4b5563;
            margin: 0 0 10px;
        }

        .news-link {
            font-size: 14px;
            color: #2563eb;
            text-decoration: none;
            align-self: flex-start;
            transition: color 0.3s ease;
        }

        .news-link:hover {
            color: #1d4ed8;
        }

        .related-info {
            background-color: #f9f9f9; /* Light background color */
            border-radius: 8px; /* Rounded corners */
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
            padding: 20px; /* Padding around the content */
            margin-top: 20px; /* Space above the section */
        }

        .related-info h3 {
            font-size: 18px; /* Larger font size for the title */
            font-weight: bold; /* Bold font weight */
            color: #1f2937; /* Dark color for the title */
            margin-bottom: 15px; /* Space below the title */
        }

        .related-info ul {
            list-style-type: none; /* Remove default list styling */
            padding: 0; /* Remove default padding */
            margin: 0; /* Remove default margin */
        }

        .related-info li {
            display: flex; /* Flexbox for alignment */
            align-items: center; /* Center items vertically */
            margin-bottom: 10px; /* Space between items */
            transition: transform 0.3s ease; /* Smooth transition for hover effect */
        }

        .related-info li:hover {
            transform: translateY(-5px); /* Lift effect on hover */
        }

        .related-info img {
            border-radius: 4px; /* Rounded corners for images */
            margin-right: 10px; /* Space between image and text */
        }

        .related-info .company_namer {
            font-size: 14px; /* Font size for company name */
            color: #4b5563; /* Gray color for text */
        }