/* 全局去除所有链接下划线 */
a {
    text-decoration: none !important;
}

/* 旗下产品特定样式 - 已修复对齐问题 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 10px;
    align-items: stretch; /* 确保所有项目等高 */
}

.products-grid a.product-item {
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 修改为顶部对齐 */
    padding: 10px;
    border-radius: 12px;
    background: var(--background-flz);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%; /* 确保所有项目等高 */
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.product-cover {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    flex-shrink: 0; /* 防止图标被压缩 */
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-heading-color);
    line-height: 1.4;
    margin-top: 8px;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    min-height: 40px; /* 确保标题区域有固定高度 */
    width: 100%; /* 确保标题区域宽度一致 */
}

.product-name a {
    color: inherit;
}

.product-name a:hover {
    color: #3498db;
}

/* 确保其他元素也不显示下划线 */
.chain-title, 
.product-name, 
.info-item, 
.btn,
.tool-tag {
    text-decoration: none !important;
}

.info-item {
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #495057;
}

.info-item i {
    margin-right: 4px;
    color: var(--bs-heading-color);
}

.update-time {
    margin-left: 0;
    color: var(--bs-heading-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    background: var(--background-color);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #91d5ff;
    font-weight: bold;
}

.update-time i {
    margin-right: 4px;
    color: var(--bs-heading-color);
}

.echo-link-info {
    display: flex;
    padding: 30px;
    background: var(--background-color-alt);
    border-radius: 6px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.echo-link-info .cover-image {
    flex: 0 0 200px;
    position: sticky;
    top: 20px;
    position: relative; /* 为开发者徽章定位提供上下文 */
}

.echo-link-info .cover-image .cover-box {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 10%;
    box-shadow: 0 30px 20px -20px rgba(0, 0, 0, .15);
    padding: 50px;
    text-align: center;
    background: var(--background-linear);
}

.echo-link-info .cover-image .cover-box img {
    width: 50px;
}

/* 新增：开发者徽章样式 - 放置在图标右下方 */
.developer-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--background-flz);
    color: var(--bs-heading-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    transition: all 0.3s ease;
    border: 2px solid white;
    min-width: 120px;
}

.developer-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.developer-badge i {
    font-size: 14px;
    flex-shrink: 0;
}

.developer-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.echo-link-info .right {
    flex: 1;
    padding-left: 50px;
}

.echo-link-info .right h3 {
    font-size: 36px;
    margin-bottom: 15px;
}

.info-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--bs-heading-color);
}

.info-section-title i {
    margin-right: 10px;
    color: var(--bs-heading-color);
    font-size: 20px;
}

.info-item-card {
    padding: 6px 12px;
    background: var(--background-color);
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.info-item-card i {
    margin-right: 6px;
    color: #3498db;
    font-size: 14px;
}

.echo-link-info .btn {
    font-size: 15px;
    margin-right: 5px;
}

.echo-link-info .info-item {
    margin-left: 10px;
}

.excerpt {
    margin-top: 1em;
    margin-bottom: 15px;
    line-height: 1.7;
}

.screenshot-container {
    margin: 20px 0;
}

.screenshot-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 780px;
    margin: 0 auto;
}

.screenshot-image img {
    width: 100%;
    height: auto;
    display: block;
}

.workflow-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 20px 0;
    position: relative;
    overflow-x: auto;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
}

.chain-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0 5px;
    flex-shrink: 0;
}

.chain-node {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.chain-item:hover .chain-node {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.5);
}

.chain-connector {
    margin: 0 5px;
    color: #3498db;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.chain-connector::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    transform: translateY(-50%);
    z-index: -1;
}

.chain-connector i {
    background: white;
    padding: 0 5px;
    position: relative;
}

.chain-title {
    font-size: 14px;
    text-align: center;
    max-width: 120px;
    word-break: break-word;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.chain-title a {
    color: inherit;
}

.chain-title a:hover {
    color: #3498db;
}

.chain-item:hover .chain-title {
    color: #3498db;
}

.ai-badge {
    background: linear-gradient(135deg, rgba(26, 42, 108, 0.05), rgba(44, 62, 80, 0.05));
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 10px;
    padding: 1px;
    display: inline-flex;
    align-items: center;
    min-width: 280px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ai-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.15);
}

.ai-badge-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ai-badge-content {
    flex: 1;
}

.ai-badge-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2a6c;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.ai-badge-title i {
    color: #4facfe;
    margin-right: 5px;
}

.ai-badge-text {
    font-size: 0.85rem;
    color: #5f6c80;
    line-height: 1.4;
}

/* 移动端优化 - 12px屏幕 */
@media (max-width: 480px) {
    .echo-link-info {
        flex-direction: column;
        padding: 12px;
        text-align: center;
    }

    .echo-link-info .cover-image {
        position: static;
        flex: 0 0 auto;
        margin: 0 auto 15px;
        max-width: 180px;
    }

    .echo-link-info .right {
        padding-left: 0;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .echo-link-info .cover-image .cover-box {
        padding: 15px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .echo-link-info .info-item {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .update-time {
        display: inline-flex;
        margin-left: 0;
        margin-top: 8px;
        padding: 4px 8px;
        font-size: 13px;
        background: #e6f7ff;
        border: 1px solid #91d5ff;
        color: #1d7cd6;
        font-weight: bold;
    }
    
    .update-time i {
        color: #1d7cd6;
    }
    
    .tool-tags {
        justify-content: center;
    }
    
    .info-items {
        justify-content: center;
        gap: 4px;
    }
    
    .screenshot-image {
        margin: 0 auto;
        max-width: 100%;
    }
    
    /* 修改组合推荐链在移动端的样式 - 保持横向布局 */
    .workflow-chain {
        flex-direction: row;
        justify-content: flex-start;
        padding-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chain-item {
        flex-direction: column;
        margin: 0 10px;
        flex-shrink: 0;
    }
    
    .chain-node {
        margin-bottom: 8px;
        margin-right: 0;
        width: 40px;
        height: 40px;
    }
    
    .chain-connector {
        margin: 0 5px;
        transform: none;
        width: auto;
        align-self: center;
    }
    
    .chain-title {
        max-width: 100px;
        text-align: center;
        flex: none;
        font-size: 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-item {
        padding: 10px;
    }
    
    .product-cover {
        width: 45px;
        height: 45px;
        margin-bottom: 6px;
    }
    
    .product-name {
        font-size: 12px;
        min-height: 32px;
    }

    .content-container {
        padding: 0 8px;
    }
    
    .echo-link-info .right h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .excerpt {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .btn {
        font-size: 13px !important;
        padding: 8px 12px !important;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .ai-badge {
        min-width: 100%;
        padding: 12px;
    }
    
    .ai-badge-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .ai-badge-title {
        font-size: 12px;
    }
    
    .ai-badge-text {
        font-size: 11px;
    }
    
    /* 移动端开发者徽章调整 - 隐藏开发者徽章 */
    .developer-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .echo-link-info {
        flex-direction: column;
        padding: 12px;
        text-align: center;
    }

    .echo-link-info .cover-image {
        position: static;
        flex: 0 0 auto;
        margin: 0 auto 15px;
        max-width: 180px;
    }

    .echo-link-info .right {
        padding-left: 0;
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .echo-link-info .cover-image .cover-box {
        padding: 15px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .echo-link-info .info-item {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .update-time {
        display: inline-flex;
        margin-left: 0;
        margin-top: 8px;
        padding: 6px 8px;
        background: #e6f7ff;
        border: 1px solid #91d5ff;
        color: #1d7cd6;
        font-weight: bold;
    }
    
    .update-time i {
        color: #1d7cd6;
    }
    
    .tool-tags {
        justify-content: center;
    }
    
    .info-items {
        justify-content: center;
        gap: 4px;
    }
    
    .screenshot-image {
        margin: 0 auto;
        max-width: 100%;
    }
    
    /* 修改组合推荐链在移动端的样式 - 保持横向布局 */
    .workflow-chain {
        flex-direction: row;
        justify-content: flex-start;
        padding-bottom: 15px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chain-item {
        flex-direction: column;
        margin: 0 10px;
        flex-shrink: 0;
    }
    
    .chain-node {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .chain-connector {
        margin: 0 5px;
        transform: none;
        width: auto;
        align-self: center;
    }
    
    .chain-title {
        max-width: 120px;
        text-align: center;
        flex: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-item {
        padding: 12px;
    }
    
    .product-cover {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .product-name {
        font-size: 13px;
        min-height: 36px;
    }

    .content-container {
        padding: 0 8px;
    }
    
    /* 平板端开发者徽章调整 - 隐藏开发者徽章 */
    .developer-badge {
        display: none !important;
    }
}
/* 免责声明 */
.disclaimer-box {
  display: flex;
  align-items: flex-start;
  background-color: var(--background-color);
  border: 1px solid #ffe58f;
  border-radius: 4px;
  padding: 12px 15px;
  color: var(--bs-heading-color);
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0;
}

.disclaimer-box .icon {
  color: #ff9900;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
  margin-right: 8px;
}

/* 收录提交区块样式 */
.submit-section {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  text-align: center;
  color: white;
  margin-bottom: 15px;
}

.submit-section h4 {
  margin-bottom: 10px;
  color: white;
  font-size: 18px;
}

.submit-section p {
  margin-bottom: 15px;
  opacity: 0.9;
  font-size: 14px;
}

.submit-btn-light {
  background: white;
  color: #667eea !important;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.submit-btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  color: #667eea;
}

/* 信息底部区域 */
.info-footer-section {
  margin-top: 30px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .info-footer-section {
    margin-top: 20px;
  }
  
  .submit-section {
    padding: 15px;
    margin-bottom: 12px;
  }
  
  .submit-section h4 {
    font-size: 16px;
  }
  
  .submit-section p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .submit-btn-light {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* === 新增：修复排名显示为 Top 而不是 TOP === */
.tool-tag-fenl,
.tool-tag-fenl .rank-badge {
    text-transform: none !important;
    font-variant: normal !important;
}

.rank-badge,
.rank-1, .rank-2, .rank-3, .rank-4, .rank-5, .rank-other {
    text-transform: none !important;
}
/* === 结束新增 === */

/* 移动端适配 */
@media (max-width: 768px) {
    .buttons-container {
        gap: 8px;
        justify-content: center;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 13px;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* 主要按钮样式统一 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-sizing: border-box;
    vertical-align: middle;
}

/* 新增：按钮容器对齐样式 */
.buttons-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.echo-link-info .btn-outline-primary {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    transition: all 0.3s ease;
}

.echo-link-info .btn-outline-primary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}
/* 新增：隐藏标签样式 - 在所有设备上隐藏标签显示，但保留HTML代码 */
.tags {
    display: none !important;
}